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

Unified Diff: cc/layers/picture_layer.cc

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
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index f5285168da66b7056393dd52d01977831c7a15da..b06002334626bb7a0b408e200413e69cca1fc6db 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -19,25 +19,21 @@
namespace cc {
-scoped_refptr<PictureLayer> PictureLayer::Create(const LayerSettings& settings,
- ContentLayerClient* client) {
- return make_scoped_refptr(new PictureLayer(settings, client));
+scoped_refptr<PictureLayer> PictureLayer::Create(ContentLayerClient* client) {
+ return make_scoped_refptr(new PictureLayer(client));
}
-PictureLayer::PictureLayer(const LayerSettings& settings,
- ContentLayerClient* client)
- : Layer(settings),
+PictureLayer::PictureLayer(ContentLayerClient* client)
+ : Layer(),
client_(client),
instrumentation_object_tracker_(id()),
update_source_frame_number_(-1),
is_mask_(false),
- nearest_neighbor_(false) {
-}
+ nearest_neighbor_(false) {}
-PictureLayer::PictureLayer(const LayerSettings& settings,
- ContentLayerClient* client,
+PictureLayer::PictureLayer(ContentLayerClient* client,
scoped_ptr<DisplayListRecordingSource> source)
- : PictureLayer(settings, client) {
+ : PictureLayer(client) {
recording_source_ = std::move(source);
}

Powered by Google App Engine
This is Rietveld 408576698