aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tools/flags/SkCommonFlagsConfig.cpp6
-rw-r--r--tools/gpu/GrContextFactory.cpp3
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/flags/SkCommonFlagsConfig.cpp b/tools/flags/SkCommonFlagsConfig.cpp
index a0d1c77dd9..1c7920eb55 100644
--- a/tools/flags/SkCommonFlagsConfig.cpp
+++ b/tools/flags/SkCommonFlagsConfig.cpp
@@ -45,7 +45,7 @@ static const char configHelp[] =
" hwui"
#endif
#ifdef SK_VULKAN
- " vk"
+ " vk vksrgb"
#endif
" or use extended form 'backend(option=value,...)'.\n";
@@ -124,7 +124,8 @@ static const char configExtendedHelp[] =
"\tmesa \t= gpu(api=mesa)\n"
#endif
#ifdef SK_VULKAN
- "\vk \t= gpu(api=vulkan)\n"
+ "\tvk \t= gpu(api=vulkan)\n"
+ "\tvksrgb \t= gpu(api=vulkan,color=srgb)\n"
#endif
#endif
;
@@ -170,6 +171,7 @@ static const struct {
#endif
#ifdef SK_VULKAN
, { "vk", "gpu", "api=vulkan" }
+ , { "vksrgb", "gpu", "api=vulkan,color=srgb" }
#endif
#else
diff --git a/tools/gpu/GrContextFactory.cpp b/tools/gpu/GrContextFactory.cpp
index 1b2a08ceab..151bfd95b3 100644
--- a/tools/gpu/GrContextFactory.cpp
+++ b/tools/gpu/GrContextFactory.cpp
@@ -163,8 +163,7 @@ ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOptions op
#ifdef SK_VULKAN
case kVulkan_GrBackend:
SkASSERT(kVulkan_ContextType == type);
- if ((kEnableNVPR_ContextOptions & options) ||
- (kRequireSRGBSupport_ContextOptions & options)) {
+ if (kEnableNVPR_ContextOptions & options) {
return ContextInfo();
}
testCtx.reset(CreatePlatformVkTestContext());