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

Issue 2685393003: Surfaces: Allow parent to refer to child surfaces that don't exist yet. (Closed)

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

Description

Surfaces: Allow parent to refer to child surfaces that don't exist yet. With the introduction of direct client-to-client resize and surface synchronization, the parent may submit a CompositorFrame referring to a child that does not yet exist. This should be OK. There will be a dangling reference for a little while but eventually it will either resolve, or the parent is malicious and will be killed and its entire subtree will be reclaimed. If the child submits a CompositorFrame for the first time and there's already a reference to it hanging off the parent then we should not add a temporary reference hanging off the root. This CL tests that both cases are handled. BUG=672062 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2685393003 Cr-Commit-Position: refs/heads/master@{#449870} Committed: https://chromium.googlesource.com/chromium/src/+/adb877a00fb19240fd50186c21bcc2b790446805

Patch Set 1 #

Patch Set 2 : Fixed compile issue (uploaded too soon) #

Patch Set 3 : Added unit test #

Total comments: 11

Patch Set 4 : Addressed comments and removed a now invalid unit test #

Patch Set 5 : Added a TODO to cleanup tests so that they don't create empty sets #

Total comments: 2

Patch Set 6 : Created bug for TODO #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -28 lines) Patch
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 3 4 5 6 2 chunks +49 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 2 chunks +17 lines, -17 lines 0 comments Download
M cc/surfaces/surface_manager_ref_unittest.cc View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
Fady Samuel
+kylechar@, rjkroege@ FYI +vmpstr@ for review.
3 years, 10 months ago (2017-02-10 19:14:31 UTC) #10
vmpstr
I assume the ids here are solid in the sense that we don't want to ...
3 years, 10 months ago (2017-02-10 19:36:01 UTC) #13
rjkroege
On 2017/02/10 19:14:31, Fady Samuel wrote: > +kylechar@, rjkroege@ FYI > +vmpstr@ for review. question ...
3 years, 10 months ago (2017-02-10 19:36:59 UTC) #14
kylechar
https://codereview.chromium.org/2685393003/diff/40001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2685393003/diff/40001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode476 cc/surfaces/compositor_frame_sink_support_unittest.cc:476: UnorderedElementsAre(child_id)); On 2017/02/10 19:36:00, vmpstr wrote: > Does this ...
3 years, 10 months ago (2017-02-10 19:51:27 UTC) #16
Fady Samuel
On 2017/02/10 19:36:59, rjkroege wrote: > On 2017/02/10 19:14:31, Fady Samuel wrote: > > +kylechar@, ...
3 years, 10 months ago (2017-02-10 20:38:59 UTC) #19
Fady Samuel
PTAL Vlad! Thanks https://codereview.chromium.org/2685393003/diff/40001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2685393003/diff/40001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode84 cc/surfaces/compositor_frame_sink_support_unittest.cc:84: const SurfaceManager::SurfaceIdSet& GetReferencesFrom( On 2017/02/10 19:36:00, ...
3 years, 10 months ago (2017-02-10 20:39:10 UTC) #20
Fady Samuel
PTAL Vlad
3 years, 10 months ago (2017-02-10 22:21:30 UTC) #26
vmpstr
lgtm https://codereview.chromium.org/2685393003/diff/80001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2685393003/diff/80001/cc/surfaces/surface_manager.cc#newcode586 cc/surfaces/surface_manager.cc:586: // use array notation into maps in tests. ...
3 years, 10 months ago (2017-02-10 22:25:23 UTC) #28
Fady Samuel
I need to rebase this when my other patch lands so no point in putting ...
3 years, 10 months ago (2017-02-10 22:44:24 UTC) #29
kylechar
lgtm
3 years, 10 months ago (2017-02-10 23:16:09 UTC) #30
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/2685393003/120001
3 years, 10 months ago (2017-02-11 16:12:23 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 17:20:47 UTC) #36
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/adb877a00fb19240fd50186c21bc...

Powered by Google App Engine
This is Rietveld 408576698