diff options
Diffstat (limited to 'chromium/third_party/skia/dm/DMGpuTestProcs.cpp')
-rw-r--r-- | chromium/third_party/skia/dm/DMGpuTestProcs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/third_party/skia/dm/DMGpuTestProcs.cpp b/chromium/third_party/skia/dm/DMGpuTestProcs.cpp index 736c472c3b3..e9369d5f46c 100644 --- a/chromium/third_party/skia/dm/DMGpuTestProcs.cpp +++ b/chromium/third_party/skia/dm/DMGpuTestProcs.cpp @@ -22,6 +22,9 @@ bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { return GrBackendApi::kMetal == GrContextFactory::ContextTypeBackend(type); } +bool IsDirect3DContextType(sk_gpu_test::GrContextFactory::ContextType type) { + return GrBackendApi::kDirect3D == GrContextFactory::ContextTypeBackend(type); +} bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { return IsGLContextType(type) && GrContextFactory::IsRenderingContext(type); } @@ -67,7 +70,7 @@ void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contex // In case the test changed the current context make sure we move it back before // calling flush. ctxInfo.testContext()->makeCurrent(); - ctxInfo.grContext()->flush(); + ctxInfo.grContext()->flushAndSubmit(); } } } |