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

Issue 2861593002: cc: Only add surface ID to embedded_surfaces if fallback does not match (Closed)

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

Description

cc: Only add surface ID to embedded_surfaces if fallback does not match A child surface ID is either a dependency (something the parents wants to block its CompositorFrame on and may not exist in the display compositor yet) or a reference (it is known to exist in the display compositor). Dependencies are held in CompositorFrameMetadata::embedded_surfaces, and references are held in CompositorFrameMetadata::referenced_surfaces. It was possible for a surface ID to end up in both places if the primary and fallback SurfaceInfos in a SurfaceLayer matched. This causes issues in an upcoming CL https://codereview.chromium.org/2831213004/ that "closes" an old fallback surface to receiving new CompositorFrames if a new primary surface is being requested by a parent to reduce latency. BUG=672962, 711948 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2861593002 Cr-Commit-Position: refs/heads/master@{#469482} Committed: https://chromium.googlesource.com/chromium/src/+/3ca7863c41560e94efdfdb21f0b1b4231e4a589e

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 4

Patch Set 3 : Addressed Dana's comments #

Patch Set 4 : Added a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M cc/layers/surface_layer_impl.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M cc/layers/surface_layer_impl.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M cc/layers/surface_layer_impl_unittest.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 27 (16 generated)
Fady Samuel
3 years, 7 months ago (2017-05-03 00:28:33 UTC) #6
danakj
https://codereview.chromium.org/2861593002/diff/20001/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2861593002/diff/20001/cc/layers/surface_layer_impl.cc#newcode68 cc/layers/surface_layer_impl.cc:68: bool needs_synchronization = nit: needs_fallback? https://codereview.chromium.org/2861593002/diff/20001/cc/layers/surface_layer_impl.cc#newcode72 cc/layers/surface_layer_impl.cc:72: needs_synchronization ? ...
3 years, 7 months ago (2017-05-04 19:14:08 UTC) #12
Fady Samuel
PTAL Dana! https://codereview.chromium.org/2861593002/diff/20001/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2861593002/diff/20001/cc/layers/surface_layer_impl.cc#newcode68 cc/layers/surface_layer_impl.cc:68: bool needs_synchronization = On 2017/05/04 19:14:08, danakj ...
3 years, 7 months ago (2017-05-04 20:03:48 UTC) #13
danakj
It still ends up in both here right? https://cs.chromium.org/chromium/src/cc/trees/layer_tree_host_impl.cc?rcl=ca50c30a6688609fcb622f3c3fde9fb4f72727f8&l=1626
3 years, 7 months ago (2017-05-04 20:15:37 UTC) #16
danakj
On 2017/05/04 20:15:37, danakj wrote: > It still ends up in both here right? > ...
3 years, 7 months ago (2017-05-04 20:16:03 UTC) #17
Fady Samuel
On 2017/05/04 20:16:03, danakj wrote: > On 2017/05/04 20:15:37, danakj wrote: > > It still ...
3 years, 7 months ago (2017-05-04 20:20:40 UTC) #18
Fady Samuel
On 2017/05/04 20:20:40, Fady Samuel wrote: > On 2017/05/04 20:16:03, danakj wrote: > > On ...
3 years, 7 months ago (2017-05-04 20:21:16 UTC) #19
danakj
So you're saying the fallback_surface_info_ is null if surface sync is off? This is not ...
3 years, 7 months ago (2017-05-04 20:26:46 UTC) #20
Fady Samuel
On 2017/05/04 20:26:46, danakj wrote: > So you're saying the fallback_surface_info_ is null if surface ...
3 years, 7 months ago (2017-05-04 20:30:39 UTC) #21
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/2861593002/60001
3 years, 7 months ago (2017-05-04 20:33:55 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 21:49:10 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/3ca7863c41560e94efdfdb21f0b1...

Powered by Google App Engine
This is Rietveld 408576698