Chromium Code Reviews
DescriptionUse 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. #Messages
Total messages: 15 (4 generated)
|