Make GrRenderableConfigForColorSpace argument const

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2367813002

Review-Url: https://codereview.chromium.org/2367813002
This commit is contained in:
brianosman 2016-09-23 07:11:34 -07:00 committed by Commit bot
parent f23dc49893
commit 27a3aa5921
2 changed files with 2 additions and 2 deletions

View File

@ -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()) {

View File

@ -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