Index: src/image/SkImage_Gpu.h |
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h |
index 8f59af14a4681d9225f6d5220aaf0bf334652e20..333a96386e2f9a81d2ea85f9f329b25169216bb9 100644 |
--- a/src/image/SkImage_Gpu.h |
+++ b/src/image/SkImage_Gpu.h |
@@ -42,8 +42,8 @@ public: |
bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes, |
int srcX, int srcY, CachingHint) const override; |
- SkSurface* onNewSurface(const SkImageInfo& info) const override { |
- return SkSurface::NewRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); |
+ sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) const override { |
+ return SkSurface::MakeRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); |
} |
bool asBitmapForImageFilters(SkBitmap* bitmap) const override; |