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

Issue 800613009: Convert scroll offsets to use SyncedProperty. (Closed)

Created:
5 years, 11 months ago by aelias_OOO_until_Jul13
Modified:
5 years, 10 months ago
Reviewers:
enne (OOO)
CC:
bokan, cc-bugs_chromium.org, ccameron, chromium-reviews, Yufeng Shen (Slow to review), trchen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert scroll offsets to use SyncedProperty. This contains the logic used to synchronize scroll deltas between the main, pending and active tree into the generic SyncedProperty class. Each LayerImpl has a refptr to one, which is shared between the pending and active version of that layer. This removes the need for the logic to backsync deltas to the pending tree, reduces code duplication with analogous properties like page scale factor, and clarifies the principles behind CC's synchronization approach. This should be a no-op change. BUG= Committed: https://crrev.com/d0070ba1ca9f06ad5d52272c7da3827f38b1ddf0 Cr-Commit-Position: refs/heads/master@{#314053}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Stop refreshing delegate from CurrentScrollOffset #

Patch Set 3 : Fix test compile (very WIP) #

Patch Set 4 : Rebase #

Patch Set 5 : Fix tests (still WIP) #

Patch Set 6 : Fix compile (still WIP) #

Patch Set 7 : Clean up, rebase #

Total comments: 5

Patch Set 8 : Reupload for another tryrun #

Patch Set 9 : Rebase #

Patch Set 10 : Fix rebase error #

Patch Set 11 : Reupload for trybots #

Patch Set 12 : Fix Android WebView tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -350 lines) Patch
M cc/base/synced_property.h View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -17 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 9 chunks +39 lines, -22 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +116 lines, -186 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +25 lines, -21 lines 0 comments Download
M cc/layers/picture_image_layer_impl.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -5 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -5 lines 0 comments Download
M cc/layers/tiled_layer_impl.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M cc/layers/tiled_layer_impl.cc View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M cc/test/fake_content_layer_impl.h View 1 2 3 4 2 chunks +13 lines, -2 lines 0 comments Download
M cc/test/fake_content_layer_impl.cc View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 4 chunks +22 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 chunks +17 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 8 chunks +9 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 5 6 9 chunks +0 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -28 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
aelias_OOO_until_Jul13
Hi enne, PTAL. I got this to the point of seeming to work correctly when ...
5 years, 11 months ago (2015-01-15 01:36:06 UTC) #2
enne (OOO)
https://codereview.chromium.org/800613009/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/800613009/diff/1/cc/layers/layer_impl.cc#newcode1076 cc/layers/layer_impl.cc:1076: RefreshScrollDelegate(); Is there a better place to do this? ...
5 years, 11 months ago (2015-01-16 23:25:15 UTC) #3
aelias_OOO_until_Jul13
Hi Enne, I've been iterating on this when I find the time and finally got ...
5 years, 10 months ago (2015-01-30 05:52:31 UTC) #4
enne (OOO)
lgtm. I think this is all pretty straightforward, and you've commented on the parts where ...
5 years, 10 months ago (2015-01-30 21:08:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/800613009/220001
5 years, 10 months ago (2015-01-31 01:49:28 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gn_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gn_rel/builds/3591)
5 years, 10 months ago (2015-01-31 06:44:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/800613009/220001
5 years, 10 months ago (2015-01-31 07:48:27 UTC) #11
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-01-31 13:45:21 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-01-31 13:46:23 UTC) #13
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d0070ba1ca9f06ad5d52272c7da3827f38b1ddf0
Cr-Commit-Position: refs/heads/master@{#314053}

Powered by Google App Engine
This is Rietveld 408576698