diff options
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r-- | dm/DM.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -843,14 +843,14 @@ static Sink* create_sink(const SkCommandLineConfig* config) { if (gpu_supported()) { if (const SkCommandLineConfigGpu* gpuConfig = config->asConfigGpu()) { GrContextFactory::ContextType contextType = gpuConfig->getContextType(); - GrContextFactory::ContextOptions contextOptions = gpuConfig->getContextOptions(); + GrContextFactory::ContextOverrides contextOverrides = gpuConfig->getContextOverrides(); GrContextFactory testFactory; - if (!testFactory.get(contextType, contextOptions)) { + if (!testFactory.get(contextType, contextOverrides)) { info("WARNING: can not create GPU context for config '%s'. " "GM tests will be skipped.\n", gpuConfig->getTag().c_str()); return nullptr; } - return new GPUSink(contextType, contextOptions, gpuConfig->getSamples(), + return new GPUSink(contextType, contextOverrides, gpuConfig->getSamples(), gpuConfig->getUseDIText(), gpuConfig->getColorType(), sk_ref_sp(gpuConfig->getColorSpace()), FLAGS_gpu_threading); } @@ -1462,7 +1462,8 @@ void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contex continue; } } - ContextInfo ctxInfo = factory->getContextInfo(contextType); + ContextInfo ctxInfo = factory->getContextInfo(contextType, + GrContextFactory::ContextOverrides::kDisableNVPR); if (contextTypeFilter && !(*contextTypeFilter)(contextType)) { continue; } @@ -1471,7 +1472,7 @@ void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contex (*test)(reporter, ctxInfo); } ctxInfo = factory->getContextInfo(contextType, - GrContextFactory::ContextOptions::kEnableNVPR); + GrContextFactory::ContextOverrides::kRequireNVPRSupport); if (ctxInfo.grContext()) { (*test)(reporter, ctxInfo); } |