Lines Matching refs:GrContextFactory
12 using sk_gpu_test::GrContextFactory;
18 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
19 return GrBackendApi::kOpenGL == GrContextFactory::ContextTypeBackend(type); in IsGLContextType()
21 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
22 return GrBackendApi::kVulkan == GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType()
24 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
25 return GrBackendApi::kMetal == GrContextFactory::ContextTypeBackend(type); in IsMetalContextType()
27 bool IsDirect3DContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDirect3DContextType()
28 return GrBackendApi::kDirect3D == GrContextFactory::ContextTypeBackend(type); in IsDirect3DContextType()
30 bool IsDawnContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDawnContextType()
31 return GrBackendApi::kDawn == GrContextFactory::ContextTypeBackend(type); in IsDawnContextType()
33 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
34 return IsGLContextType(type) && GrContextFactory::IsRenderingContext(type); in IsRenderingGLContextType()
36 bool IsMockContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMockContextType()
37 return type == GrContextFactory::kMock_ContextType; in IsMockContextType()
43 static constexpr auto kNativeGLType = GrContextFactory::kGL_ContextType; in RunWithGPUTestContexts()
45 static constexpr auto kNativeGLType = GrContextFactory::kGLES_ContextType; in RunWithGPUTestContexts()
48 for (int typeInt = 0; typeInt < GrContextFactory::kContextTypeCnt; ++typeInt) { in RunWithGPUTestContexts()
49 GrContextFactory::ContextType contextType = (GrContextFactory::ContextType) typeInt; in RunWithGPUTestContexts()
52 if (contextType == GrContextFactory::kGL_ContextType || in RunWithGPUTestContexts()
53 contextType == GrContextFactory::kGLES_ContextType) { in RunWithGPUTestContexts()
62 GrContextFactory factory(options); in RunWithGPUTestContexts()
68 ReporterContext ctx(reporter, SkString(GrContextFactory::ContextTypeName(contextType))); in RunWithGPUTestContexts()