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

Issue 2580063002: Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embeded content. (Closed)

Created:
4 years ago by mfomitchev
Modified:
3 years, 11 months ago
Reviewers:
Fady Samuel, sadrul, sky, jbauman
CC:
chromium-reviews, rjkroege, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embeded content. - Use SurfaceLayers in embedders and Window Manager to properly position the embedded content in the layer tree. - WM no longer uses underlay surfaces for window decorations. Instead they are submitted to Mus as part of the WM's surface. - FrameGenerator now only creates SurfaceDrawQuad for the top-level window rather than recursively creating SurfaceDrawQuad for all windows in the window tree, since all surfaces are now part of the tree rooted at the surface of the top-level window. BUG=672943, 669964 Committed: https://crrev.com/a86d0169243b98b51554dcdbad647a24ea782aeb Cr-Commit-Position: refs/heads/master@{#441492}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing feedback. #

Patch Set 3 : Rebase and remove scale factor hack. #

Patch Set 4 : Make the clipping layer ui::LAYER_NOT_DRAWN. #

Total comments: 6

Patch Set 5 : Addressing feedback. #

Total comments: 4

Patch Set 6 : Addressing feedback, fixing unit tests, rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -113 lines) Patch
M services/ui/ws/display.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 2 chunks +22 lines, -62 lines 0 comments Download
M services/ui/ws/frame_generator_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 4 5 3 chunks +12 lines, -40 lines 0 comments Download
M services/ui/ws/platform_display_default.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M ui/aura/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/mus/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A ui/aura/mus/client_surface_embedder.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A ui/aura/mus/client_surface_embedder.cc View 1 2 3 4 5 1 chunk +90 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (23 generated)
mfomitchev
4 years ago (2016-12-16 20:46:30 UTC) #2
sky
https://codereview.chromium.org/2580063002/diff/1/services/ui/ws/server_window_compositor_frame_sink_manager.cc File services/ui/ws/server_window_compositor_frame_sink_manager.cc (right): https://codereview.chromium.org/2580063002/diff/1/services/ui/ws/server_window_compositor_frame_sink_manager.cc#newcode31 services/ui/ws/server_window_compositor_frame_sink_manager.cc:31: waiting_for_initial_frames_ = !IsCompositorFrameSinkReadyAndNonEmpty( Can we replace waiting_for_initial_frames_ with IsCompositorFrameSinkReadyAndNonEmpty(DEFAULT)? ...
4 years ago (2016-12-16 21:50:29 UTC) #7
mfomitchev
https://codereview.chromium.org/2580063002/diff/1/services/ui/ws/server_window_compositor_frame_sink_manager.cc File services/ui/ws/server_window_compositor_frame_sink_manager.cc (right): https://codereview.chromium.org/2580063002/diff/1/services/ui/ws/server_window_compositor_frame_sink_manager.cc#newcode31 services/ui/ws/server_window_compositor_frame_sink_manager.cc:31: waiting_for_initial_frames_ = !IsCompositorFrameSinkReadyAndNonEmpty( On 2016/12/16 21:50:29, sky (OOO) wrote: ...
3 years, 12 months ago (2016-12-23 00:03:49 UTC) #8
sky
https://codereview.chromium.org/2580063002/diff/60001/ui/aura/mus/window_port_mus.cc File ui/aura/mus/window_port_mus.cc (right): https://codereview.chromium.org/2580063002/diff/60001/ui/aura/mus/window_port_mus.cc#newcode57 ui/aura/mus/window_port_mus.cc:57: // Used by WindowPortMus when it is embedding a ...
3 years, 11 months ago (2017-01-03 21:53:08 UTC) #9
mfomitchev
https://codereview.chromium.org/2580063002/diff/60001/ui/aura/mus/window_port_mus.cc File ui/aura/mus/window_port_mus.cc (right): https://codereview.chromium.org/2580063002/diff/60001/ui/aura/mus/window_port_mus.cc#newcode57 ui/aura/mus/window_port_mus.cc:57: // Used by WindowPortMus when it is embedding a ...
3 years, 11 months ago (2017-01-03 22:28:50 UTC) #10
sky
https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc#newcode73 ui/aura/mus/client_surface_embedder.cc:73: window_->layer()->Remove(clip_layer_.get()); I believe the destruction order is: ~Window DestroyLayer(); ...
3 years, 11 months ago (2017-01-03 23:25:05 UTC) #15
mfomitchev
https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc#newcode73 ui/aura/mus/client_surface_embedder.cc:73: window_->layer()->Remove(clip_layer_.get()); On 2017/01/03 23:25:05, sky (OOO) wrote: > I ...
3 years, 11 months ago (2017-01-03 23:41:12 UTC) #16
sky
On Tue, Jan 3, 2017 at 3:41 PM, <mfomitchev@chromium.org> wrote: > > https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc > File ...
3 years, 11 months ago (2017-01-04 00:17:16 UTC) #17
Fady Samuel
https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc#newcode89 ui/aura/mus/client_surface_embedder.cc:89: cc::SurfaceInfo cc_surface_info(surface_info.surface_id, This should be fixed now. Please rebase.
3 years, 11 months ago (2017-01-04 12:34:18 UTC) #19
mfomitchev
On 2017/01/04 00:17:16, sky wrote: > On Tue, Jan 3, 2017 at 3:41 PM, <mailto:mfomitchev@chromium.org> ...
3 years, 11 months ago (2017-01-04 20:13:48 UTC) #20
mfomitchev
sky@, can you please take another look? https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2580063002/diff/80001/ui/aura/mus/client_surface_embedder.cc#newcode89 ui/aura/mus/client_surface_embedder.cc:89: cc::SurfaceInfo cc_surface_info(surface_info.surface_id, ...
3 years, 11 months ago (2017-01-04 20:45:31 UTC) #23
sky
LGTM
3 years, 11 months ago (2017-01-04 21:04:02 UTC) #24
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/2580063002/100001
3 years, 11 months ago (2017-01-04 21:13:19 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/334919)
3 years, 11 months ago (2017-01-04 21:20:24 UTC) #28
mfomitchev
+jbauman@chromium.org for the DEPS change: +cc/surfaces/surface_reference_factory.h
3 years, 11 months ago (2017-01-04 21:22:20 UTC) #30
jbauman
DEPS change lgtm
3 years, 11 months ago (2017-01-04 22:23:50 UTC) #31
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/2580063002/100001
3 years, 11 months ago (2017-01-04 22:25:47 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
3 years, 11 months ago (2017-01-04 22:31:21 UTC) #36
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a86d0169243b98b51554dcdbad647a24ea782aeb Cr-Commit-Position: refs/heads/master@{#441492}
3 years, 11 months ago (2017-01-04 22:32:47 UTC) #38
Devlin
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2617603002/ by rdevlin.cronin@chromium.org. ...
3 years, 11 months ago (2017-01-05 00:02:56 UTC) #39
sadrul
3 years, 11 months ago (2017-01-05 19:53:29 UTC) #44
FYI: I have updated this CL with a fix in
https://codereview.chromium.org/2613903003/ (I tried to submit new patchsets in
this CL (I even tried adding CONTRIBUTOR in the CL description), but it doesn't
seem to work anymore)

Powered by Google App Engine
This is Rietveld 408576698