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

Issue 1675963002: Move MaxScrollOffset to property_trees (Closed)

Created:
4 years, 10 months ago by sunxd
Modified:
4 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move MaxScrollOffset to property_trees MaxScrollOffset is removed from LayerImpl so that updating scrolling info does not need to touch LayerImpl unless a non-fast scrollable region is met (this is also planned to be removed from LayerImpl when hit testing list is available). ScrollTree now stores information about layer bounds, scroll clip layer bounds, bounds_delta and inner/outer viewport container/scroller layer info. Also needs to push page_scale_factor to TransformTree when updated. BUG=568830 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/cfccd1b3bb04f45527c34f6f52d3052faab0e1b2 Cr-Commit-Position: refs/heads/master@{#374809}

Patch Set 1 #

Patch Set 2 : Fix unit tests failures #

Total comments: 5

Patch Set 3 : Fix trybot failure, remove unnecessary code #

Total comments: 11

Patch Set 4 : Apply comments. #

Total comments: 15

Patch Set 5 : Resovle comments and add MaxScrollOffset with BoundsDelta unit test #

Patch Set 6 : Add DrawFrameWithoutBuildingPropertyTrees, will clean up DrawFrame in next CL #

Total comments: 3

Patch Set 7 : Modify sanity check when updating page_scale_factor #

Total comments: 1

Patch Set 8 : Remove comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -163 lines) Patch
M cc/layers/layer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 2 chunks +5 lines, -9 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 chunks +10 lines, -34 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 5 chunks +9 lines, -3 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 3 5 chunks +12 lines, -3 lines 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 11 chunks +33 lines, -27 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 8 chunks +40 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 6 chunks +32 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +8 lines, -5 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 8 chunks +42 lines, -12 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 14 chunks +142 lines, -35 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 1 chunk +20 lines, -2 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 16 chunks +32 lines, -19 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
sunxd
Move MaxScrollOffset to scroll tree from layer impl. I will delete the dead code soon. ...
4 years, 10 months ago (2016-02-09 00:11:32 UTC) #4
sunxd
I removed the dead code mentioned in patch#2 and attempted to fix a trybot failure ...
4 years, 10 months ago (2016-02-09 15:47:23 UTC) #5
ajuma
https://codereview.chromium.org/1675963002/diff/40001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1675963002/diff/40001/cc/layers/layer.cc#newcode374 cc/layers/layer.cc:374: } The block above should be removed too (no ...
4 years, 10 months ago (2016-02-09 16:27:13 UTC) #6
sunxd
I applied the comments to the CL.
4 years, 10 months ago (2016-02-09 21:17:49 UTC) #7
ajuma
This mostly looks good, just a few more comments. https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8416 cc/trees/layer_tree_host_impl_unittest.cc:8416: ...
4 years, 10 months ago (2016-02-09 22:35:05 UTC) #8
sunxd
Will work on resolving comments. And here are some comments about cc_unittests related to property_trees. ...
4 years, 10 months ago (2016-02-09 23:03:57 UTC) #9
ajuma
https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_impl.cc#newcode534 cc/trees/layer_tree_impl.cc:534: ClampPageScaleFactorToLimits(*page_scale_factor)); On 2016/02/09 23:03:56, sunxd wrote: > On 2016/02/09 ...
4 years, 10 months ago (2016-02-10 00:15:06 UTC) #10
sunxd
Just one problem about the comments: https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8416 cc/trees/layer_tree_host_impl_unittest.cc:8416: host_impl_->SetViewportSize(gfx::Size(100, 100)); On ...
4 years, 10 months ago (2016-02-10 16:56:36 UTC) #11
ajuma
https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8416 cc/trees/layer_tree_host_impl_unittest.cc:8416: host_impl_->SetViewportSize(gfx::Size(100, 100)); On 2016/02/10 16:56:36, sunxd wrote: > On ...
4 years, 10 months ago (2016-02-10 17:54:58 UTC) #12
sunxd
On 2016/02/10 17:54:58, ajuma wrote: > https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc > File cc/trees/layer_tree_host_impl_unittest.cc (right): > > https://codereview.chromium.org/1675963002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8416 > ...
4 years, 10 months ago (2016-02-10 17:59:26 UTC) #13
sunxd
4 years, 10 months ago (2016-02-10 18:28:00 UTC) #14
ajuma
https://codereview.chromium.org/1675963002/diff/100001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/1675963002/diff/100001/cc/trees/layer_tree_impl.cc#newcode496 cc/trees/layer_tree_impl.cc:496: if (PageScaleLayer() && !property_trees()->needs_rebuild) We shouldn't be rebuilding on ...
4 years, 10 months ago (2016-02-10 19:08:14 UTC) #15
sunxd
4 years, 10 months ago (2016-02-10 22:25:58 UTC) #16
ajuma
Thanks! Just one more nit, but otherwise lgtm. https://codereview.chromium.org/1675963002/diff/120001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/1675963002/diff/120001/cc/trees/layer_tree_impl.cc#newcode544 cc/trees/layer_tree_impl.cc:544: if ...
4 years, 10 months ago (2016-02-10 22:30:19 UTC) #17
sunxd
4 years, 10 months ago (2016-02-10 22:44:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675963002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675963002/140001
4 years, 10 months ago (2016-02-10 22:48:03 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-11 00:54:31 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:33:20 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cfccd1b3bb04f45527c34f6f52d3052faab0e1b2
Cr-Commit-Position: refs/heads/master@{#374809}

Powered by Google App Engine
This is Rietveld 408576698