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

Unified Diff: cc/proto/layer.proto

Issue 1423523002: Add support for (de)serializing cc::Layer properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialize-layer-hierarchy
Patch Set: Addressed comments about raw pointers and new test. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/layer.proto
diff --git a/cc/proto/layer.proto b/cc/proto/layer.proto
index 74a243b4f92033dc07cac954d66088546b8f62fb..914ff8a9247571b7c903c25903fcd50c3f6f93e6 100644
--- a/cc/proto/layer.proto
+++ b/cc/proto/layer.proto
@@ -28,3 +28,27 @@ message LayerNode {
optional LayerNode mask_layer = 5;
optional LayerNode replica_layer = 6;
}
+
+// A container for a list of dirty layers.
+message LayerUpdate {
+ // A list of dirty layers.
+ repeated LayerProperties layers = 1;
+}
+
+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
+ // for their specific properties.
+ optional BaseLayerProperties base = 5;
+}
+
+message BaseLayerProperties {
+ // TODO(nyquist): Add all the required properties below. Huzzah!
+}
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698