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

Unified Diff: cc/layers/picture_layer.cc

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

Powered by Google App Engine
This is Rietveld 408576698