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; |
}; |