diff options
Diffstat (limited to 'cc/layers/picture_layer.cc')
-rw-r--r-- | cc/layers/picture_layer.cc | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc index f528516..9d7ec69 100644 --- a/cc/layers/picture_layer.cc +++ b/cc/layers/picture_layer.cc @@ -19,25 +19,20 @@ 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), - client_(client), +PictureLayer::PictureLayer(ContentLayerClient* client) + : 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); } |