Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Issue 1626513003: Add ScrollTree builder and unit test (Closed)

Created:
4 years, 11 months ago by sunxd
Modified:
4 years, 11 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

Add ScrollTree builder and unit test Remove ScrollBlocksOn from ScrollTree: It will be moved from the code base soon, will work to integrate the "passive event handler" if that depends on layer tree hierarchy. BUG=568830 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/ea1df789e1afcf57a69769b4c4a1d9ef09d112ed Cr-Commit-Position: refs/heads/master@{#371914}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename other_criteria, remove is_root in GetScrollParent and fixed a previous mistake in unit test. #

Total comments: 2

Patch Set 3 : ScrollTreeBuilder unit test checks scroll_tree_index() of layers which do not own a node #

Patch Set 4 : Change the protobuf indices #

Total comments: 4

Patch Set 5 : Move the NEXT ID comment to the top. #

Patch Set 6 : Remove ScrollBlocksOn from ScrollTree #

Patch Set 7 : Remove ScrollBlocksOn from ScrollTree #

Patch Set 8 : Resolve conflicts when merging with origin/master #

Patch Set 9 : Merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -14 lines) Patch
M cc/layers/layer.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M cc/proto/layer.proto View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 3 4 5 6 7 2 chunks +6 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 1 chunk +152 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -4 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 chunks +61 lines, -1 line 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 65 (34 generated)
sunxd
Hello, This change is to add scroll tree builder but not to use the scroll ...
4 years, 11 months ago (2016-01-22 21:22:52 UTC) #3
jaydasika
https://codereview.chromium.org/1626513003/diff/1/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1626513003/diff/1/cc/trees/layer_tree_host_common_unittest.cc#newcode9882 cc/trees/layer_tree_host_common_unittest.cc:9882: property_tree_root.data.transform_id = 0; Can you change this to root->transform_tree_index() ...
4 years, 11 months ago (2016-01-22 22:28:28 UTC) #4
ajuma
https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc#newcode657 cc/trees/property_tree_builder.cc:657: data_from_ancestor.scroll_other_criteria); What's the intuition behind passing scroll_other_criteria to children ...
4 years, 11 months ago (2016-01-25 15:19:54 UTC) #5
sunxd
https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc#newcode98 cc/trees/property_tree_builder.cc:98: const bool inherits_scroll = !layer->parent() || !layer->scroll_parent(); On 2016/01/22 ...
4 years, 11 months ago (2016-01-25 15:37:21 UTC) #6
sunxd
4 years, 11 months ago (2016-01-25 16:09:07 UTC) #7
ajuma
https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1626513003/diff/1/cc/trees/property_tree_builder.cc#newcode657 cc/trees/property_tree_builder.cc:657: data_from_ancestor.scroll_other_criteria); On 2016/01/25 15:37:21, sunxd wrote: > On 2016/01/25 ...
4 years, 11 months ago (2016-01-25 16:21:59 UTC) #8
sunxd
https://codereview.chromium.org/1626513003/diff/20001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1626513003/diff/20001/cc/trees/layer_tree_host_common_unittest.cc#newcode9825 cc/trees/layer_tree_host_common_unittest.cc:9825: // SCROLL_BLOCKS_ON_WHEEL_EVENT On 2016/01/25 16:21:59, ajuma wrote: > Which ...
4 years, 11 months ago (2016-01-25 16:25:52 UTC) #9
sunxd
4 years, 11 months ago (2016-01-25 16:38:58 UTC) #10
jaydasika
lgtm
4 years, 11 months ago (2016-01-25 18:27:10 UTC) #11
sunxd
Add dtrainor to the reviewers. Hello David, I have to update the layer properties in ...
4 years, 11 months ago (2016-01-26 15:16:40 UTC) #14
David Trainor- moved to gerrit
On 2016/01/26 15:16:40, sunxd wrote: > Add dtrainor to the reviewers. > > Hello David, ...
4 years, 11 months ago (2016-01-26 15:55:53 UTC) #15
David Trainor- moved to gerrit
On 2016/01/26 15:16:40, sunxd wrote: > Add dtrainor to the reviewers. > > Hello David, ...
4 years, 11 months ago (2016-01-26 15:55:55 UTC) #16
sunxd
Thanks David! I have changed the protobuf indices for scroll tree data structures.
4 years, 11 months ago (2016-01-26 16:32:49 UTC) #17
David Trainor- moved to gerrit
last nit then lgtm. thanks for checking with me! https://codereview.chromium.org/1626513003/diff/60001/cc/proto/layer.proto File cc/proto/layer.proto (right): https://codereview.chromium.org/1626513003/diff/60001/cc/proto/layer.proto#newcode79 cc/proto/layer.proto:79: ...
4 years, 11 months ago (2016-01-26 16:34:56 UTC) #18
sunxd
https://codereview.chromium.org/1626513003/diff/60001/cc/proto/layer.proto File cc/proto/layer.proto (right): https://codereview.chromium.org/1626513003/diff/60001/cc/proto/layer.proto#newcode79 cc/proto/layer.proto:79: // NEXT ID: 51 On 2016/01/26 16:34:56, David Trainor ...
4 years, 11 months ago (2016-01-26 16:39:43 UTC) #19
ajuma
lgtm too
4 years, 11 months ago (2016-01-26 16:57:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626513003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626513003/80001
4 years, 11 months ago (2016-01-26 17:00:46 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/13003)
4 years, 11 months ago (2016-01-26 17:18:55 UTC) #25
sunxd
On 2016/01/26 17:18:55, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 11 months ago (2016-01-26 18:05:07 UTC) #26
Ian Vollick
https://codereview.chromium.org/1626513003/diff/340001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1626513003/diff/340001/cc/layers/layer_impl.h#newcode536 cc/layers/layer_impl.h:536: return (ScrollBlocksOn)((unsigned int)scroll_blocks_on_); These c-style casts look fishy; I'm ...
4 years, 11 months ago (2016-01-27 15:25:51 UTC) #31
sunxd
Sorry but I'm running try jobs on this CL because of a possible bug on ...
4 years, 11 months ago (2016-01-27 15:49:35 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626513003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626513003/360001
4 years, 11 months ago (2016-01-27 19:42:02 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626513003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626513003/380001
4 years, 11 months ago (2016-01-27 20:07:00 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/150661) linux_chromium_rel_ng on ...
4 years, 11 months ago (2016-01-27 20:12:08 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626513003/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626513003/440001
4 years, 11 months ago (2016-01-27 21:36:35 UTC) #54
sunxd
I removed ScrollBlocksOn from ScrollTree. And because there are changes to master branch between patch ...
4 years, 11 months ago (2016-01-27 22:22:08 UTC) #55
ajuma
On 2016/01/27 22:22:08, sunxd wrote: > I removed ScrollBlocksOn from ScrollTree. > > And because ...
4 years, 11 months ago (2016-01-27 22:40:31 UTC) #56
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-27 22:52:53 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626513003/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626513003/440001
4 years, 11 months ago (2016-01-27 23:13:38 UTC) #61
commit-bot: I haz the power
Committed patchset #9 (id:440001)
4 years, 11 months ago (2016-01-28 00:12:44 UTC) #63
commit-bot: I haz the power
4 years, 11 months ago (2016-01-28 00:15:02 UTC) #65
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ea1df789e1afcf57a69769b4c4a1d9ef09d112ed
Cr-Commit-Position: refs/heads/master@{#371914}

Powered by Google App Engine
This is Rietveld 408576698