Index: tools/viewer/sk_app/android/GLWindowContext_android.cpp |
diff --git a/tools/viewer/sk_app/android/GLWindowContext_android.cpp b/tools/viewer/sk_app/android/GLWindowContext_android.cpp |
index be62ab2b68e066979b200efae70f8bf56c7b18ab..79425b41155237a207f19683492267a6ab6da4f2 100644 |
--- a/tools/viewer/sk_app/android/GLWindowContext_android.cpp |
+++ b/tools/viewer/sk_app/android/GLWindowContext_android.cpp |
@@ -99,8 +99,7 @@ |
EGL_NONE, |
}; |
const EGLint* windowAttribs = nullptr; |
- auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); |
- if (srgbColorSpace == params.fColorSpace && majorVersion == 1 && minorVersion >= 2) { |
+ if (kSRGB_SkColorProfileType == params.fProfileType && majorVersion == 1 && minorVersion >= 2) { |
windowAttribs = srgbWindowAttribs; |
} |