aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Gpu.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-08-17 11:12:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-17 11:12:33 -0700
commit2d5b7147032e3806b5895667a899440119707c2d (patch)
tree001be10772ac20d1f28861776cbf81aa2ce6fcc5 /src/image/SkImage_Gpu.cpp
parent4f81caf16995679adc05131823e209bf12844d3c (diff)
pin as texture api
Diffstat (limited to 'src/image/SkImage_Gpu.cpp')
-rw-r--r--src/image/SkImage_Gpu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
index 44bb71c088..76f19bc31e 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 {