Index: src/image/SkImage_Generator.cpp |
diff --git a/src/image/SkImage_Generator.cpp b/src/image/SkImage_Generator.cpp |
index b117322aa69f1d65ba0b0693344867cdc6bdb176..20f4863d82f2a2839902cc7bf993af8a46014747 100644 |
--- a/src/image/SkImage_Generator.cpp |
+++ b/src/image/SkImage_Generator.cpp |
@@ -31,7 +31,8 @@ public: |
bool isOpaque() const override { return fCache->info().isOpaque(); } |
sk_sp<SkImage> onMakeSubset(const SkIRect&) const override; |
bool getROPixels(SkBitmap*, CachingHint) const override; |
- GrTexture* asTextureRef(GrContext*, const GrTextureParams&) const override; |
+ GrTexture* asTextureRef(GrContext*, const GrTextureParams&, |
+ SkSourceGammaTreatment) const override; |
bool onIsLazyGenerated() const override { return true; } |
private: |
@@ -73,8 +74,9 @@ bool SkImage_Generator::getROPixels(SkBitmap* bitmap, CachingHint chint) const { |
return fCache->lockAsBitmap(bitmap, this, chint); |
} |
-GrTexture* SkImage_Generator::asTextureRef(GrContext* ctx, const GrTextureParams& params) const { |
- return fCache->lockAsTexture(ctx, params, this); |
+GrTexture* SkImage_Generator::asTextureRef(GrContext* ctx, const GrTextureParams& params, |
+ SkSourceGammaTreatment gammaTreatment) const { |
+ return fCache->lockAsTexture(ctx, params, gammaTreatment, this); |
} |
sk_sp<SkImage> SkImage_Generator::onMakeSubset(const SkIRect& subset) const { |