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

Issue 1484533002: mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed (Closed)

Created:
5 years ago by Fady Samuel
Modified:
5 years ago
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed RenderWidget::CreateOutputSurface is called prior to the availability of a RenderWidgetMusConnection, and prior to notification of embedding in Mus (RenderWidgetMusConnection::OnEmbed). This CL provides a mechanism to create a WindowSurface prior to the availability of a Window. When creating a WindowSurface, a sibling object, WindowSurfaceBinding is also created that can be passed into Window::AttachSurface once a mus::Window is available. BUG=551250 Committed: https://crrev.com/e5c09bb427330401fc089989fccc16f9ea971664 Cr-Commit-Position: refs/heads/master@{#362273}

Patch Set 1 #

Patch Set 2 : Removed commented out code #

Patch Set 3 : Rename RequestSurface to AttachToSurface #

Patch Set 4 : Add ThreadChecker #

Total comments: 4

Patch Set 5 : Addressed Sadrul's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -36 lines) Patch
M components/mus/public/cpp/lib/window.cc View 1 2 3 4 1 chunk +11 lines, -7 lines 0 comments Download
M components/mus/public/cpp/lib/window_surface.cc View 1 2 3 3 chunks +29 lines, -5 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/window.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M components/mus/public/cpp/window_surface.h View 1 2 3 4 2 chunks +32 lines, -3 lines 0 comments Download
M components/mus/public/interfaces/window_tree.mojom View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M components/mus/ws/window_tree_impl.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M components/mus/ws/window_tree_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (10 generated)
Fady Samuel
5 years ago (2015-11-27 19:08:43 UTC) #2
Fady Samuel
5 years ago (2015-11-27 19:08:49 UTC) #3
Fady Samuel
Added ThreadChecker to WindowSurface. PTAL Sadrul!
5 years ago (2015-11-27 20:19:26 UTC) #4
sadrul
I stared at this for a while, and couldn't think of a better approach that ...
5 years ago (2015-11-27 21:21:37 UTC) #5
sadrul
Oh, you should update the CL description to explain where this will be used.
5 years ago (2015-11-27 21:22:22 UTC) #6
Fady Samuel
+ben@ for OWNER review. https://codereview.chromium.org/1484533002/diff/60001/components/mus/public/cpp/window_surface.h File components/mus/public/cpp/window_surface.h (right): https://codereview.chromium.org/1484533002/diff/60001/components/mus/public/cpp/window_surface.h#newcode61 components/mus/public/cpp/window_surface.h:61: class WindowSurfaceBinding { On 2015/11/27 ...
5 years ago (2015-11-28 21:47:37 UTC) #12
Ben Goodger (Google)
lgtm
5 years ago (2015-11-30 21:28:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1484533002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484533002/100001
5 years ago (2015-11-30 21:52:32 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years ago (2015-11-30 23:44:39 UTC) #18
commit-bot: I haz the power
5 years ago (2015-11-30 23:47:20 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e5c09bb427330401fc089989fccc16f9ea971664
Cr-Commit-Position: refs/heads/master@{#362273}

Powered by Google App Engine
This is Rietveld 408576698