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

Issue 2812663002: exo: Fix cursor scale when crossing displays (Closed)

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

Description

exo: Fix cursor scale when crossing displays While dragging, the cursor was locked, so CursorClient::SetCursor calls were collapsed into a single call at the end of the drag. When crossing displays with different densities, the cursor scale was incorrect until the window was dropped. This CL removes cursor locking to prevent the OnCursorDisplayChanged update from being postponed. BUG=631136 BUG=642894 TEST=caroline: Cursor scale is correct while dragging across displays. Review-Url: https://codereview.chromium.org/2812663002 Cr-Commit-Position: refs/heads/master@{#476375} Committed: https://chromium.googlesource.com/chromium/src/+/fa6afade49688205eb70ba3329a23c91080cf53a

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 18

Patch Set 3 : Rebase #

Total comments: 3

Patch Set 4 : Rebase #

Patch Set 5 : Remove cursor hiding #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M components/exo/shell_surface.cc View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 27 (7 generated)
Dominik Laskowski
PTAL. Split out from https://codereview.chromium.org/2780623002/
3 years, 8 months ago (2017-04-10 17:35:50 UTC) #2
reveman
Just looking at the description: "While dragging, the cursor is locked, so CursorClient::SetCursor calls are ...
3 years, 8 months ago (2017-04-11 16:58:15 UTC) #3
Dominik Laskowski
On 2017/04/11 16:58:15, reveman wrote: > What's the problem with that? Isn't that what we ...
3 years, 8 months ago (2017-04-11 22:26:04 UTC) #4
reveman
I don't think I understand the problem enough to evaluate this change. Can you describe ...
3 years, 8 months ago (2017-04-13 19:46:45 UTC) #5
Dominik Laskowski
On 2017/04/13 19:46:45, reveman wrote: > I don't think I understand the problem enough to ...
3 years, 8 months ago (2017-04-26 14:14:28 UTC) #6
oshima
https://codereview.chromium.org/2812663002/diff/20001/components/exo/wm_helper_ash.cc File components/exo/wm_helper_ash.cc (right): https://codereview.chromium.org/2812663002/diff/20001/components/exo/wm_helper_ash.cc#newcode133 components/exo/wm_helper_ash.cc:133: ash::Shell* shell = ash::Shell::GetInstance(); nit ::Get() https://codereview.chromium.org/2812663002/diff/20001/components/exo/wm_helper_ash.cc#newcode135 components/exo/wm_helper_ash.cc:135: ->SetCursor(cursor, ...
3 years, 8 months ago (2017-04-26 22:13:39 UTC) #7
reveman
https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old cursor ...
3 years, 8 months ago (2017-04-26 23:41:27 UTC) #8
Dominik Laskowski
https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old cursor ...
3 years, 7 months ago (2017-04-27 20:27:20 UTC) #9
oshima
On 2017/04/27 20:27:20, Dominik Laskowski wrote: > https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc > File components/exo/pointer.cc (right): > > https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 ...
3 years, 7 months ago (2017-04-27 20:52:54 UTC) #10
reveman
https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old cursor ...
3 years, 7 months ago (2017-04-27 21:44:14 UTC) #11
Dominik Laskowski
https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old cursor ...
3 years, 7 months ago (2017-04-27 22:22:17 UTC) #12
reveman
On 2017/04/27 at 22:22:17, domlaskowski wrote: > https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc > File components/exo/pointer.cc (right): > > https://codereview.chromium.org/2812663002/diff/20001/components/exo/pointer.cc#newcode270 ...
3 years, 7 months ago (2017-04-28 19:44:33 UTC) #13
oshima
removing lock is fine for now. You can still avoid updating from app side. This ...
3 years, 7 months ago (2017-04-28 20:30:10 UTC) #14
Dominik Laskowski
PTAL.
3 years, 7 months ago (2017-04-28 21:10:57 UTC) #16
reveman
lgtm after removing the code that prevents old cursor from being rendering https://codereview.chromium.org/2812663002/diff/40001/components/exo/pointer.cc File components/exo/pointer.cc ...
3 years, 7 months ago (2017-04-28 21:37:09 UTC) #17
oshima
lgtm https://codereview.chromium.org/2812663002/diff/40001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/40001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old ...
3 years, 7 months ago (2017-05-01 22:18:05 UTC) #18
Dominik Laskowski
https://codereview.chromium.org/2812663002/diff/40001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2812663002/diff/40001/components/exo/pointer.cc#newcode270 components/exo/pointer.cc:270: // Capture is asynchronous, so avoid rendering old cursor ...
3 years, 7 months ago (2017-05-06 00:34:45 UTC) #19
reveman
still lgtm
3 years, 7 months ago (2017-05-10 16:07:20 UTC) #20
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/2812663002/120001
3 years, 6 months ago (2017-06-01 18:19:13 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 19:00:48 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/fa6afade49688205eb70ba3329a2...

Powered by Google App Engine
This is Rietveld 408576698