DescriptionOnly emit a fallback SurfaceDrawQuad if differs from primary
If both the primary and fallback SurfaceInfos in a SurfaceLayerImpl
point to the same surface ID, then emitting a fallback SurfaceDrawQuad
unnecessarily bloats a CompositorFrame with a fallback that will always
be skipped.
This CL also adds two unit tests: one that verifies that we emit two
SurfaceDrawQuads if the primary and fallback differ and one that
verifies we only emit one SurfaceDrawQuad if they are the same.
BUG=672962
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2696303002
Cr-Commit-Position: refs/heads/master@{#450912}
Committed: https://chromium.googlesource.com/chromium/src/+/7f65d49d1f27e4ea128329b61f4b7c809fcca31f
Patch Set 1 #
Total comments: 2
Messages
Total messages: 18 (11 generated)
|