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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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 ff8dd2d348bf4bac7a9414987343acdb43f31db9..bfe7474be1bff05b8fdaf9a8b0f67bd30c8ee632 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
@@ -36,6 +36,7 @@
#include "platform/json/JSONValues.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "third_party/skia/include/core/SkPictureRecorder.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/RefCounted.h"
#include <memory>
@@ -55,7 +56,7 @@ public:
static PassRefPtr<PictureSnapshot> load(const Vector<RefPtr<TilePictureStream>>&);
- PictureSnapshot(PassRefPtr<const SkPicture>);
+ PictureSnapshot(sk_sp<const SkPicture>);
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;
@@ -65,7 +66,7 @@ public:
private:
std::unique_ptr<SkBitmap> createBitmap() const;
- RefPtr<const SkPicture> m_picture;
+ sk_sp<const SkPicture> m_picture;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698