Index: tools/viewer/sk_app/VulkanWindowContext.cpp |
diff --git a/tools/viewer/sk_app/VulkanWindowContext.cpp b/tools/viewer/sk_app/VulkanWindowContext.cpp |
index d892cd478388646d8c1444273b435607ccbdd662..9bcf6ca25d41c0fe099c4c33e6029b3cb6c3777d 100644 |
--- a/tools/viewer/sk_app/VulkanWindowContext.cpp |
+++ b/tools/viewer/sk_app/VulkanWindowContext.cpp |
@@ -173,8 +173,7 @@ |
// Pick our surface format. For now, just make sure it matches our sRGB request: |
VkFormat surfaceFormat = VK_FORMAT_UNDEFINED; |
VkColorSpaceKHR colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; |
- auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); |
- bool wantSRGB = srgbColorSpace == params.fColorSpace; |
+ bool wantSRGB = kSRGB_SkColorProfileType == params.fProfileType; |
for (uint32_t i = 0; i < surfaceFormatCount; ++i) { |
GrPixelConfig config; |
if (GrVkFormatToPixelConfig(surfaceFormats[i].format, &config) && |