|
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}
Total comments: 2
Total comments: 5
|
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
|
Total messages: 13 (4 generated)
|