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

Issue 1736073002: cc: Move SyncedScrollOffset to scroll tree (Closed)

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

cc: Move SyncedScrollOffset to scroll tree Now updating scrolling information on impl side can be independent of layer impl. There are still some left-over changes corresponding to NoteLayerPropertiesChanged. SyncedScrollOffset of scrollable layers are now stored in property trees instead of layer impl. The main thread property tree has one copy while pending and active share one. BUG=568830 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/c36713a0336c00a0971fe33514adc01f4df693fa Cr-Commit-Position: refs/heads/master@{#379116}

Patch Set 1 : Add a copy of synced_scroll_offset in scroll tree, and make it properly pushed from main or pending tree. #

Patch Set 2 : It doesn't even compile :) #

Patch Set 3 : Upload with unit test failures #

Patch Set 4 : There are still 9 failed tests. #

Patch Set 5 : Fixed all unit tests. #

Patch Set 6 : Rebase #

Patch Set 7 : Add gyp dependency #

Total comments: 1

Patch Set 8 : Fix after rebase #

Total comments: 26

Patch Set 9 : Resolve comments #

Total comments: 8

Patch Set 10 : Resolve comments #

Patch Set 11 : Remove deprecated tests. #

Patch Set 12 : Remove scroll_offset() from LayerImpl #

Total comments: 5

Patch Set 13 : Rebase and add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+618 lines, -187 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M cc/base/synced_property.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M cc/input/scroll_state.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -5 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +8 lines, -21 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +34 lines, -67 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -7 lines 0 comments Download
M cc/layers/layer_iterator_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_image_layer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -11 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -8 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M cc/proto/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -1 line 0 comments Download
A cc/proto/synced_property.proto View 1 chunk +29 lines, -0 lines 0 comments Download
A cc/proto/synced_property_conversions.h View 1 chunk +26 lines, -0 lines 0 comments Download
A cc/proto/synced_property_conversions.cc View 1 chunk +26 lines, -0 lines 0 comments Download
A cc/proto/synced_property_conversions_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -5 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -24 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +21 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -4 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +31 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +193 lines, -4 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -0 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 8 2 chunks +115 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
sunxd
https://codereview.chromium.org/1736073002/diff/120001/cc/base/synced_property.h File cc/base/synced_property.h (right): https://codereview.chromium.org/1736073002/diff/120001/cc/base/synced_property.h#newcode116 cc/base/synced_property.h:116: bool clobber_active_value() const { return clobber_active_value_; } Because we ...
4 years, 9 months ago (2016-03-01 18:42:47 UTC) #4
ajuma
This looks great at a high level! There are parts I still need to look ...
4 years, 9 months ago (2016-03-01 22:54:21 UTC) #5
sunxd
https://codereview.chromium.org/1736073002/diff/140001/cc/cc.gyp File cc/cc.gyp (right): https://codereview.chromium.org/1736073002/diff/140001/cc/cc.gyp#newcode390 cc/cc.gyp:390: 'proto/synced_property_conversions.h', On 2016/03/01 22:54:20, ajuma wrote: > This looks ...
4 years, 9 months ago (2016-03-02 17:45:34 UTC) #6
ajuma
https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h#newcode470 cc/layers/layer_impl.h:470: void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); On 2016/03/02 17:45:34, sunxd wrote: ...
4 years, 9 months ago (2016-03-02 18:43:10 UTC) #7
sunxd
https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h#newcode470 cc/layers/layer_impl.h:470: void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); On 2016/03/02 18:43:09, ajuma wrote: ...
4 years, 9 months ago (2016-03-02 20:52:55 UTC) #8
sunxd
https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h#newcode470 cc/layers/layer_impl.h:470: void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); On 2016/03/02 18:43:09, ajuma wrote: ...
4 years, 9 months ago (2016-03-02 20:52:55 UTC) #9
ajuma
https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1736073002/diff/140001/cc/layers/layer_impl.h#newcode479 cc/layers/layer_impl.h:479: return synced_scroll_offset()->PendingBase(); On 2016/03/02 20:52:55, sunxd wrote: > On ...
4 years, 9 months ago (2016-03-02 22:31:08 UTC) #10
sunxd
https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc File cc/layers/layer_impl_unittest.cc (right): https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc#newcode332 cc/layers/layer_impl_unittest.cc:332: VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->DidUpdateScrollOffset()); This is the change in the test. It ...
4 years, 9 months ago (2016-03-03 16:01:25 UTC) #11
ajuma
https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc File cc/layers/layer_impl_unittest.cc (right): https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc#newcode332 cc/layers/layer_impl_unittest.cc:332: VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->DidUpdateScrollOffset()); On 2016/03/03 16:01:25, sunxd wrote: > This is ...
4 years, 9 months ago (2016-03-03 18:05:06 UTC) #12
sunxd
https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc File cc/layers/layer_impl_unittest.cc (right): https://codereview.chromium.org/1736073002/diff/220001/cc/layers/layer_impl_unittest.cc#newcode332 cc/layers/layer_impl_unittest.cc:332: VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->DidUpdateScrollOffset()); On 2016/03/03 18:05:06, ajuma wrote: > On 2016/03/03 ...
4 years, 9 months ago (2016-03-03 18:50:13 UTC) #13
ajuma
Thanks, lgtm.
4 years, 9 months ago (2016-03-03 19:14:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736073002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736073002/240001
4 years, 9 months ago (2016-03-03 19:17:54 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/183587)
4 years, 9 months ago (2016-03-03 20:41:38 UTC) #18
sunxd
On 2016/03/03 20:41:38, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 9 months ago (2016-03-03 22:05:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736073002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736073002/240001
4 years, 9 months ago (2016-03-03 22:23:07 UTC) #21
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-03 22:31:20 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 22:32:36 UTC) #25
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/c36713a0336c00a0971fe33514adc01f4df693fa
Cr-Commit-Position: refs/heads/master@{#379116}

Powered by Google App Engine
This is Rietveld 408576698