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

Unified Diff: cc/layers/picture_layer.h

Issue 1527863002: Serialize PictureLayer properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 5 years 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/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 7eb87f082035b2960c0418bfed481ada717207be..4b886e872dea749cd0a39860f4f5108120538cdb 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -15,6 +15,7 @@ namespace cc {
class ContentLayerClient;
class DisplayListRecordingSource;
class ResourceUpdateQueue;
+class TestSerializationPictureLayer;
vmpstr 2015/12/16 04:21:08 Does the friend declaration below act as a forward
David Trainor- moved to gerrit 2015/12/16 19:10:58 Done.
class CC_EXPORT PictureLayer : public Layer {
public:
@@ -52,10 +53,17 @@ class CC_EXPORT PictureLayer : public Layer {
~PictureLayer() override;
bool HasDrawableContent() const override;
+ void LayerSpecificPropertiesToProto(proto::LayerProperties* proto) override;
+ void FromLayerSpecificPropertiesProto(
+ const proto::LayerProperties& proto) override;
bool is_mask() const { return is_mask_; }
private:
+ friend class TestSerializationPictureLayer;
+
+ void ValidateRecordingSource();
+
ContentLayerClient* client_;
scoped_ptr<DisplayListRecordingSource> recording_source_;
devtools_instrumentation::

Powered by Google App Engine
This is Rietveld 408576698