Index: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h |
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h |
index b2a8aea67fdf6a47341216ff4fea11297ee2bc45..993f139e0e2e91c535d41f1b541e25f8f28b1cf5 100644 |
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h |
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h |
@@ -30,6 +30,7 @@ |
#include "platform/geometry/IntSize.h" |
#include "platform/image-decoders/ImageDecoder.h" |
#include "third_party/skia/include/core/SkRWBuffer.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
#include "wtf/Allocator.h" |
#include "wtf/Forward.h" |
#include "wtf/Vector.h" |
@@ -56,7 +57,7 @@ public: |
String filenameExtension() const; |
- PassRefPtr<SkImage> createFrameAtIndex(size_t); |
+ sk_sp<SkImage> createFrameAtIndex(size_t); |
PassRefPtr<SharedBuffer> data(); |
void setData(PassRefPtr<SharedBuffer> data, bool allDataReceived); |
@@ -84,7 +85,7 @@ private: |
void activateLazyDecoding(); |
void prepareLazyDecodedFrames(); |
- PassRefPtr<SkImage> createFrameImageAtIndex(size_t index, bool knownToBeOpaque); |
+ sk_sp<SkImage> createFrameImageAtIndex(size_t index, bool knownToBeOpaque); |
void setDataInternal(PassRefPtr<SharedBuffer> data, bool allDataReceived, bool pushDataToDecoder); |