Home
last modified time | relevance | path

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

1234

/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/flutter/skia/dm/
DDMGpuTestProcs.cpp10 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 IsMockContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMockContextType()
[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()
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()
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()
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()
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()
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()
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()
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()
/third_party/flutter/skia/tests/
DGrContextFactoryTest.cpp19 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST()
20 GrContextFactory testFactory(options); in DEF_GPUTEST()
21 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i; in DEF_GPUTEST()
44 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST()
45 GrContextFactory testFactory(options); in DEF_GPUTEST()
46 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST()
82 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { in DEF_GPUTEST()
86 GrContextFactory serialFactory(contextOptions); in DEF_GPUTEST()
90 GrContextFactory threadedFactory(contextOptions); in DEF_GPUTEST()
92 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); in DEF_GPUTEST()
DGrContextAbandonTest.cpp17 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()
DSurfaceSemaphoreTest.cpp188 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGL_ContextType; in DEF_GPUTEST()
190 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGLES_ContextType; in DEF_GPUTEST()
193 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST()
195 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST()
196 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST()
199 if (contextType == sk_gpu_test::GrContextFactory::kGL_ContextType || in DEF_GPUTEST()
200 contextType == sk_gpu_test::GrContextFactory::kGLES_ContextType) { in DEF_GPUTEST()
205 sk_gpu_test::GrContextFactory factory(options); in DEF_GPUTEST()
207 if (!sk_gpu_test::GrContextFactory::IsRenderingContext(contextType)) { in DEF_GPUTEST()
211 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
DPinnedImageTest.cpp96 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()
DVkDrawableTest.cpp28 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()
279 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
/third_party/flutter/skia/tools/gpu/
DGrContextFactory.h29 class GrContextFactory : SkNoncopyable {
114 explicit GrContextFactory(const GrContextOptions& opts);
115 GrContextFactory();
117 ~GrContextFactory();
167 GrContextFactory::ContextType type() const { return fType; } in type()
168 GrBackendApi backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend()
182 ContextInfo(GrContextFactory::ContextType type, TestContext* testContext, GrContext* grContext, in ContextInfo()
186 GrContextFactory::ContextType fType = GrContextFactory::kGL_ContextType;
192 friend class GrContextFactory; variable
197 GR_MAKE_BITFIELD_CLASS_OPS(sk_gpu_test::GrContextFactory::ContextOverrides);
DGrContextFactory.cpp45 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in sk_gpu_test::GrContextFactory
47 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in sk_gpu_test::GrContextFactory
51 GrContextFactory::~GrContextFactory() { in ~GrContextFactory()
55 void GrContextFactory::destroyContexts() { in destroyContexts()
76 void GrContextFactory::abandonContexts() { in abandonContexts()
96 void GrContextFactory::releaseResourcesAndAbandonContexts() { in releaseResourcesAndAbandonContexts()
118 GrContext* GrContextFactory::get(ContextType type, ContextOverrides overrides) { in get()
122 ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOverrides overrides, in getContextInfoInternal()
290 ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOverrides overrides) { in getContextInfo()
294 ContextInfo GrContextFactory::getSharedContextInfo(GrContext* shareContext, uint32_t shareIndex) { in getSharedContextInfo()
/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/flutter/skia/tools/fm/
Dfm.cpp39 using sk_gpu_test::GrContextFactory;
245 GrContextFactory::ContextType api, in draw_with_gpu()
246 GrContextFactory* factory) { in draw_with_gpu()
258 auto overrides = GrContextFactory::ContextOverrides::kNone; in draw_with_gpu()
259 if (!FLAGS_stencils) { overrides |= GrContextFactory::ContextOverrides::kAvoidStencilBuffers; } in draw_with_gpu()
433 { "gl" , GrContextFactory::kGL_ContextType }, in main()
434 { "gles" , GrContextFactory::kGLES_ContextType }, in main()
435 { "angle_d3d9_es2" , GrContextFactory::kANGLE_D3D9_ES2_ContextType }, in main()
436 { "angle_d3d11_es2", GrContextFactory::kANGLE_D3D11_ES2_ContextType }, in main()
437 { "angle_d3d11_es3", GrContextFactory::kANGLE_D3D11_ES3_ContextType }, in main()
[all …]
/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 …]
/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/flutter/skia/tools/flags/
DCommonFlagsConfig.cpp15 using sk_gpu_test::GrContextFactory;
227 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api()
231 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api()
235 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api()
239 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api()
243 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api()
247 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api()
251 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api()
255 *outContextType = GrContextFactory::kCommandBuffer_ContextType; in parse_option_gpu_api()
259 *outContextType = GrContextFactory::kMock_ContextType; in parse_option_gpu_api()
[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()
/third_party/flutter/skia/tools/skiaserve/
DRequest.cpp30 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()

1234