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

Issue 2680953002: Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll (Closed)

Created:
3 years, 10 months ago by pdr.
Modified:
3 years, 10 months ago
Reviewers:
ajuma, Nico, chrishtr, wkorman
CC:
ajuma+watch_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbauman+watch_chromium.org, jbroman, Justin Novosad, kalyank, kinuko+watch, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, rwlbuis, Stephen Chennney, tfarina, Ian Vollick
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll This patch removes GraphicsLayer::didScroll, replacing this cc->blink scroll callback with a direct call to Scrollablearea::didScroll. The old function on GraphicsLayer was only used to lookup the scroll offset but we can pass that along in the didScroll callback. This patch will be useful for SPV2 which does not use GraphicsLayer and can benefit from avoiding it, but this patch is intended to be useful for SPV1. This code has been split off of a larger patch for composited scrolling: https://codereview.chromium.org/2676923002. BUG=667946 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2680953002 Cr-Commit-Position: refs/heads/master@{#449073} Committed: https://chromium.googlesource.com/chromium/src/+/27a8cfde871ad4786943a345569f36c9a5ba6e29

Patch Set 1 #

Patch Set 2 : Remove unneeded tests from parent patch #

Total comments: 4

Patch Set 3 : Incorporate reviewer comments: more tests, less bad tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -80 lines) Patch
M cc/blink/web_layer_impl.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/blink/web_layer_impl.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 8 chunks +10 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 3 chunks +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 chunk +3 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 4 chunks +6 lines, -11 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayer.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayerScrollClient.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/controls/scroll_view.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/scroll_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
pdr.
3 years, 10 months ago (2017-02-07 22:00:22 UTC) #3
wkorman
https://codereview.chromium.org/2680953002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp File third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp (right): https://codereview.chromium.org/2680953002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp#newcode212 third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp:212: m_platformLayer->setScrollPositionDouble(scrollPosition); Do we still need to do this? It ...
3 years, 10 months ago (2017-02-07 22:18:05 UTC) #5
pdr.
https://codereview.chromium.org/2680953002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp File third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp (right): https://codereview.chromium.org/2680953002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp#newcode212 third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp:212: m_platformLayer->setScrollPositionDouble(scrollPosition); On 2017/02/07 at 22:18:05, wkorman wrote: > Do ...
3 years, 10 months ago (2017-02-08 03:53:56 UTC) #8
ajuma
lgtm
3 years, 10 months ago (2017-02-08 15:27:29 UTC) #13
pdr.
On 2017/02/08 at 15:27:29, ajuma wrote: > lgtm Thanks! @wkorman, can you take one more ...
3 years, 10 months ago (2017-02-08 15:28:48 UTC) #14
wkorman
lgtm
3 years, 10 months ago (2017-02-08 19:28:34 UTC) #16
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/2680953002/40001
3 years, 10 months ago (2017-02-08 19:29:12 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/359783)
3 years, 10 months ago (2017-02-08 19:41:00 UTC) #19
pdr.
On 2017/02/08 at 19:41:00, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
3 years, 10 months ago (2017-02-08 19:52:28 UTC) #21
Nico
ui/ lgtm
3 years, 10 months ago (2017-02-08 19:53:52 UTC) #22
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/2680953002/40001
3 years, 10 months ago (2017-02-08 20:01:07 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 20:13:02 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/27a8cfde871ad4786943a345569f...

Powered by Google App Engine
This is Rietveld 408576698