aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Lazy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/image/SkImage_Lazy.cpp')
-rw-r--r--src/image/SkImage_Lazy.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/image/SkImage_Lazy.cpp b/src/image/SkImage_Lazy.cpp
index 19b324beaa..f06c963f37 100644
--- a/src/image/SkImage_Lazy.cpp
+++ b/src/image/SkImage_Lazy.cpp
@@ -820,9 +820,8 @@ sk_sp<GrTextureProxy> SkImage_Lazy::lockTextureProxy(GrContext* ctx,
// has been called then this will not match this image's color space. To correct this, apply
// a color space conversion from the generator's color space to this image's color space.
// Note that we can only do this conversion (on the GPU) if both color spaces are XYZ type.
- const SkColorSpace* generatorColorSpace =
- fSharedGenerator->fGenerator->getInfo().colorSpace();
- const SkColorSpace* thisColorSpace = fInfo.colorSpace();
+ SkColorSpace* generatorColorSpace = fSharedGenerator->fGenerator->getInfo().colorSpace();
+ SkColorSpace* thisColorSpace = fInfo.colorSpace();
if ((!generatorColorSpace || generatorColorSpace->toXYZD50()) &&
(!thisColorSpace || thisColorSpace->toXYZD50())) {