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

Issue 2944063002: exo: Fix cursor scaling for 1.25 DSF (Closed)

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

Description

exo: Fix cursor scaling for 1.25 DSF The cursor was scaled on displays whose DSF did not match the capture scale. However, no scaling is required between displays with 1.25 and 1.0 DSF, i.e. the 1.25 DSF cursor has the same pixel size but appears smaller. BUG=730843 TEST=cave: Cursor is not scaled down on external 1.0 DSF display. Review-Url: https://codereview.chromium.org/2944063002 Cr-Commit-Position: refs/heads/master@{#482647} Committed: https://chromium.googlesource.com/chromium/src/+/c2f536007076bd932daa97b0864710eee29ebc1c

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Address style nit #

Patch Set 6 : Fix exo_unittests #

Total comments: 2

Patch Set 7 : Restore DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M components/exo/pointer.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M components/exo/pointer.cc View 1 2 3 4 5 6 4 chunks +13 lines, -10 lines 0 comments Download
M ui/display/manager/managed_display_info.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/display/manager/managed_display_info.cc View 1 2 3 4 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (20 generated)
Dominik Laskowski
PTAL.
3 years, 6 months ago (2017-06-19 20:12:11 UTC) #2
reveman
components/exo lgtm
3 years, 6 months ago (2017-06-19 20:14:23 UTC) #3
Dominik Laskowski
Rebased. For a 1.25 DSF primary display, the |capture_scale_| is 1.25 while the |capture_ratio_| is ...
3 years, 6 months ago (2017-06-19 22:01:37 UTC) #7
reveman
https://codereview.chromium.org/2944063002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2944063002/diff/20001/components/exo/pointer.cc#newcode276 components/exo/pointer.cc:276: std::tie(capture_scale_, capture_ratio_) = std::accumulate( heh, cool; but I think ...
3 years, 6 months ago (2017-06-19 22:20:39 UTC) #8
Dominik Laskowski
https://codereview.chromium.org/2944063002/diff/20001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2944063002/diff/20001/components/exo/pointer.cc#newcode276 components/exo/pointer.cc:276: std::tie(capture_scale_, capture_ratio_) = std::accumulate( On 2017/06/19 22:20:39, reveman wrote: ...
3 years, 6 months ago (2017-06-20 15:52:35 UTC) #9
reveman
lgtm
3 years, 6 months ago (2017-06-20 16:54:45 UTC) #10
Dominik Laskowski
oshima: PTAL at ui/display/
3 years, 6 months ago (2017-06-20 17:39:05 UTC) #11
oshima
lgtm YI: we'll consolidate them to use device scale factor (no ui_scaling, effective xxx), hopefully ...
3 years, 6 months ago (2017-06-20 23:17:20 UTC) #12
reveman
lgtm after changing to GetCaptureDisplayInfo as discussed
3 years, 6 months ago (2017-06-23 19:53:38 UTC) #13
Dominik Laskowski
oshima: PTAL at Use125DSFForUIScaling change.
3 years, 6 months ago (2017-06-23 23:54:49 UTC) #20
oshima
https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc File ui/display/manager/managed_display_info.cc (right): https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc#newcode513 ui/display/manager/managed_display_info.cc:513: return id_ != kInvalidDisplayId && Display::IsInternalDisplayId(id_); why this is ...
3 years, 6 months ago (2017-06-23 23:57:14 UTC) #21
Dominik Laskowski
https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc File ui/display/manager/managed_display_info.cc (right): https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc#newcode513 ui/display/manager/managed_display_info.cc:513: return id_ != kInvalidDisplayId && Display::IsInternalDisplayId(id_); On 2017/06/23 23:57:14, ...
3 years, 6 months ago (2017-06-23 23:59:13 UTC) #22
oshima
On 2017/06/23 23:59:13, Dominik Laskowski wrote: > https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc > File ui/display/manager/managed_display_info.cc (right): > > https://codereview.chromium.org/2944063002/diff/100001/ui/display/manager/managed_display_info.cc#newcode513 ...
3 years, 6 months ago (2017-06-24 00:23:52 UTC) #23
Dominik Laskowski
On 2017/06/24 00:23:52, oshima wrote: > My question is that why you need to call ...
3 years, 6 months ago (2017-06-24 00:33:16 UTC) #24
oshima
On 2017/06/24 00:33:16, Dominik Laskowski wrote: > On 2017/06/24 00:23:52, oshima wrote: > > My ...
3 years, 6 months ago (2017-06-24 00:36:20 UTC) #25
Dominik Laskowski
On 2017/06/24 00:36:20, oshima wrote: > Sorry I still don't understand why calling any method ...
3 years, 6 months ago (2017-06-24 01:48:50 UTC) #28
oshima
On 2017/06/24 01:48:50, Dominik Laskowski wrote: > On 2017/06/24 00:36:20, oshima wrote: > > Sorry ...
3 years, 6 months ago (2017-06-24 02:54:19 UTC) #29
Dominik Laskowski
On 2017/06/24 02:54:19, oshima wrote: > ChromeOS creates valid temporary display when there is no ...
3 years, 5 months ago (2017-06-26 17:06:00 UTC) #30
oshima
On 2017/06/26 17:06:00, Dominik Laskowski wrote: > On 2017/06/24 02:54:19, oshima wrote: > > ChromeOS ...
3 years, 5 months ago (2017-06-26 23:28:41 UTC) #31
Dominik Laskowski
oshima: PTAL
3 years, 5 months ago (2017-06-27 15:24:33 UTC) #34
oshima
lgtm
3 years, 5 months ago (2017-06-27 16:03:08 UTC) #35
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/2944063002/120001
3 years, 5 months ago (2017-06-27 16:34:56 UTC) #40
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 16:39:15 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c2f536007076bd932daa97b08647...

Powered by Google App Engine
This is Rietveld 408576698