| Index: tools/viewer/sk_app/GLWindowContext.cpp
|
| diff --git a/tools/viewer/sk_app/GLWindowContext.cpp b/tools/viewer/sk_app/GLWindowContext.cpp
|
| index a491321a2ac97f980c08680ef791badb6fba0091..b960da4824d06eb3f3309f8907948ed40bceaaaf 100644
|
| --- a/tools/viewer/sk_app/GLWindowContext.cpp
|
| +++ b/tools/viewer/sk_app/GLWindowContext.cpp
|
| @@ -47,8 +47,8 @@ void GLWindowContext::initializeContext(void* platformData, const DisplayParams&
|
| // ... and, if we're using a 10-bit/channel FB0, it doesn't do sRGB conversion on write,
|
| // so pretend that it's non-sRGB 8888:
|
| fPixelConfig = fContext->caps()->srgbSupport() &&
|
| - SkColorAndProfileAreGammaCorrect(fDisplayParams.fColorType,
|
| - fDisplayParams.fProfileType) &&
|
| + SkColorAndColorSpaceAreGammaCorrect(fDisplayParams.fColorType,
|
| + fDisplayParams.fColorSpace.get()) &&
|
| (fColorBits != 30) ? kSkiaGamma8888_GrPixelConfig : kSkia8888_GrPixelConfig;
|
| }
|
|
|
|
|