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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.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/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);

Powered by Google App Engine
This is Rietveld 408576698