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

Issue 2175293003: cc: Register namespace hierarchy after ui::Compositor's SurfaceFactory available (Closed)

Created:
4 years, 5 months ago by Fady Samuel
Modified:
4 years, 4 months ago
Reviewers:
piman
CC:
chromium-reviews, Ian Vollick, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Register namespace hierarchy after ui::Compositor's SurfaceFactory available In the future, we'd like to merge Surface client ID registration and SurfaceFactory creation. SurfaceFactory is tied to an OutputSurface. Thus, we cannot register a namespace hierarchy relationship until after we create an OutputSurface for the ui::Compositor. However, we create a new OutputSurface every time the GPU process is restarted. Thus, we need a mechanism to store these relationships between clients across GPU restarts. This is particularly important if the display compositor lives in the same process GPU and these relationships would be lost. This CL stores the relationship between DelegatedFrameHost and ui::Compositor in ui::Compositor. Note that depending on the final shape of the display compositor host API, we may wish to centralize all hierarchy relationship registration including OOPIF. BUG=629940 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/d03176d916bea43a30b051d826fc4efd011ab866 Cr-Commit-Position: refs/heads/master@{#407770}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added unit test and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -10 lines) Patch
M cc/trees/layer_tree_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 chunks +50 lines, -1 line 0 comments Download
M ui/compositor/compositor_unittest.cc View 1 3 chunks +100 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Fady Samuel
Hi Antoine, Is this what you had in mind? Thanks, Fady
4 years, 5 months ago (2016-07-25 17:27:57 UTC) #3
piman
I think that's the idea overall. A couple of details. Do you think it's possible ...
4 years, 5 months ago (2016-07-25 20:13:39 UTC) #4
Fady Samuel
PTAL Antoine! Thanks! https://codereview.chromium.org/2175293003/diff/1/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2175293003/diff/1/ui/compositor/compositor.cc#newcode249 ui/compositor/compositor.cc:249: surface_id_allocator_->client_id()); On 2016/07/25 20:13:39, piman - ...
4 years, 5 months ago (2016-07-26 00:42:14 UTC) #5
piman
lgtm
4 years, 5 months ago (2016-07-26 06:41:17 UTC) #10
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/2175293003/20001
4 years, 4 months ago (2016-07-26 11:45:12 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-26 11:48:20 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 11:49:54 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d03176d916bea43a30b051d826fc4efd011ab866
Cr-Commit-Position: refs/heads/master@{#407770}

Powered by Google App Engine
This is Rietveld 408576698