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

Unified Diff: cc/test/fake_picture_layer.h

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 years, 9 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 6bb9b175d07372643d5a18d3fcc9a639c920f249..4d7f52e12a7739aaa7b0a69c19fbac20d627a5e5 100644
--- a/cc/test/fake_picture_layer.h
+++ b/cc/test/fake_picture_layer.h
@@ -15,17 +15,14 @@
namespace cc {
class FakePictureLayer : public PictureLayer {
public:
- static scoped_refptr<FakePictureLayer> Create(const LayerSettings& settings,
- ContentLayerClient* client) {
- return make_scoped_refptr(new FakePictureLayer(settings, client));
+ static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) {
+ return make_scoped_refptr(new FakePictureLayer(client));
}
static scoped_refptr<FakePictureLayer> CreateWithRecordingSource(
- const LayerSettings& settings,
ContentLayerClient* client,
scoped_ptr<DisplayListRecordingSource> source) {
- return make_scoped_refptr(
- new FakePictureLayer(settings, client, std::move(source)));
+ return make_scoped_refptr(new FakePictureLayer(client, std::move(source)));
}
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -45,9 +42,8 @@ class FakePictureLayer : public PictureLayer {
void PushPropertiesTo(LayerImpl* layer) override;
private:
- FakePictureLayer(const LayerSettings& settings, ContentLayerClient* client);
- FakePictureLayer(const LayerSettings& settings,
- ContentLayerClient* client,
+ explicit FakePictureLayer(ContentLayerClient* client);
+ FakePictureLayer(ContentLayerClient* client,
scoped_ptr<DisplayListRecordingSource> 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