Index: src/image/SkImage_Generator.cpp |
diff --git a/src/image/SkImage_Generator.cpp b/src/image/SkImage_Generator.cpp |
index 5ce552cb136e13a0e6c5862428c21e818b8c81d2..346528939ab67b88e52cb1cd646119078ae1a4b6 100644 |
--- a/src/image/SkImage_Generator.cpp |
+++ b/src/image/SkImage_Generator.cpp |
@@ -27,7 +27,7 @@ public: |
bool isOpaque() const override { return fCache->info().isOpaque(); } |
SkImage* onNewSubset(const SkIRect&) const override; |
bool getROPixels(SkBitmap*) const override; |
- GrTexture* asTextureRef(GrContext*, SkImageUsageType) const override; |
+ GrTexture* asTextureRef(GrContext*, const GrTextureParams&) const override; |
bool onIsLazyGenerated() const override { return true; } |
private: |
@@ -59,8 +59,8 @@ bool SkImage_Generator::getROPixels(SkBitmap* bitmap) const { |
return fCache->lockAsBitmap(bitmap, this); |
} |
-GrTexture* SkImage_Generator::asTextureRef(GrContext* ctx, SkImageUsageType usage) const { |
- return fCache->lockAsTexture(ctx, usage, this); |
+GrTexture* SkImage_Generator::asTextureRef(GrContext* ctx, const GrTextureParams& params) const { |
+ return fCache->lockAsTexture(ctx, params, this); |
} |
SkImage* SkImage_Generator::onNewSubset(const SkIRect& subset) const { |