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:
parent
2eda5b3a65
commit
df55827ae6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user