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

Issue 2706543002: exo: Synchronize multi-display window positioning (Closed)

Created:
3 years, 10 months ago by Dominik Laskowski
Modified:
3 years, 9 months ago
Reviewers:
reveman, oshima
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Synchronize multi-display window positioning This CL enables the compositor to synchronize window positions across display configuration changes when bounds are controlled by the client. In that case, the client uses screen coordinates for geometry updates, and acknowledges when the compositor changes the origin of the screen coordinate system. The compositor compensates for in-flight geometry updates until it receives the acknowledgement, at which point it switches to the new coordinate system. For ARC in extended desktop mode, this prevents a race that causes windows to briefly appear at an incorrect location when a display is connected or disconnected. Note that ShellSurface::SetOrigin will be used in a follow-up CL to implement support for multiple displays in ARC. BUG=642894 TEST=samus: Window positions are updated atomically when changing the display configuration, e.g. closing the lid to enter docked mode. Review-Url: https://codereview.chromium.org/2706543002 Cr-Commit-Position: refs/heads/master@{#452913} Committed: https://chromium.googlesource.com/chromium/src/+/908ff1bf9511fe0a66bea48737a898ca71c81440

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix shadow and address comments #

Total comments: 2

Patch Set 3 : Address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -41 lines) Patch
M components/exo/display.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/exo/display.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/exo/display_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/exo/shell_surface.h View 2 chunks +4 lines, -2 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 9 chunks +73 lines, -24 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/exo/wayland/server.cc View 7 chunks +38 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Dominik Laskowski
PTAL. Split from https://codereview.chromium.org/2645663004/
3 years, 10 months ago (2017-02-17 21:40:40 UTC) #4
reveman
https://codereview.chromium.org/2706543002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2706543002/diff/1/components/exo/shell_surface.cc#newcode634 components/exo/shell_surface.cc:634: const gfx::Point old_origin = origin_; nit: exo and chromium ...
3 years, 10 months ago (2017-02-18 00:32:39 UTC) #7
Dominik Laskowski
oshima: PTAL at the latest patch, which fixes a shadow regression after rebasing. reveman: FYI, ...
3 years, 10 months ago (2017-02-23 03:43:48 UTC) #10
reveman
lgtm with minor style nit https://codereview.chromium.org/2706543002/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2706543002/diff/20001/components/exo/shell_surface.cc#newcode1336 components/exo/shell_surface.cc:1336: origin_offset_ - visible_bounds.OffsetFromOrigin(); nit: ...
3 years, 9 months ago (2017-02-24 16:50:01 UTC) #13
Dominik Laskowski
https://codereview.chromium.org/2706543002/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2706543002/diff/20001/components/exo/shell_surface.cc#newcode1336 components/exo/shell_surface.cc:1336: origin_offset_ - visible_bounds.OffsetFromOrigin(); On 2017/02/24 16:50:00, reveman wrote: > ...
3 years, 9 months ago (2017-02-24 18:51:30 UTC) #14
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/2706543002/40001
3 years, 9 months ago (2017-02-24 19:11:23 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-02-24 21:08:49 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/908ff1bf9511fe0a66bea48737a8...

Powered by Google App Engine
This is Rietveld 408576698