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

Unified Diff: cc/test/fake_picture_layer.h

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « cc/test/fake_painted_scrollbar_layer.cc ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer.h
diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h
index 2421fee0d5983fd559ae6b8fa8200349d7172b2b..19e365d76ad4df0205eaa8dd6cce311fad1c8bfd 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;
« no previous file with comments | « cc/test/fake_painted_scrollbar_layer.cc ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698