• Home
  • Raw
  • Download

Lines Matching refs:GrContextFactory

17 using sk_gpu_test::GrContextFactory;
23 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
24 return GrBackendApi::kOpenGL == GrContextFactory::ContextTypeBackend(type); in IsGLContextType()
26 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
27 return GrBackendApi::kVulkan == GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType()
29 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
30 return GrBackendApi::kMetal == GrContextFactory::ContextTypeBackend(type); in IsMetalContextType()
32 bool IsDirect3DContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDirect3DContextType()
33 return GrBackendApi::kDirect3D == GrContextFactory::ContextTypeBackend(type); in IsDirect3DContextType()
35 bool IsDawnContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDawnContextType()
36 return GrBackendApi::kDawn == GrContextFactory::ContextTypeBackend(type); in IsDawnContextType()
38 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
39 return IsGLContextType(type) && GrContextFactory::IsRenderingContext(type); in IsRenderingGLContextType()
41 bool IsMockContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMockContextType()
42 return type == GrContextFactory::kMock_ContextType; in IsMockContextType()
48 static constexpr auto kNativeGLType = GrContextFactory::kGL_ContextType; in RunWithGPUTestContexts()
50 static constexpr auto kNativeGLType = GrContextFactory::kGLES_ContextType; in RunWithGPUTestContexts()
53 for (int typeInt = 0; typeInt < GrContextFactory::kContextTypeCnt; ++typeInt) { in RunWithGPUTestContexts()
54 GrContextFactory::ContextType contextType = (GrContextFactory::ContextType) typeInt; in RunWithGPUTestContexts()
57 if (contextType == GrContextFactory::kGL_ContextType || in RunWithGPUTestContexts()
58 contextType == GrContextFactory::kGLES_ContextType) { in RunWithGPUTestContexts()
67 GrContextFactory factory(options); in RunWithGPUTestContexts()
73 ReporterContext ctx(reporter, SkString(GrContextFactory::ContextTypeName(contextType))); in RunWithGPUTestContexts()