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

Unified Diff: cc/layers/layer.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update 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
« no previous file with comments | « cc/blimp/layer_tree_host_remote.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 672b249668a04b50c8c834f0cbbf08679fbc0ae7..cb4f1cb6fbde1ec9110729abc354118be210d006 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.
@@ -597,7 +603,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;
« no previous file with comments | « cc/blimp/layer_tree_host_remote.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698