diff options
author | 2016-08-18 06:43:03 -0700 | |
---|---|---|
committer | 2016-08-18 06:43:03 -0700 | |
commit | 5814b8a1dda25665810e05408895ed202d31d472 (patch) | |
tree | 45ff2796fe7393bd41f29fd203fa7bd8818d3c5a /src/image/SkImage_Gpu.cpp | |
parent | 2a43fe2723cbf70613f49abaa43a9e2ccd434b6b (diff) |
Add alpha type to texture producer
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2250403003
Review-Url: https://codereview.chromium.org/2250403003
Diffstat (limited to 'src/image/SkImage_Gpu.cpp')
-rw-r--r-- | src/image/SkImage_Gpu.cpp | 2 |
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); } |