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

Unified Diff: cc/layers/layer.h

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Fix test 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 cb4f1cb6fbde1ec9110729abc354118be210d006..29dbc36f2ae42edbdd82ec49b83a23caea5e2ede 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -358,7 +358,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// hierarchical structure to the given LayerNode proto. In addition to the
// structure itself, the Layer id and type is also written to facilitate
// construction of the correct layer on the client.
- void ToLayerNodeProto(proto::LayerNode* proto) const;
+ virtual void ToLayerNodeProto(proto::LayerNode* proto) const;
// Recursively iterate over this layer and all children and reset the
// properties sent with the hierarchical structure in the LayerNode protos.
@@ -371,9 +371,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// into this node and its children. The |layer_map| should be used to look
// for previously existing Layers, since they should be re-used between each
// hierarchy update.
- void FromLayerNodeProto(const proto::LayerNode& proto,
- const LayerIdMap& layer_map,
- LayerTreeHost* layer_tree_host);
+ virtual void FromLayerNodeProto(const proto::LayerNode& proto,
+ const LayerIdMap& layer_map,
+ LayerTreeHost* layer_tree_host);
// This method is similar to PushPropertiesTo, but instead of pushing to
// a LayerImpl, it pushes the properties to proto::LayerProperties. It is

Powered by Google App Engine
This is Rietveld 408576698