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

Unified Diff: cc/test/fake_picture_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/test/fake_picture_layer.h
diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h
index d1011554ac09c40c8158516254f23866de63678b..81eb36871893958797c85c516beb614527d71821 100644
--- a/cc/test/fake_picture_layer.h
+++ b/cc/test/fake_picture_layer.h
@@ -13,14 +13,17 @@
namespace cc {
class FakePictureLayer : public PictureLayer {
public:
- static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) {
- return make_scoped_refptr(new FakePictureLayer(client));
+ static scoped_refptr<FakePictureLayer> Create(const LayerSettings& settings,
+ ContentLayerClient* client) {
+ return make_scoped_refptr(new FakePictureLayer(settings, client));
}
static scoped_refptr<FakePictureLayer> CreateWithRecordingSource(
+ const LayerSettings& settings,
ContentLayerClient* client,
scoped_ptr<RecordingSource> source) {
- return make_scoped_refptr(new FakePictureLayer(client, source.Pass()));
+ return make_scoped_refptr(
+ new FakePictureLayer(settings, client, source.Pass()));
}
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -48,8 +51,9 @@ class FakePictureLayer : public PictureLayer {
}
private:
- explicit FakePictureLayer(ContentLayerClient* client);
- FakePictureLayer(ContentLayerClient* client,
+ FakePictureLayer(const LayerSettings& settings, ContentLayerClient* client);
+ FakePictureLayer(const LayerSettings& settings,
+ ContentLayerClient* client,
scoped_ptr<RecordingSource> source);
~FakePictureLayer() override;

Powered by Google App Engine
This is Rietveld 408576698