From 861ea5b7b24ed272a76aa27b3d6fd3fb18c4e8cc Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 14 Jun 2018 09:14:03 -0400 Subject: Remove const from (immutable) SkColorSpace args to some functions Another piece of https://skia-review.googlesource.com/c/skia/+/132090 that I'd like to land separately. Change-Id: I64d8968cf7e0fb0d288eca71c79d361410c924b8 Reviewed-on: https://skia-review.googlesource.com/134782 Commit-Queue: Brian Osman Commit-Queue: Mike Klein Auto-Submit: Brian Osman Reviewed-by: Mike Klein --- src/image/SkImage_Lazy.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/image') 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 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())) { -- cgit v1.2.3