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

Unified Diff: cc/test/fake_picture_layer.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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 91f30f32c95f0bab1edb808d65ea75fac06a4d09..038e97543d9ad206f0750f812363b93bf481d5f8 100644
--- a/cc/test/fake_picture_layer.h
+++ b/cc/test/fake_picture_layer.h
@@ -7,8 +7,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "cc/layers/picture_layer.h"
#include "cc/playback/recording_source.h"
@@ -21,11 +22,11 @@ class FakePictureLayer : public PictureLayer {
static scoped_refptr<FakePictureLayer> CreateWithRecordingSource(
ContentLayerClient* client,
- scoped_ptr<RecordingSource> source) {
+ std::unique_ptr<RecordingSource> source) {
return make_scoped_refptr(new FakePictureLayer(client, std::move(source)));
}
- scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
+ std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
int update_count() const { return update_count_; }
void reset_update_count() { update_count_ = 0; }
@@ -44,7 +45,7 @@ class FakePictureLayer : public PictureLayer {
private:
explicit FakePictureLayer(ContentLayerClient* client);
FakePictureLayer(ContentLayerClient* client,
- scoped_ptr<RecordingSource> source);
+ std::unique_ptr<RecordingSource> source);
~FakePictureLayer() override;
int update_count_;
« 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