Add vksrgb config to dm (Vulkan sRGB). Fix help formatting of vk.
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2005863002 Review-Url: https://codereview.chromium.org/2005863002
This commit is contained in:
parent
8cc2091118
commit
a56800a05d
@ -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
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user