diff options
-rw-r--r-- | src/image/SkImage_Base.h | 4 | ||||
-rw-r--r-- | src/image/SkImage_Gpu.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index 7ebedeb6f0..b314cc6c2f 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -54,10 +54,6 @@ public: // but only inspect them (or encode them). virtual bool getROPixels(SkBitmap*, CachingHint = kAllow_CachingHint) const = 0; - virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) const { - return SkSurface::MakeRaster(info); - } - // Caller must call unref when they are done. virtual GrTexture* asTextureRef(GrContext*, const GrTextureParams&, SkSourceGammaTreatment) const = 0; diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h index a9d9c33f2d..02260bcca5 100644 --- a/src/image/SkImage_Gpu.h +++ b/src/image/SkImage_Gpu.h @@ -51,10 +51,6 @@ public: bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes, int srcX, int srcY, CachingHint) const override; - sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) const override { - return SkSurface::MakeRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); - } - private: SkAutoTUnref<GrTexture> fTexture; const SkAlphaType fAlphaType; |