Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Issue 2696303002: Only emit a fallback SurfaceDrawQuad if differs from primary (Closed)

Created:
3 years, 10 months ago by Fady Samuel
Modified:
3 years, 10 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -1 line) Patch
M cc/layers/surface_layer_impl.cc View 1 chunk +3 lines, -1 line 2 comments Download
M cc/layers/surface_layer_impl_unittest.cc View 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Fady Samuel
PTAL Vlad!
3 years, 10 months ago (2017-02-16 00:00:11 UTC) #4
vmpstr
lgtm https://codereview.chromium.org/2696303002/diff/1/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2696303002/diff/1/cc/layers/surface_layer_impl.cc#newcode71 cc/layers/surface_layer_impl.cc:71: if (primary && fallback_surface_info_.id() != primary_surface_info_.id()) { I'm ...
3 years, 10 months ago (2017-02-16 00:52:12 UTC) #7
Fady Samuel
Thanks Vlad! CQ'ing! https://codereview.chromium.org/2696303002/diff/1/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2696303002/diff/1/cc/layers/surface_layer_impl.cc#newcode71 cc/layers/surface_layer_impl.cc:71: if (primary && fallback_surface_info_.id() != primary_surface_info_.id()) ...
3 years, 10 months ago (2017-02-16 01:16:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696303002/1
3 years, 10 months ago (2017-02-16 02:44:04 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/391385)
3 years, 10 months ago (2017-02-16 05:14:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696303002/1
3 years, 10 months ago (2017-02-16 08:15:20 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 09:17:04 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7f65d49d1f27e4ea128329b61f4b...

Powered by Google App Engine
This is Rietveld 408576698