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