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

Issue 2066573004: Use CSS pixels for scrolling tests. (Closed)

Created:
4 years, 6 months ago by bccheng1
Modified:
4 years, 6 months ago
Reviewers:
bccheng, achuithb, oshima
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org, msheets1, haddowk1
Base URL:
https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Use DIP for scrolling tests. DIP stands for Device-Independent Pixel. Chrome on CrOS is configured with IsUseZoomForDSFEnabled. On high-end devices with high DPI display the return values from __GestureCommon_GetBoundingVisibleRect will be the number of real pixels, which causes troubles as the scrolling coordiates are expecting DIP. The fix here is to convert real pixel values back to DIP by dividing it with window.devicePixelRatio. BUG=chromium:599656 TEST=smoothness.top_25_smooth now passes on Pixel Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/91953db7ae2b087fdc2581c39d07e3862e31fa96

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use CSS pixels for scrolling tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M telemetry/telemetry/internal/actions/scroll.js View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
bccheng
4 years, 6 months ago (2016-06-14 18:07:56 UTC) #2
oshima
https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js File telemetry/telemetry/internal/actions/scroll.js (right): https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js#newcode131 telemetry/telemetry/internal/actions/scroll.js:131: rect.top + (rect.height / window.devicePixelRatio) * hmm, this does ...
4 years, 6 months ago (2016-06-14 19:11:23 UTC) #4
oshima
4 years, 6 months ago (2016-06-14 19:11:23 UTC) #5
bccheng
https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js File telemetry/telemetry/internal/actions/scroll.js (right): https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js#newcode131 telemetry/telemetry/internal/actions/scroll.js:131: rect.top + (rect.height / window.devicePixelRatio) * On 2016/06/14 19:11:23, ...
4 years, 6 months ago (2016-06-14 20:14:47 UTC) #6
oshima
On 2016/06/14 20:14:47, bccheng wrote: > https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js > File telemetry/telemetry/internal/actions/scroll.js (right): > > https://codereview.chromium.org/2066573004/diff/1/telemetry/telemetry/internal/actions/scroll.js#newcode131 > ...
4 years, 6 months ago (2016-06-14 20:18:47 UTC) #7
bccheng
I will spend more time to trace Chrome to find out why the rect metrics ...
4 years, 6 months ago (2016-06-14 23:42:32 UTC) #8
oshima
ok, lgtm as a stopgap solution.
4 years, 6 months ago (2016-06-17 21:51:30 UTC) #9
achuithb
On 2016/06/17 21:51:30, oshima wrote: > ok, lgtm as a stopgap solution. Owner lgtm
4 years, 6 months ago (2016-06-18 16:25:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066573004/20001
4 years, 6 months ago (2016-06-18 17:09:06 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/91953db7ae2b087fdc2581c39d07e3862e31fa96
4 years, 6 months ago (2016-06-18 17:30:23 UTC) #14
bccheng
4 years, 6 months ago (2016-06-21 16:38:35 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2086833003/ by bccheng@chromium.org.

The reason for reverting is: Speculative revert to see if it is the cause for
crbug/621489..

Powered by Google App Engine
This is Rietveld 408576698