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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.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/ImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
index 4ef9d84089bc7a35a5e4eb9cd041c9786ad7490d..ad4a74a64d0b799cf12cf971691a0a30a9d42767 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -36,9 +36,9 @@
#include "platform/graphics/GraphicsTypes.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/skia/include/core/SkPaint.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
class SkBitmap;
class SkCanvas;
@@ -72,7 +72,7 @@ public:
virtual void setFilterQuality(SkFilterQuality) { }
virtual void setIsHidden(bool) { }
virtual void setImageBuffer(ImageBuffer*) { }
- virtual PassRefPtr<SkPicture> getPicture();
+ virtual sk_sp<SkPicture> getPicture();
virtual void finalizeFrame(const FloatRect &dirtyRect) { }
virtual void draw(GraphicsContext&, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode);
virtual void setHasExpensiveOp() { }
@@ -83,7 +83,7 @@ public:
virtual bool writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, int x, int y);
// May return nullptr if the surface is GPU-backed and the GPU context was lost.
- virtual PassRefPtr<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason) = 0;
+ virtual sk_sp<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason) = 0;
OpacityMode getOpacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }

Powered by Google App Engine
This is Rietveld 408576698