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

Issue 2621133002: Return main thread scroll layer in FindScrollLayerForDeviceViewportPoint (Closed)

Created:
3 years, 11 months ago by chaopeng
Modified:
3 years, 11 months ago
Reviewers:
bokan, weiliangc, sahel
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return main thread scroll layer FindScrollLayerForDeviceViewportPoint In FindScrollLayerForDeviceViewportPoint, we return null for main thread scroll layer. But some calls only use the layer to look up animation controller and that null return will make it wrong. In the patch we return a layer without checking it is scroll in main thread. BUG=679804 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2621133002 Cr-Commit-Position: refs/heads/master@{#443943} Committed: https://chromium.googlesource.com/chromium/src/+/38ec90922bb8f6e9c2b6aaacdc27c13ae6dde8f2

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Patch Set 3 : test fix #

Total comments: 1

Patch Set 4 : add todo back #

Patch Set 5 : add test #

Total comments: 4

Patch Set 6 : bokan comments addressed #

Total comments: 1

Patch Set 7 : return current layer when it is main thread scrolling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 chunks +7 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 5 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 38 (20 generated)
chaopeng
PTAL. Maybe we should also change the name of FindScrollLayerForDeviceViewportPoint and FindScrollLayerByLayer.
3 years, 11 months ago (2017-01-10 20:02:37 UTC) #4
bokan
https://codereview.chromium.org/2621133002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2621133002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2578 cc/trees/layer_tree_host_impl.cc:2578: LayerImpl* LayerTreeHostImpl::FindScrollLayerByLayer( This method avoids the walk up the ...
3 years, 11 months ago (2017-01-10 22:36:23 UTC) #5
chaopeng
PTAL. Thank you.
3 years, 11 months ago (2017-01-13 16:08:09 UTC) #14
bokan
https://codereview.chromium.org/2621133002/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (left): https://codereview.chromium.org/2621133002/diff/40001/cc/trees/layer_tree_host_impl.cc#oldcode3247 cc/trees/layer_tree_host_impl.cc:3247: // scrolling on main thread, as well. What extra ...
3 years, 11 months ago (2017-01-13 16:19:17 UTC) #15
chaopeng
On 2017/01/13 16:19:17, bokan wrote: > https://codereview.chromium.org/2621133002/diff/40001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (left): > > https://codereview.chromium.org/2621133002/diff/40001/cc/trees/layer_tree_host_impl.cc#oldcode3247 > ...
3 years, 11 months ago (2017-01-13 16:33:32 UTC) #17
bokan
On 2017/01/13 16:33:32, chaopeng wrote: > On 2017/01/13 16:19:17, bokan wrote: > > > https://codereview.chromium.org/2621133002/diff/40001/cc/trees/layer_tree_host_impl.cc ...
3 years, 11 months ago (2017-01-13 16:34:33 UTC) #18
chaopeng
On 2017/01/13 16:34:33, bokan wrote: > On 2017/01/13 16:33:32, chaopeng wrote: > > On 2017/01/13 ...
3 years, 11 months ago (2017-01-13 16:47:48 UTC) #20
bokan
Please update the TODO to make that clearer. Also, please add a test that checks ...
3 years, 11 months ago (2017-01-13 16:51:57 UTC) #21
chaopeng
Added test and updated TODO comments, PTAL. https://codereview.chromium.org/2621133002/diff/100001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2621133002/diff/100001/cc/trees/layer_tree_host_impl_unittest.cc#newcode11654 cc/trees/layer_tree_host_impl_unittest.cc:11654: root_scroll->set_main_thread_scrolling_reasons( Can ...
3 years, 11 months ago (2017-01-13 19:15:29 UTC) #23
bokan
lgtm % comments https://codereview.chromium.org/2621133002/diff/100001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2621133002/diff/100001/cc/trees/layer_tree_host_impl.cc#newcode3245 cc/trees/layer_tree_host_impl.cc:3245: // scrolling on main thread when ...
3 years, 11 months ago (2017-01-13 19:23:38 UTC) #24
chaopeng
weiliangc@chromium.org: Please review changes
3 years, 11 months ago (2017-01-13 20:39:47 UTC) #26
weiliangc
https://codereview.chromium.org/2621133002/diff/120001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2621133002/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode2539 cc/trees/layer_tree_host_impl.cc:2539: return potentially_scrolling_layer_impl Why not return just active_tree->LayerById(scroll_node->owning_layer_id) here? It ...
3 years, 11 months ago (2017-01-16 18:31:15 UTC) #27
chaopeng
On 2017/01/16 18:31:15, weiliangc wrote: > https://codereview.chromium.org/2621133002/diff/120001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/2621133002/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode2539 > ...
3 years, 11 months ago (2017-01-16 19:32:44 UTC) #28
weiliangc
LGTM
3 years, 11 months ago (2017-01-16 19:34:52 UTC) #29
bokan
Also, please wrap the description at 80 columns
3 years, 11 months ago (2017-01-16 19:35:56 UTC) #30
sahel
On 2017/01/16 19:35:56, bokan wrote: > Also, please wrap the description at 80 columns LGTM ...
3 years, 11 months ago (2017-01-16 20:18:38 UTC) #32
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/2621133002/140001
3 years, 11 months ago (2017-01-16 20:19:56 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 21:15:00 UTC) #38
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/38ec90922bb8f6e9c2b6aaacdc27...

Powered by Google App Engine
This is Rietveld 408576698