Home
last modified time | relevance | path

Searched refs:GrContextFactory (Results 1 – 25 of 45) sorted by relevance

12

/third_party/skia/dm/
DDMGpuTestProcs.cpp17 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()
[all …]
/third_party/skia/tests/
DGrContextFactoryTest.cpp20 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()
DSurfaceSemaphoreTest.cpp190 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()
DGrContextAbandonTest.cpp18 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()
DVkDrawableTest.cpp30 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()
DPromiseImageTest.cpp203 using DeathFn = std::function<void(sk_gpu_test::GrContextFactory*, GrDirectContext*)>; in DEF_GPUTEST()
204 DeathFn destroy = [](sk_gpu_test::GrContextFactory* factory, GrDirectContext*) { in DEF_GPUTEST()
207 DeathFn abandon = [](sk_gpu_test::GrContextFactory* factory, GrDirectContext* dContext) { in DEF_GPUTEST()
210 DeathFn releaseResourcesAndAbandon = [](sk_gpu_test::GrContextFactory* factory, in DEF_GPUTEST()
215 for (int type = 0; type < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++type) { in DEF_GPUTEST()
216 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(type); in DEF_GPUTEST()
221 GrBackendApi api = sk_gpu_test::GrContextFactory::ContextTypeBackend(contextType); in DEF_GPUTEST()
228 sk_gpu_test::GrContextFactory factory; in DEF_GPUTEST()
DGrContextOOM.cpp20 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()
DPinnedImageTest.cpp101 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()
DGrDDLImageTest.cpp15 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()
DProgramsTest.cpp352 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType) { in get_programs_max_stages()
354 } else if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_programs_max_stages()
379 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_programs_max_levels()
380 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_programs_max_levels()
414 sk_gpu_test::GrContextFactory debugFactory(opts); in DEF_GPUTEST()
416 test_programs, &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, opts); in DEF_GPUTEST()
DDMSAATest.cpp86 &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, ctxInfo,
117 DEF_GPUTEST_FOR_CONTEXTS(DMSAA_dst_read, &sk_gpu_test::GrContextFactory::IsRenderingContext,
141 &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, ctxInfo,
166 &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, ctxInfo,
DGrSurfaceTest.cpp200 for (int ct = 0; ct < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++ct) { in DEF_GPUTEST()
201 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST()
202 auto contextType = static_cast<sk_gpu_test::GrContextFactory::ContextType>(ct); in DEF_GPUTEST()
203 if (!sk_gpu_test::GrContextFactory::IsRenderingContext(contextType)) { in DEF_GPUTEST()
DImageTest.cpp381 GrContextFactory otherFactory; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
582 using Factory = sk_gpu_test::GrContextFactory; in DEF_GPUTEST()
887 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in test_cross_context_image()
888 GrContextFactory testFactory(options); in test_cross_context_image()
889 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in test_cross_context_image()
1059 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST()
1060 GrContextFactory testFactory(options); in DEF_GPUTEST()
1061 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST()
1087 GrContextFactory otherFactory; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/tools/gpu/
DGrContextFactory.h29 class GrContextFactory : SkNoncopyable {
124 explicit GrContextFactory(const GrContextOptions& opts);
125 GrContextFactory();
127 ~GrContextFactory();
178 GrContextFactory::ContextType type() const { return fType; } in type()
179 GrBackendApi backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend()
194 ContextInfo(GrContextFactory::ContextType type, in ContextInfo()
200 GrContextFactory::ContextType fType = GrContextFactory::kGL_ContextType;
206 friend class GrContextFactory; variable
211 GR_MAKE_BITFIELD_CLASS_OPS(sk_gpu_test::GrContextFactory::ContextOverrides)
DGrContextFactory.cpp50 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in sk_gpu_test::GrContextFactory
52 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in sk_gpu_test::GrContextFactory
56 GrContextFactory::~GrContextFactory() { in ~GrContextFactory()
60 void GrContextFactory::destroyContexts() { in destroyContexts()
81 void GrContextFactory::abandonContexts() { in abandonContexts()
110 void GrContextFactory::releaseResourcesAndAbandonContexts() { in releaseResourcesAndAbandonContexts()
132 GrDirectContext* GrContextFactory::get(ContextType type, ContextOverrides overrides) { in get()
136 ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOverrides overrides, in getContextInfoInternal()
345 ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOverrides overrides) { in getContextInfo()
349 ContextInfo GrContextFactory::getSharedContextInfo(GrDirectContext* shareContext, in getSharedContextInfo()
/third_party/skia/tools/flags/
DCommonFlagsConfig.cpp20 using sk_gpu_test::GrContextFactory;
287 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api()
291 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api()
295 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api()
300 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api()
304 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api()
308 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api()
312 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api()
316 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api()
320 *outContextType = GrContextFactory::kCommandBuffer_ES2_ContextType; in parse_option_gpu_api()
[all …]
DCommonFlagsConfig.h55 typedef sk_gpu_test::GrContextFactory::ContextType ContextType;
56 typedef sk_gpu_test::GrContextFactory::ContextOverrides ContextOverrides;
/third_party/skia/tools/fm/
Dfm.cpp50 using sk_gpu_test::GrContextFactory;
302 GrContextFactory::ContextType api, in draw_with_gpu()
303 GrContextFactory* factory) { in draw_with_gpu()
315 auto overrides = GrContextFactory::ContextOverrides::kNone; in draw_with_gpu()
316 if (!FLAGS_stencils) { overrides |= GrContextFactory::ContextOverrides::kAvoidStencilBuffers; } in draw_with_gpu()
503 { "gl" , GrContextFactory::kGL_ContextType }, in main()
504 { "gles" , GrContextFactory::kGLES_ContextType }, in main()
505 { "angle_d3d9_es2" , GrContextFactory::kANGLE_D3D9_ES2_ContextType }, in main()
506 { "angle_d3d11_es2", GrContextFactory::kANGLE_D3D11_ES2_ContextType }, in main()
507 { "angle_d3d11_es3", GrContextFactory::kANGLE_D3D11_ES3_ContextType }, in main()
[all …]
/third_party/skia/tools/skiaserve/
DRequest.cpp33 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()
DRequest.h23 class GrContextFactory; variable
74 sk_gpu_test::GrContextFactory* fContextFactory;
/third_party/skia/bench/
Dnanobench.h28 sk_gpu_test::GrContextFactory::ContextType ctxType;
29 sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides;
/third_party/skia/modules/canvaskit/
Dgm_bindings.cpp268 using ContextType = sk_gpu_test::GrContextFactory::ContextType;
272 return GrBackendApi::kOpenGL == sk_gpu_test::GrContextFactory::ContextTypeBackend(ct); in IsGLContextType()
275 return IsGLContextType(ct) && sk_gpu_test::GrContextFactory::IsRenderingContext(ct); in IsRenderingGLContextType()
293 sk_gpu_test::GrContextFactory factory(options); in RunWithGPUTestContexts()
/third_party/skia/tools/
DBUILD.bazel32 "gpu/GrContextFactory.cpp",
33 "gpu/GrContextFactory.h",
Dskottie2movie.cpp55 auto contextType = sk_gpu_test::GrContextFactory::kGL_ContextType; in main()
57 sk_gpu_test::GrContextFactory factory(grCtxOptions); in main()
/third_party/skia/fuzz/
DFuzzCreateDDL.cpp210 sk_gpu_test::GrContextFactory factory; in DEF_FUZZ()
211 auto ctxInfo = factory.getContextInfo(sk_gpu_test::GrContextFactory::kGL_ContextType); in DEF_FUZZ()

12