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

Side by Side Diff: cc/layers/picture_layer.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer.h" 5 #include "cc/layers/picture_layer.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "cc/layers/content_layer_client.h" 8 #include "cc/layers/content_layer_client.h"
9 #include "cc/layers/picture_layer_impl.h" 9 #include "cc/layers/picture_layer_impl.h"
10 #include "cc/playback/display_list_recording_source.h" 10 #include "cc/playback/display_list_recording_source.h"
(...skipping 16 matching lines...) Expand all
27 instrumentation_object_tracker_(id()), 27 instrumentation_object_tracker_(id()),
28 update_source_frame_number_(-1), 28 update_source_frame_number_(-1),
29 is_mask_(false), 29 is_mask_(false),
30 nearest_neighbor_(false) { 30 nearest_neighbor_(false) {
31 } 31 }
32 32
33 PictureLayer::PictureLayer(const LayerSettings& settings, 33 PictureLayer::PictureLayer(const LayerSettings& settings,
34 ContentLayerClient* client, 34 ContentLayerClient* client,
35 scoped_ptr<DisplayListRecordingSource> source) 35 scoped_ptr<DisplayListRecordingSource> source)
36 : PictureLayer(settings, client) { 36 : PictureLayer(settings, client) {
37 recording_source_ = source.Pass(); 37 recording_source_ = std::move(source);
38 } 38 }
39 39
40 PictureLayer::~PictureLayer() { 40 PictureLayer::~PictureLayer() {
41 } 41 }
42 42
43 scoped_ptr<LayerImpl> PictureLayer::CreateLayerImpl(LayerTreeImpl* tree_impl) { 43 scoped_ptr<LayerImpl> PictureLayer::CreateLayerImpl(LayerTreeImpl* tree_impl) {
44 return PictureLayerImpl::Create(tree_impl, id(), is_mask_, 44 return PictureLayerImpl::Create(tree_impl, id(), is_mask_,
45 new LayerImpl::SyncedScrollOffset); 45 new LayerImpl::SyncedScrollOffset);
46 } 46 }
47 47
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 bool PictureLayer::HasDrawableContent() const { 209 bool PictureLayer::HasDrawableContent() const {
210 return client_ && Layer::HasDrawableContent(); 210 return client_ && Layer::HasDrawableContent();
211 } 211 }
212 212
213 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { 213 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) {
214 benchmark->RunOnLayer(this); 214 benchmark->RunOnLayer(this);
215 } 215 }
216 216
217 } // namespace cc 217 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698