diff options
author | brianosman <brianosman@google.com> | 2016-09-23 07:11:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-23 07:11:34 -0700 |
commit | 27a3aa5921b2aaf95314f955285c3cba91e4c19a (patch) | |
tree | 63834466c33e60e432a88490b085b924370c4c2e /src/gpu | |
parent | f23dc49893a63de0efcfb0e45570b4b47b20c9bf (diff) |
Make GrRenderableConfigForColorSpace argument const
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2367813002
Review-Url: https://codereview.chromium.org/2367813002
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGr.cpp | 2 | ||||
-rw-r--r-- | src/gpu/SkGrPriv.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index 9ee8722afa..6d1e73552d 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -508,7 +508,7 @@ bool GrPixelConfigToColorType(GrPixelConfig config, SkColorType* ctOut) { return true; } -GrPixelConfig GrRenderableConfigForColorSpace(SkColorSpace* colorSpace) { +GrPixelConfig GrRenderableConfigForColorSpace(const SkColorSpace* colorSpace) { if (!colorSpace) { return kRGBA_8888_GrPixelConfig; } else if (colorSpace->gammaIsLinear()) { diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h index c1069d1a20..b658389ba2 100644 --- a/src/gpu/SkGrPriv.h +++ b/src/gpu/SkGrPriv.h @@ -108,7 +108,7 @@ bool GrPixelConfigToColorType(GrPixelConfig, SkColorType*); /** When image filter code needs to construct a draw context to do intermediate rendering, we need a renderable pixel config. The source (SkSpecialImage) may not be in a renderable format, but we want to preserve the color space of that source. This picks an appropriate format to use. */ -GrPixelConfig GrRenderableConfigForColorSpace(SkColorSpace*); +GrPixelConfig GrRenderableConfigForColorSpace(const SkColorSpace*); /** * If the compressed data in the SkData is supported (as a texture format, this returns |