summaryrefslogtreecommitdiffstats
path: root/cc/proto
diff options
context:
space:
mode:
authorjaydasika <jaydasika@chromium.org>2016-03-21 13:44:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-21 20:45:22 +0000
commit9234e405c7089c47ca9d30b34846f54b1fd9b8fd (patch)
treec338cb228c148d32e26bf08f30e965904d14ab6a /cc/proto
parent8b23772eff902cf5df76414e1998826e87fc8444 (diff)
downloadchromium_src-9234e405c7089c47ca9d30b34846f54b1fd9b8fd.zip
chromium_src-9234e405c7089c47ca9d30b34846f54b1fd9b8fd.tar.gz
chromium_src-9234e405c7089c47ca9d30b34846f54b1fd9b8fd.tar.bz2
cc : Make tree synchronization independent of layer tree hierarchy (2)
This CL : * Stores layers that need to push properties in LayerTreeHost(layer_set) * Deletes bools needs_push_properties and dependants_needs_push_properties from Layer. * Iterate the layer_set tp push properties during commit. * Changes what layers are serialized (Both dirty layers and their ancestors are serialized currently. With this CL, only dirty layers serialize). BUG=568874 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1808373002 Cr-Commit-Position: refs/heads/master@{#382379}
Diffstat (limited to 'cc/proto')
-rw-r--r--cc/proto/layer.proto4
-rw-r--r--cc/proto/layer_tree_host.proto1
2 files changed, 1 insertions, 4 deletions
diff --git a/cc/proto/layer.proto b/cc/proto/layer.proto
index 160ffa7..f6f3353 100644
--- a/cc/proto/layer.proto
+++ b/cc/proto/layer.proto
@@ -53,10 +53,6 @@ message LayerUpdate {
message LayerProperties {
// required
optional int32 id = 1;
- // required
- optional bool needs_push_properties = 3;
- // required
- optional int32 num_dependents_need_push_properties = 4;
// The properties below are only read if |needs_push_properties| is set.
// The Layer base class and each descendant have different proto messages
diff --git a/cc/proto/layer_tree_host.proto b/cc/proto/layer_tree_host.proto
index d1d78e7..e324d1d 100644
--- a/cc/proto/layer_tree_host.proto
+++ b/cc/proto/layer_tree_host.proto
@@ -56,4 +56,5 @@ message LayerTreeHost {
optional uint32 wheel_event_listener_properties = 34;
optional bool have_scroll_event_handlers = 35;
optional uint32 touch_event_listener_properties = 36;
+ repeated int32 layers_that_should_push_properties = 37;
}