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

Unified Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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: third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
index 34bac462f36d6c9f4296df8fa786b3ea4d6fd279..ffe561fa8b9708cc616a2ad359aaed46332153cc 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
@@ -37,6 +37,7 @@
#include "third_party/skia/include/core/SkPicture.h"
#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "wtf/RefCounted.h"
+#include <memory>
namespace blink {
@@ -56,13 +57,13 @@ public:
PictureSnapshot(PassRefPtr<const SkPicture>);
- PassOwnPtr<Vector<char>> replay(unsigned fromStep = 0, unsigned toStep = 0, double scale = 1.0) const;
- PassOwnPtr<Timings> profile(unsigned minIterations, double minDuration, const FloatRect* clipRect) const;
+ std::unique_ptr<Vector<char>> replay(unsigned fromStep = 0, unsigned toStep = 0, double scale = 1.0) const;
+ std::unique_ptr<Timings> profile(unsigned minIterations, double minDuration, const FloatRect* clipRect) const;
PassRefPtr<JSONArray> snapshotCommandLog() const;
bool isEmpty() const;
private:
- PassOwnPtr<SkBitmap> createBitmap() const;
+ std::unique_ptr<SkBitmap> createBitmap() const;
RefPtr<const SkPicture> m_picture;
};

Powered by Google App Engine
This is Rietveld 408576698