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

Issue 2643203002: Rewrite blink->cc scroll offset logic for SPV2 (Closed)

Created:
3 years, 11 months ago by pdr.
Modified:
3 years, 11 months ago
Reviewers:
ajuma, wkorman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use blink's scroll offset to update cc's transform scroll offset for SPV2 Blink and cc use slightly different transform nodes for scroll offset. Blink creates a transform node just for scroll offset whereas cc has a special field (scroll_offset) embedded in the transform node. To account for this, PropertyTreeManager::updateScrollOffset adjusted the cc transform node. updateScrollOffset had a bug where the compositor node's scroll offset would be set from the compositor node's transform, then the transform would be zero'd. This was broken when updateScrollOffset was called a second time because the newly-zero'd transform would be used to overwrite the scroll offset. Fixing this bug exposed a second bug where setting both the transform node's scroll_offset and calling scrollTree().SetScrollOffset(...) would lead to missed compositor-side scroll offset updates (this is tested in fast/scrolling/fixed-position.html). The SetScrollOffset call has been temporarily replaced by a TODO for a followup patch. With this patch google.com is usable with SPV2 \o/ BUG=667946 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2643203002 Cr-Commit-Position: refs/heads/master@{#445399} Committed: https://chromium.googlesource.com/chromium/src/+/de4408730000072669b7f4d27d0e5e8066988724

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move code back under updateScrollOffset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -26 lines) Patch
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 1 2 chunks +4 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp View 1 1 chunk +19 lines, -15 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
pdr.
3 years, 11 months ago (2017-01-20 07:04:29 UTC) #6
pdr.
3 years, 11 months ago (2017-01-20 18:45:32 UTC) #10
wkorman
lgtm Per discussion see if we can write a unit test to prevent regression of ...
3 years, 11 months ago (2017-01-20 19:33:52 UTC) #11
ajuma
https://codereview.chromium.org/2643203002/diff/1/third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp File third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp (left): https://codereview.chromium.org/2643203002/diff/1/third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp#oldcode292 third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp:292: scrollTree().SetScrollOffset(layerId, With this removed, is the scroll offset getting ...
3 years, 11 months ago (2017-01-20 21:35:48 UTC) #12
pdr.
On 2017/01/20 at 21:35:48, ajuma wrote: > https://codereview.chromium.org/2643203002/diff/1/third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp > File third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp (left): > > https://codereview.chromium.org/2643203002/diff/1/third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp#oldcode292 ...
3 years, 11 months ago (2017-01-20 23:01:40 UTC) #13
ajuma
On 2017/01/20 23:01:40, pdr. wrote: > On 2017/01/20 at 21:35:48, ajuma wrote: > > > ...
3 years, 11 months ago (2017-01-20 23:11:27 UTC) #14
pdr.
On 2017/01/20 at 23:11:27, ajuma wrote: > On 2017/01/20 23:01:40, pdr. wrote: > > On ...
3 years, 11 months ago (2017-01-23 05:23:16 UTC) #18
ajuma
On 2017/01/23 05:23:16, pdr. wrote: > On 2017/01/20 at 23:11:27, ajuma wrote: > > On ...
3 years, 11 months ago (2017-01-23 14:36:16 UTC) #21
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/2643203002/20001
3 years, 11 months ago (2017-01-23 17:33:20 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 17:39:26 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/de4408730000072669b7f4d27d0e...

Powered by Google App Engine
This is Rietveld 408576698