Index: src/image/SkImage_Base.h |
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h |
index 8dc2cb6eae9f0157af65c1827f0cb08151b24a8f..ec5556a50d3f3cda7d6190077374d74fcff96315 100644 |
--- a/src/image/SkImage_Base.h |
+++ b/src/image/SkImage_Base.h |
@@ -39,8 +39,8 @@ public: |
// but only inspect them (or encode them). |
virtual bool getROPixels(SkBitmap*, CachingHint = kAllow_CachingHint) const = 0; |
- virtual SkSurface* onNewSurface(const SkImageInfo& info) const { |
- return SkSurface::NewRaster(info); |
+ virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) const { |
+ return SkSurface::MakeRaster(info); |
} |
// Caller must call unref when they are done. |