Index: tools/viewer/sk_app/GLWindowContext.cpp |
diff --git a/tools/viewer/sk_app/GLWindowContext.cpp b/tools/viewer/sk_app/GLWindowContext.cpp |
index b960da4824d06eb3f3309f8907948ed40bceaaaf..a491321a2ac97f980c08680ef791badb6fba0091 100644 |
--- a/tools/viewer/sk_app/GLWindowContext.cpp |
+++ b/tools/viewer/sk_app/GLWindowContext.cpp |
@@ -47,8 +47,8 @@ |
// ... 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() && |
- SkColorAndColorSpaceAreGammaCorrect(fDisplayParams.fColorType, |
- fDisplayParams.fColorSpace.get()) && |
+ SkColorAndProfileAreGammaCorrect(fDisplayParams.fColorType, |
+ fDisplayParams.fProfileType) && |
(fColorBits != 30) ? kSkiaGamma8888_GrPixelConfig : kSkia8888_GrPixelConfig; |
} |