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

Unified Diff: third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.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/skia/ImagePixelLocker.h
diff --git a/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h b/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h
index e3b8bc319760e318597a55f9c05719c64acf1f5c..1fd7646362708535f413810322e63a3d939a30be 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h
+++ b/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h
@@ -7,6 +7,7 @@
#include "platform/heap/Heap.h"
#include "third_party/skia/include/core/SkImageInfo.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
@@ -20,12 +21,12 @@ class ImagePixelLocker final {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
WTF_MAKE_NONCOPYABLE(ImagePixelLocker);
public:
- ImagePixelLocker(PassRefPtr<const SkImage>, SkAlphaType, SkColorType);
+ ImagePixelLocker(sk_sp<const SkImage>, SkAlphaType, SkColorType);
const void* pixels() const { return m_pixels; }
private:
- const RefPtr<const SkImage> m_image;
+ const sk_sp<const SkImage> m_image;
const void* m_pixels;
SkAutoMalloc m_pixelStorage;
};

Powered by Google App Engine
This is Rietveld 408576698