aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Gpu.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-08-18 06:43:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-18 06:43:03 -0700
commit5814b8a1dda25665810e05408895ed202d31d472 (patch)
tree45ff2796fe7393bd41f29fd203fa7bd8818d3c5a /src/image/SkImage_Gpu.cpp
parent2a43fe2723cbf70613f49abaa43a9e2ccd434b6b (diff)
Add alpha type to texture producer
Diffstat (limited to 'src/image/SkImage_Gpu.cpp')
-rw-r--r--src/image/SkImage_Gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
index eba66f46ed..6b7416b26b 100644
--- a/src/image/SkImage_Gpu.cpp
+++ b/src/image/SkImage_Gpu.cpp
@@ -82,7 +82,7 @@ bool SkImage_Gpu::getROPixels(SkBitmap* dst, CachingHint chint) const {
GrTexture* SkImage_Gpu::asTextureRef(GrContext* ctx, const GrTextureParams& params,
SkSourceGammaTreatment gammaTreatment) const {
- GrTextureAdjuster adjuster(this->peekTexture(), this->bounds(), this->uniqueID(),
+ GrTextureAdjuster adjuster(this->peekTexture(), this->alphaType(), this->bounds(), this->uniqueID(),
this->onImageInfo().colorSpace());
return adjuster.refTextureSafeForParams(params, gammaTreatment, nullptr);
}