/external/skia/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 …]
|
D | DMSrcSink.h | 330 GPUSink(sk_gpu_test::GrContextFactory::ContextType, 331 sk_gpu_test::GrContextFactory::ContextOverrides, 340 sk_gpu_test::GrContextFactory::ContextType contextType() const { return fContextType; } in contextType() 341 const sk_gpu_test::GrContextFactory::ContextOverrides& contextOverrides() { in contextOverrides() 356 sk_gpu_test::GrContextFactory::ContextType fContextType; 357 sk_gpu_test::GrContextFactory::ContextOverrides fContextOverrides; 370 GPUThreadTestingSink(sk_gpu_test::GrContextFactory::ContextType, 371 sk_gpu_test::GrContextFactory::ContextOverrides, 392 GPUPersistentCacheTestingSink(sk_gpu_test::GrContextFactory::ContextType, 393 sk_gpu_test::GrContextFactory::ContextOverrides,
|
/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 …]
|
D | DMSrcSink.h | 344 GPUSink(sk_gpu_test::GrContextFactory::ContextType, 345 sk_gpu_test::GrContextFactory::ContextOverrides, 354 sk_gpu_test::GrContextFactory::ContextType contextType() const { return fContextType; } in contextType() 355 const sk_gpu_test::GrContextFactory::ContextOverrides& contextOverrides() { in contextOverrides() 370 sk_gpu_test::GrContextFactory::ContextType fContextType; 371 sk_gpu_test::GrContextFactory::ContextOverrides fContextOverrides; 384 GPUThreadTestingSink(sk_gpu_test::GrContextFactory::ContextType, 385 sk_gpu_test::GrContextFactory::ContextOverrides, 406 GPUPersistentCacheTestingSink(sk_gpu_test::GrContextFactory::ContextType, 407 sk_gpu_test::GrContextFactory::ContextOverrides,
|
/external/skia/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 | 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 | 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 | 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()
|
D | PromiseImageTest.cpp | 349 using DeathFn = std::function<void(sk_gpu_test::GrContextFactory*, GrContext*)>; in DEF_GPUTEST() 350 DeathFn destroy = [](sk_gpu_test::GrContextFactory* factory, GrContext* context) { in DEF_GPUTEST() 353 DeathFn abandon = [](sk_gpu_test::GrContextFactory* factory, GrContext* context) { in DEF_GPUTEST() 356 DeathFn releaseResourcesAndAbandon = [](sk_gpu_test::GrContextFactory* factory, in DEF_GPUTEST() 361 for (int type = 0; type < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++type) { in DEF_GPUTEST() 362 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(type); in DEF_GPUTEST() 365 GrBackendApi api = sk_gpu_test::GrContextFactory::ContextTypeBackend(contextType); in DEF_GPUTEST() 371 sk_gpu_test::GrContextFactory factory; in DEF_GPUTEST()
|
/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 | 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 | 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 | 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/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/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/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/flags/ |
D | SkCommonFlagsConfig.cpp | 15 using sk_gpu_test::GrContextFactory; 231 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api() 235 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api() 239 *outContextType = GrContextFactory::kNullGL_ContextType; in parse_option_gpu_api() 243 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api() 247 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api() 251 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api() 255 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api() 259 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api() 263 *outContextType = GrContextFactory::kCommandBuffer_ContextType; in parse_option_gpu_api() [all …]
|
/external/skia/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/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/skqp/bench/ |
D | nanobench.h | 28 sk_gpu_test::GrContextFactory::ContextType ctxType; 29 sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides;
|
/external/skia/bench/ |
D | nanobench.h | 28 sk_gpu_test::GrContextFactory::ContextType ctxType; 29 sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides;
|