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

Issue 2714553005: Remove DCHECKs in SurfaceManager::RegisterFrameSinkHierarchy (Closed)

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

Description

Remove DCHECKs in SurfaceManager::RegisterFrameSinkHierarchy SurfaceManager::RegisterFrameSinkHierarchy needs a valid parent and child FrameSinkId. In other words, a hierarchy cannot be established until the parent and child have SurfaceFactories. This isn't strictly a necessary requirement. In Mus+Ash, all ServerWindows have a unique FrameSinkId, but not all ServerWindows have corresponding CompositorFrames. If we only registered BeginFrame hierarchies based on valid FrameSinkIds from the perspective of SurfaceManager, then we'd have to know a priori which Windows will submit CompositorFrames and WAIT for them to create CompositorFrameSinks which complicates Mus-Gpu restartability somewhat. Speaking to Enne, it sounds like we can simply drop these DCHECKs, they're nice-to-haves but not strictly necessary. This also makes reparenting windows MUCH MUCH easier in the window server as we don't need to worry about having to update BeginFrame hierarchies to correspond to the nearest Surface based ancestor on reparenting. In a subsequent CL, AddChildFrame and RemoveChildFrameSink will move off MojoCompositorFrameSinkPrivate onto DisplayCompositor. BUG=653895 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2714553005 Cr-Commit-Position: refs/heads/master@{#452596} Committed: https://chromium.googlesource.com/chromium/src/+/974e4a0d982d7502fe46f0db7621b390b38e1efc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -3 lines) Patch
M cc/surfaces/surface_manager.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Fady Samuel
3 years, 10 months ago (2017-02-23 18:43:37 UTC) #3
Peng
On 2017/02/23 18:43:37, Fady Samuel wrote: Removing those DCHECKs fixes my issue. LGTN
3 years, 10 months ago (2017-02-23 18:47:51 UTC) #4
Peng
On 2017/02/23 18:47:51, Peng wrote: > On 2017/02/23 18:43:37, Fady Samuel wrote: > > Removing ...
3 years, 10 months ago (2017-02-23 18:49:32 UTC) #5
enne (OOO)
lgtm
3 years, 10 months ago (2017-02-23 18:50:39 UTC) #6
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/2714553005/1
3 years, 10 months ago (2017-02-23 18:51:56 UTC) #8
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 19:59:05 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/974e4a0d982d7502fe46f0db7621...

Powered by Google App Engine
This is Rietveld 408576698