diff options
Diffstat (limited to 'src/gpu/GrImageTextureMaker.cpp')
-rw-r--r-- | src/gpu/GrImageTextureMaker.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gpu/GrImageTextureMaker.cpp b/src/gpu/GrImageTextureMaker.cpp index 308445c8a1..a42c146f65 100644 --- a/src/gpu/GrImageTextureMaker.cpp +++ b/src/gpu/GrImageTextureMaker.cpp @@ -32,12 +32,9 @@ sk_sp<GrTextureProxy> GrImageTextureMaker::refOriginalTextureProxy(bool willBeMi willBeMipped, dstColorSpace, onlyIfFast); } -void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey, - SkColorSpace* dstColorSpace) { +void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) { if (fOriginalKey.isValid() && SkImage::kAllow_CachingHint == fCachingHint) { - GrUniqueKey cacheKey; - fCacher->makeCacheKeyFromOrigKey(fOriginalKey, &cacheKey); - MakeCopyKeyFromOrigKey(cacheKey, stretch, paramsCopyKey); + MakeCopyKeyFromOrigKey(fOriginalKey, stretch, paramsCopyKey); } } @@ -45,5 +42,5 @@ SkAlphaType GrImageTextureMaker::alphaType() const { return fClient->alphaType(); } sk_sp<SkColorSpace> GrImageTextureMaker::getColorSpace(SkColorSpace* dstColorSpace) { - return fCacher->getColorSpace(this->context(), dstColorSpace); + return fClient->refColorSpace(); } |