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

Unified Diff: cc/layers/picture_image_layer.h

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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/picture_image_layer.h
diff --git a/cc/layers/picture_image_layer.h b/cc/layers/picture_image_layer.h
index a12a1b9085d05431b18d7a8b7e803daee8e1d4c9..0c1adb58be6cf488b975be31567b0c244c58018b 100644
--- a/cc/layers/picture_image_layer.h
+++ b/cc/layers/picture_image_layer.h
@@ -15,7 +15,7 @@ namespace cc {
class CC_EXPORT PictureImageLayer : public PictureLayer, ContentLayerClient {
public:
- static scoped_refptr<PictureImageLayer> Create();
+ static scoped_refptr<PictureImageLayer> Create(const LayerSettings& settings);
void SetBitmap(const SkBitmap& image);
@@ -37,7 +37,7 @@ class CC_EXPORT PictureImageLayer : public PictureLayer, ContentLayerClient {
bool HasDrawableContent() const override;
private:
- PictureImageLayer();
+ explicit PictureImageLayer(const LayerSettings& settings);
~PictureImageLayer() override;
SkBitmap bitmap_;

Powered by Google App Engine
This is Rietveld 408576698