Lines Matching refs:GrContextFactory

10 using sk_gpu_test::GrContextFactory;
16 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
17 return GrBackendApi::kOpenGL == GrContextFactory::ContextTypeBackend(type); in IsGLContextType()
19 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
20 return GrBackendApi::kVulkan == GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType()
22 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
23 return GrBackendApi::kMetal == GrContextFactory::ContextTypeBackend(type); in IsMetalContextType()
25 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
26 return IsGLContextType(type) && GrContextFactory::IsRenderingContext(type); in IsRenderingGLContextType()
28 bool IsNullGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsNullGLContextType()
29 return type == GrContextFactory::kNullGL_ContextType; in IsNullGLContextType()
35 static constexpr auto kNativeGLType = GrContextFactory::kGL_ContextType; in RunWithGPUTestContexts()
37 static constexpr auto kNativeGLType = GrContextFactory::kGLES_ContextType; in RunWithGPUTestContexts()
40 for (int typeInt = 0; typeInt < GrContextFactory::kContextTypeCnt; ++typeInt) { in RunWithGPUTestContexts()
41 GrContextFactory::ContextType contextType = (GrContextFactory::ContextType) typeInt; in RunWithGPUTestContexts()
44 if (contextType == GrContextFactory::kGL_ContextType || in RunWithGPUTestContexts()
45 contextType == GrContextFactory::kGLES_ContextType) { in RunWithGPUTestContexts()
54 GrContextFactory factory(options); in RunWithGPUTestContexts()
56 contextType, GrContextFactory::ContextOverrides::kDisableNVPR); in RunWithGPUTestContexts()
61 ReporterContext ctx(reporter, SkString(GrContextFactory::ContextTypeName(contextType))); in RunWithGPUTestContexts()
67 GrContextFactory::ContextOverrides::kRequireNVPRSupport); in RunWithGPUTestContexts()