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

Unified Diff: cc/layers/layer.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: tests Created 4 years, 2 months 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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 99f85c12770662dde067490bb6c76e05a18d81e7..f40ccf2a189a5e5375f80862f39f2ee360e9a83b 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -379,7 +379,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// a LayerImpl, it pushes the properties to proto::LayerProperties. It is
// called only on layers that have changed properties. The properties
// themselves are pushed to proto::LayerProperties.
- void ToLayerPropertiesProto(proto::LayerUpdate* layer_update);
+ void ToLayerPropertiesProto(proto::LayerUpdate* layer_update,
+ bool inputs_only);
// Read all property values from the given LayerProperties object and update
// the current layer. The values for |needs_push_properties_| and
@@ -493,6 +494,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
virtual ~Layer();
Layer();
+ // Tests in remote mode need to explicitly set the layer id so it matches the
+ // layer id for the corresponding Layer on the engine.
+ explicit Layer(int layer_id);
+
LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
@@ -532,7 +537,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// into proto::LayerProperties. This method is not marked as const
// as some implementations need reset member fields, similarly to
// PushPropertiesTo().
- virtual void LayerSpecificPropertiesToProto(proto::LayerProperties* proto);
+ virtual void LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
+ bool inputs_only);
// Deserialize all the necessary properties from proto::LayerProperties into
// this Layer.
@@ -600,7 +606,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// internally in cc. Update this for the SPv2 path where blink generates
// PropertyTrees.
struct Inputs {
- Inputs();
+ explicit Inputs(int layer_id);
~Inputs();
int layer_id;

Powered by Google App Engine
This is Rietveld 408576698