diff options
author | Brian Osman <brianosman@google.com> | 2018-06-14 09:14:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-14 13:40:27 +0000 |
commit | 861ea5b7b24ed272a76aa27b3d6fd3fb18c4e8cc (patch) | |
tree | fb665086ae1dec43ce239024f40699a9af2c3431 /src/image | |
parent | 8760e2f42857b3a59c203212ffdc2b5a6cdcb72c (diff) |
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 <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/SkImage_Lazy.cpp | 5 |
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())) { |