diff options
author | loyso <loyso@chromium.org> | 2015-05-24 20:26:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-25 03:27:26 +0000 |
commit | a6edaaff54e9b948c64a896edff992c04e63205d (patch) | |
tree | af7fe7c050ec5d675d33d3d92acb69170b0a29ed /cc/layers/picture_layer.h | |
parent | 6f6374ee312ec0f8e07e208056a8f9135d97087f (diff) | |
download | chromium_src-a6edaaff54e9b948c64a896edff992c04e63205d.zip chromium_src-a6edaaff54e9b948c64a896edff992c04e63205d.tar.gz chromium_src-a6edaaff54e9b948c64a896edff992c04e63205d.tar.bz2 |
CC: Plumb LayerSettings parameter for cc::Layer construction.
Next episode:
https://codereview.chromium.org/1101823002/
This is a prerequisite to implement compositor animation timelines.
https://codereview.chromium.org/947033002/
BUG=394777
R=ajuma@chromium.org
R=vollick@chromium.org
R=piman@chromium.org
R=danakj@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1122393003
Cr-Commit-Position: refs/heads/master@{#331256}
Diffstat (limited to 'cc/layers/picture_layer.h')
-rw-r--r-- | cc/layers/picture_layer.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h index 767de27..c602ea5 100644 --- a/cc/layers/picture_layer.h +++ b/cc/layers/picture_layer.h @@ -19,7 +19,8 @@ class ResourceUpdateQueue; class CC_EXPORT PictureLayer : public Layer { public: - static scoped_refptr<PictureLayer> Create(ContentLayerClient* client); + static scoped_refptr<PictureLayer> Create(const LayerSettings& settings, + ContentLayerClient* client); void ClearClient(); @@ -45,9 +46,11 @@ class CC_EXPORT PictureLayer : public Layer { } protected: - explicit PictureLayer(ContentLayerClient* client); + PictureLayer(const LayerSettings& settings, ContentLayerClient* client); // Allow tests to inject a recording source. - PictureLayer(ContentLayerClient* client, scoped_ptr<RecordingSource> source); + PictureLayer(const LayerSettings& settings, + ContentLayerClient* client, + scoped_ptr<RecordingSource> source); ~PictureLayer() override; bool HasDrawableContent() const override; |