Index: third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h |
index 6ba47bdfa6c6b07a87ebf01179d70f6206dbc915..72ed70f6ecf61e8adbf5083171392b7e6b85cc35 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h |
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h |
@@ -33,6 +33,7 @@ |
#include "platform/graphics/Canvas2DLayerBridge.h" |
#include "platform/graphics/ImageBufferSurface.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
namespace blink { |
@@ -76,7 +77,7 @@ public: |
void prepareSurfaceForPaintingIfNeeded() override { m_layerBridge->prepareSurfaceForPaintingIfNeeded(); } |
bool writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, int x, int y) override { return m_layerBridge->writePixels(origInfo, pixels, rowBytes, x, y); } |
- PassRefPtr<SkImage> newImageSnapshot(AccelerationHint hint, SnapshotReason reason) override { return m_layerBridge->newImageSnapshot(hint, reason); } |
+ sk_sp<SkImage> newImageSnapshot(AccelerationHint hint, SnapshotReason reason) override { return m_layerBridge->newImageSnapshot(hint, reason); } |
private: |
void init() |