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:
parent
f23dc49893
commit
27a3aa5921
@ -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()) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user