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

Issue 2797263002: Aura-Mus: Implement gutter in the embedder. (Closed)

Created:
3 years, 8 months ago by Fady Samuel
Modified:
3 years, 8 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura-Mus: Implement gutter in the embedder. This CL implements gutter in the embedder. In a nutshell, when a Fallback SurfaceInfo is set, the embedder computes the right and bottom gutter layers if necessary. It takes the difference between the window size and the fallback surface size, and computes the position and size of the gutters. The gutter layers are recomputed on window bounds change. Window types EMBED_IN_OWNER and TOP_LEVEL_IN_WM always get a ClientSurfaceEmbedder now. Note that currently, if surface synchronization is turned on then the frame rate will always be 15fps because SurfaceLayers may refer (and block) on hidden windows that don't produce CompositorFrames. This will be fixed in a subsequent CL. BUG=672962 Review-Url: https://codereview.chromium.org/2797263002 Cr-Commit-Position: refs/heads/master@{#463041} Committed: https://chromium.googlesource.com/chromium/src/+/0cbd038c0fb0221a18b27ef3cf52362f5b2d1877

Patch Set 1 #

Patch Set 2 : Gutter #

Patch Set 3 : Updated test #

Total comments: 18

Patch Set 4 : Addressed sadrul's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -87 lines) Patch
M ui/aura/mus/client_surface_embedder.h View 1 2 4 chunks +21 lines, -3 lines 0 comments Download
M ui/aura/mus/client_surface_embedder.cc View 1 2 3 1 chunk +50 lines, -23 lines 2 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 5 chunks +16 lines, -11 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 3 6 chunks +48 lines, -50 lines 0 comments Download
M ui/compositor/layer.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
Fady Samuel
PTAL Sadrul.
3 years, 8 months ago (2017-04-05 23:35:14 UTC) #5
sadrul
https://codereview.chromium.org/2797263002/diff/40001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2797263002/diff/40001/ui/aura/mus/client_surface_embedder.cc#newcode70 ui/aura/mus/client_surface_embedder.cc:70: ? surface_layer_->GetFallbackSurfaceInfo()->size_in_pixels() Add a TODO here for high-dpi https://codereview.chromium.org/2797263002/diff/40001/ui/aura/mus/client_surface_embedder.cc#newcode74 ...
3 years, 8 months ago (2017-04-07 13:07:33 UTC) #17
Fady Samuel
PTAL Sadrul! https://codereview.chromium.org/2797263002/diff/40001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2797263002/diff/40001/ui/aura/mus/client_surface_embedder.cc#newcode70 ui/aura/mus/client_surface_embedder.cc:70: ? surface_layer_->GetFallbackSurfaceInfo()->size_in_pixels() On 2017/04/07 13:07:33, sadrul wrote: ...
3 years, 8 months ago (2017-04-07 15:27:25 UTC) #18
Fady Samuel
PTAL Sadrul!
3 years, 8 months ago (2017-04-07 16:25:56 UTC) #23
sadrul
lgtm https://codereview.chromium.org/2797263002/diff/60001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2797263002/diff/60001/ui/aura/mus/client_surface_embedder.cc#newcode74 ui/aura/mus/client_surface_embedder.cc:74: if (fallback_surface_size.width() < window_bounds.width()) { You should check ...
3 years, 8 months ago (2017-04-07 21:54:41 UTC) #24
Fady Samuel
CQ'ing thanks. https://codereview.chromium.org/2797263002/diff/60001/ui/aura/mus/client_surface_embedder.cc File ui/aura/mus/client_surface_embedder.cc (right): https://codereview.chromium.org/2797263002/diff/60001/ui/aura/mus/client_surface_embedder.cc#newcode74 ui/aura/mus/client_surface_embedder.cc:74: if (fallback_surface_size.width() < window_bounds.width()) { On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 21:58:48 UTC) #25
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/2797263002/60001
3 years, 8 months ago (2017-04-07 21:59:17 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 23:17:56 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0cbd038c0fb0221a18b27ef3cf52...

Powered by Google App Engine
This is Rietveld 408576698