Check VideoFrameSubmitter produces only one quad
blink::VideoFrameSubmitter produces quads using VideoFrameResourceProvider.VideoFrameSubmitter, that produces at most one quad. This CL DCHECKs that at most one quad is produced, since we want to use this property for optimizing damage tracking in SurfaceAggregator/GLRenderer. Having the guarantee that only one quad will be produced for this CompositorFrame will allow us to mark the video as the only quad producing damage in SurfaceAggregator. In this way GLRenderer will be able to promote to HW overlay the quad for the video and completely skip compositing of the remaining quads. This will result in significant power savings. Bug: 795008, b/80061773 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Ic4c612c5c221366bd67039d937dc0e42104b4c56 Reviewed-on: https://chromium-review.googlesource.com/1083977Reviewed-by:Dan Sanders <sandersd@chromium.org> Reviewed-by:
Stephen White <senorblanco@chromium.org> Reviewed-by:
danakj <danakj@chromium.org> Reviewed-by:
CJ DiMeglio <lethalantidote@chromium.org> Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#565337}
Showing
Please register or sign in to comment