Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index 44bb71c0889ab311977e4929271b8e6506e94c29..76f19bc31e319bf1922901e76b4009dd362a0c27 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -83,8 +83,9 @@ bool SkImage_Gpu::getROPixels(SkBitmap* dst, CachingHint chint) const { |
GrTexture* SkImage_Gpu::asTextureRef(GrContext* ctx, const GrTextureParams& params, |
SkSourceGammaTreatment gammaTreatment) const { |
- return GrImageTextureAdjuster(as_IB(this)).refTextureSafeForParams(params, gammaTreatment, |
- nullptr); |
+ GrTextureAdjuster adjuster(this->peekTexture(), this->bounds(), this->uniqueID(), |
+ this->onImageInfo().colorSpace()); |
+ return adjuster.refTextureSafeForParams(params, gammaTreatment, nullptr); |
} |
bool SkImage_Gpu::isOpaque() const { |