Bug 94946

Summary: [chromium] CCLayerTreeHostImpl::scrollBy always assumes screen space deltas
Product: WebKit Reporter: Robert Kroeger <rjkroege>
Component: PlatformAssignee: Robert Kroeger <rjkroege>
Status: RESOLVED FIXED    
Severity: Normal CC: aelias, cc-bugs, dglazkov, jamesr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from gce-cr-linux-02
none
Patch none

Robert Kroeger
Reported 2012-08-24 09:37:37 PDT
CCLayerTreeHostImpl::scrollBy always assumes screen space deltas. CrOS and Windows send ScrollUpdate events with DIP (scaled by the deviceScaleFactor) deltas. Correct DIP scroll deltas to screen deltas. Note in passing: the deltas are already float valued so could be fractional.
Attachments
Patch (1.88 KB, patch)
2012-08-24 10:01 PDT, Robert Kroeger
no flags
Patch (1.88 KB, patch)
2012-08-24 10:13 PDT, Robert Kroeger
no flags
Archive of layout-test-results from gce-cr-linux-02 (374.69 KB, application/zip)
2012-08-24 10:52 PDT, WebKit Review Bot
no flags
Patch (1.78 KB, patch)
2012-08-24 11:46 PDT, Robert Kroeger
no flags
Robert Kroeger
Comment 1 2012-08-24 10:01:41 PDT
Dana Jansens
Comment 2 2012-08-24 10:06:05 PDT
Comment on attachment 160441 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160441&action=review > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:959 > + pendingDelta.scale(deviceScaleFactor()); nit: use m_deviceScaleFactor directly when it is available.
Robert Kroeger
Comment 3 2012-08-24 10:13:02 PDT
Robert Kroeger
Comment 4 2012-08-24 10:13:29 PDT
(In reply to comment #2) > (From update of attachment 160441 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=160441&action=review > > > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:959 > > + pendingDelta.scale(deviceScaleFactor()); > > nit: use m_deviceScaleFactor directly when it is available. done, second patch.
WebKit Review Bot
Comment 5 2012-08-24 10:52:53 PDT
Comment on attachment 160445 [details] Patch Attachment 160445 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13604155 New failing tests: fast/frames/cached-frame-counter.html
WebKit Review Bot
Comment 6 2012-08-24 10:52:55 PDT
Created attachment 160452 [details] Archive of layout-test-results from gce-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
James Robinson
Comment 7 2012-08-24 11:00:40 PDT
Comment on attachment 160445 [details] Patch That EWS failure looks unrelated. R=me
Alexandre Elias
Comment 8 2012-08-24 11:13:14 PDT
Comment on attachment 160445 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160445&action=review > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:957 > + // FIXME: Make this configurable once Chrome Android supports non-unity You can delete this comment. We'll divide before sending in the browser process (which should work fine once it's in floats).
Robert Kroeger
Comment 9 2012-08-24 11:43:56 PDT
(In reply to comment #8) > (From update of attachment 160445 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=160445&action=review > > > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:957 > > + // FIXME: Make this configurable once Chrome Android supports non-unity > > You can delete this comment. We'll divide before sending in the browser process (which should work fine once it's in floats). done, third patch.
Robert Kroeger
Comment 10 2012-08-24 11:46:52 PDT
WebKit Review Bot
Comment 11 2012-08-24 12:54:49 PDT
Comment on attachment 160464 [details] Patch Clearing flags on attachment: 160464 Committed r126615: <http://trac.webkit.org/changeset/126615>
WebKit Review Bot
Comment 12 2012-08-24 12:54:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.