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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.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/core/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index b6f2590d2c6fdd5f7714044d6b6fbf174237b32f..312a62d266634767796733741f49430ce3bb9cb1 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -16,6 +16,7 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/StaticBitmapImage.h"
#include "platform/heap/Handle.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/PassRefPtr.h"
#include <memory>
@@ -48,7 +49,7 @@ public:
// isImageBitmapPremultiplied indicates whether the original ImageBitmap is premultiplied or not.
// isImageBitmapOriginClean indicates whether the original ImageBitmap is origin clean or not.
static ImageBitmap* create(std::unique_ptr<uint8_t[]> data, uint32_t width, uint32_t height, bool isImageBitmapPremultiplied, bool isImageBitmapOriginClean);
- static PassRefPtr<SkImage> getSkImageFromDecoder(std::unique_ptr<ImageDecoder>);
+ static sk_sp<SkImage> getSkImageFromDecoder(std::unique_ptr<ImageDecoder>);
static bool isResizeOptionValid(const ImageBitmapOptions&, ExceptionState&);
static bool isSourceSizeValid(int sourceWidth, int sourceHeight, ExceptionState&);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698