/external/skia/dm/ |
D | DMGpuTestProcs.cpp | 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() [all …]
|
/external/skqp/dm/ |
D | DMGpuTestProcs.cpp | 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() [all …]
|
/external/skqp/tests/ |
D | GrContextFactoryTest.cpp | 21 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 22 GrContextFactory testFactory(options); in DEF_GPUTEST() 24 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST() 26 GrContextFactory::ContextOverrides::kRequireNVPRSupport); in DEF_GPUTEST() 38 for (int i = 0; i <= GrContextFactory::kLastContextType; ++i) { in DEF_GPUTEST() 39 GrContextFactory testFactory(options); in DEF_GPUTEST() 40 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType)i; in DEF_GPUTEST() 42 testFactory.get(ctxType, GrContextFactory::ContextOverrides::kDisableNVPR); in DEF_GPUTEST() 51 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 52 GrContextFactory testFactory(options); in DEF_GPUTEST() [all …]
|
D | GrContextAbandonTest.cpp | 17 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 18 GrContextFactory testFactory(options); in DEF_GPUTEST() 19 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in DEF_GPUTEST()
|
D | SurfaceSemaphoreTest.cpp | 173 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGL_ContextType; in DEF_GPUTEST() 175 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGLES_ContextType; in DEF_GPUTEST() 178 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST() 180 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST() 181 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST() 184 if (contextType == sk_gpu_test::GrContextFactory::kGL_ContextType || in DEF_GPUTEST() 185 contextType == sk_gpu_test::GrContextFactory::kGLES_ContextType) { in DEF_GPUTEST() 190 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 192 contextType, sk_gpu_test::GrContextFactory::ContextOverrides::kDisableNVPR); in DEF_GPUTEST() 193 if (!sk_gpu_test::GrContextFactory::IsRenderingContext(contextType)) { in DEF_GPUTEST() [all …]
|
D | VkDrawableTest.cpp | 28 using sk_gpu_test::GrContextFactory; 270 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST() 271 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST() 272 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST() 273 if (contextType != sk_gpu_test::GrContextFactory::kVulkan_ContextType) { in DEF_GPUTEST() 276 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 278 contextType, sk_gpu_test::GrContextFactory::ContextOverrides::kDisableNVPR); in DEF_GPUTEST() 280 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
|
D | PinnedImageTest.cpp | 96 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in cleanup_test() 97 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in cleanup_test() 104 GrContextFactory testFactory; in cleanup_test()
|
/external/skia/tests/ |
D | GrContextFactoryTest.cpp | 20 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 21 GrContextFactory testFactory(options); in DEF_GPUTEST() 22 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in DEF_GPUTEST() 45 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 46 GrContextFactory testFactory(options); in DEF_GPUTEST() 47 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST() 83 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 87 GrContextFactory serialFactory(contextOptions); in DEF_GPUTEST() 91 GrContextFactory threadedFactory(contextOptions); in DEF_GPUTEST() 93 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST()
|
D | GrContextAbandonTest.cpp | 18 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST() 19 GrContextFactory testFactory(options); in DEF_GPUTEST() 20 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in DEF_GPUTEST()
|
D | SurfaceSemaphoreTest.cpp | 190 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGL_ContextType; in DEF_GPUTEST() 192 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGLES_ContextType; in DEF_GPUTEST() 195 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST() 197 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST() 198 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST() 201 if (contextType == sk_gpu_test::GrContextFactory::kGL_ContextType || in DEF_GPUTEST() 202 contextType == sk_gpu_test::GrContextFactory::kGLES_ContextType) { in DEF_GPUTEST() 207 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 209 if (!sk_gpu_test::GrContextFactory::IsRenderingContext(contextType)) { in DEF_GPUTEST() 213 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
|
D | GrContextOOM.cpp | 20 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 21 for (int ct = 0; ct < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++ct) { in DEF_GPUTEST() 22 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(ct); in DEF_GPUTEST()
|
D | VkDrawableTest.cpp | 30 using sk_gpu_test::GrContextFactory; 277 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST() 278 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST() 279 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST() 280 if (contextType != sk_gpu_test::GrContextFactory::kVulkan_ContextType) { in DEF_GPUTEST() 283 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 286 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
|
D | PinnedImageTest.cpp | 101 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in cleanup_test() 102 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in cleanup_test() 109 GrContextFactory testFactory; in cleanup_test()
|
D | PromiseImageTest.cpp | 202 using DeathFn = std::function<void(sk_gpu_test::GrContextFactory*, GrDirectContext*)>; in DEF_GPUTEST() 203 DeathFn destroy = [](sk_gpu_test::GrContextFactory* factory, GrDirectContext*) { in DEF_GPUTEST() 206 DeathFn abandon = [](sk_gpu_test::GrContextFactory* factory, GrDirectContext* dContext) { in DEF_GPUTEST() 209 DeathFn releaseResourcesAndAbandon = [](sk_gpu_test::GrContextFactory* factory, in DEF_GPUTEST() 214 for (int type = 0; type < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++type) { in DEF_GPUTEST() 215 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(type); in DEF_GPUTEST() 220 GrBackendApi api = sk_gpu_test::GrContextFactory::ContextTypeBackend(contextType); in DEF_GPUTEST() 227 sk_gpu_test::GrContextFactory factory; in DEF_GPUTEST()
|
D | GrDDLImageTest.cpp | 15 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST() 16 for (int ct = 0; ct < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++ct) { in DEF_GPUTEST() 17 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(ct); in DEF_GPUTEST()
|
/external/skia/tools/gpu/ |
D | GrContextFactory.h | 29 class GrContextFactory : SkNoncopyable { 121 explicit GrContextFactory(const GrContextOptions& opts); 122 GrContextFactory(); 124 ~GrContextFactory(); 174 GrContextFactory::ContextType type() const { return fType; } in type() 175 GrBackendApi backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend() 190 ContextInfo(GrContextFactory::ContextType type, in ContextInfo() 196 GrContextFactory::ContextType fType = GrContextFactory::kGL_ContextType; 202 friend class GrContextFactory; variable 207 GR_MAKE_BITFIELD_CLASS_OPS(sk_gpu_test::GrContextFactory::ContextOverrides);
|
D | GrContextFactory.cpp | 51 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in sk_gpu_test::GrContextFactory 53 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in sk_gpu_test::GrContextFactory 57 GrContextFactory::~GrContextFactory() { in ~GrContextFactory() 61 void GrContextFactory::destroyContexts() { in destroyContexts() 82 void GrContextFactory::abandonContexts() { in abandonContexts() 111 void GrContextFactory::releaseResourcesAndAbandonContexts() { in releaseResourcesAndAbandonContexts() 133 GrDirectContext* GrContextFactory::get(ContextType type, ContextOverrides overrides) { in get() 137 ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOverrides overrides, in getContextInfoInternal() 343 ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOverrides overrides) { in getContextInfo() 347 ContextInfo GrContextFactory::getSharedContextInfo(GrDirectContext* shareContext, in getSharedContextInfo()
|
/external/skqp/tools/gpu/ |
D | GrContextFactory.h | 29 class GrContextFactory : SkNoncopyable { 117 explicit GrContextFactory(const GrContextOptions& opts); 118 GrContextFactory(); 120 ~GrContextFactory(); 171 GrContextFactory::ContextType type() const { return fType; } in type() 172 GrBackendApi backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend() 186 ContextInfo(GrContextFactory::ContextType type, TestContext* testContext, GrContext* grContext, in ContextInfo() 190 GrContextFactory::ContextType fType = GrContextFactory::kGL_ContextType; 196 friend class GrContextFactory; variable 201 GR_MAKE_BITFIELD_CLASS_OPS(sk_gpu_test::GrContextFactory::ContextOverrides);
|
D | GrContextFactory.cpp | 43 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in sk_gpu_test::GrContextFactory 45 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in sk_gpu_test::GrContextFactory 49 GrContextFactory::~GrContextFactory() { in ~GrContextFactory() 53 void GrContextFactory::destroyContexts() { in destroyContexts() 74 void GrContextFactory::abandonContexts() { in abandonContexts() 94 void GrContextFactory::releaseResourcesAndAbandonContexts() { in releaseResourcesAndAbandonContexts() 116 GrContext* GrContextFactory::get(ContextType type, ContextOverrides overrides) { in get() 120 ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOverrides overrides, in getContextInfoInternal() 293 ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOverrides overrides) { in getContextInfo() 297 ContextInfo GrContextFactory::getSharedContextInfo(GrContext* shareContext, uint32_t shareIndex) { in getSharedContextInfo()
|
/external/skia/tools/flags/ |
D | CommonFlagsConfig.cpp | 18 using sk_gpu_test::GrContextFactory; 257 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api() 261 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api() 265 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api() 270 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api() 274 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api() 278 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api() 282 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api() 286 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api() 290 *outContextType = GrContextFactory::kCommandBuffer_ContextType; in parse_option_gpu_api() [all …]
|
/external/skqp/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 15 using sk_gpu_test::GrContextFactory; 230 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api() 234 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api() 238 *outContextType = GrContextFactory::kNullGL_ContextType; in parse_option_gpu_api() 242 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api() 246 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api() 250 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api() 254 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api() 258 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api() 262 *outContextType = GrContextFactory::kCommandBuffer_ContextType; in parse_option_gpu_api() [all …]
|
/external/skia/tools/skiaserve/ |
D | Request.cpp | 33 fContextFactory = new GrContextFactory(grContextOpts); in Request() 56 GrContextFactory* factory = fContextFactory; in getCanvas() 57 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas() 58 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 60 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas() 61 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 99 auto result = fContextFactory->get(GrContextFactory::kGL_ContextType, in directContext() 100 GrContextFactory::ContextOverrides::kNone); in directContext() 102 result = fContextFactory->get(GrContextFactory::kGLES_ContextType, in directContext() 103 GrContextFactory::ContextOverrides::kNone); in directContext()
|
/external/skqp/tools/skiaserve/ |
D | Request.cpp | 30 fContextFactory = new GrContextFactory(grContextOpts); in Request() 52 GrContextFactory* factory = fContextFactory; in getCanvas() 53 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas() 54 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 56 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas() 57 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 92 GrContext* result = fContextFactory->get(GrContextFactory::kGL_ContextType, in getContext() 93 GrContextFactory::ContextOverrides::kNone); in getContext() 95 result = fContextFactory->get(GrContextFactory::kGLES_ContextType, in getContext() 96 GrContextFactory::ContextOverrides::kNone); in getContext()
|
/external/skia/tools/fm/ |
D | fm.cpp | 46 using sk_gpu_test::GrContextFactory; 296 GrContextFactory::ContextType api, in draw_with_gpu() 297 GrContextFactory* factory) { in draw_with_gpu() 309 auto overrides = GrContextFactory::ContextOverrides::kNone; in draw_with_gpu() 310 if (!FLAGS_stencils) { overrides |= GrContextFactory::ContextOverrides::kAvoidStencilBuffers; } in draw_with_gpu() 494 { "gl" , GrContextFactory::kGL_ContextType }, in main() 495 { "gles" , GrContextFactory::kGLES_ContextType }, in main() 496 { "angle_d3d9_es2" , GrContextFactory::kANGLE_D3D9_ES2_ContextType }, in main() 497 { "angle_d3d11_es2", GrContextFactory::kANGLE_D3D11_ES2_ContextType }, in main() 498 { "angle_d3d11_es3", GrContextFactory::kANGLE_D3D11_ES3_ContextType }, in main() [all …]
|
/external/skia/experimental/ddlbench/ |
D | ddlbench.cpp | 29 using sk_gpu_test::GrContextFactory; 240 static bool create_contexts(GrContextFactory* factory, in create_contexts() 241 GrContextFactory::ContextType contextType, in create_contexts() 242 const GrContextFactory::ContextOverrides& overrides, in create_contexts() 340 const GrContextFactory::ContextType kContextType = GrContextFactory::kGL_ContextType; in main() 342 const GrContextFactory::ContextOverrides kOverrides = GrContextFactory::ContextOverrides::kNone; in main() 348 GrContextFactory factory(kContextOptions); in main()
|