Remove unused SkImage_Base and SkImage_Gpu onNewSurface methods

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2353403002

Review-Url: https://codereview.chromium.org/2353403002
This commit is contained in:
robertphillips 2016-09-21 11:00:23 -07:00 committed by Commit bot
parent 2eda5b3a65
commit df55827ae6
2 changed files with 0 additions and 8 deletions

View File

@ -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;

View File

@ -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;