Home
last modified time | relevance | path

Searched refs:sk_gpu_test (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/skqp/tools/gpu/gl/
DGLTestContext.cpp16 class GLFenceSync : public sk_gpu_test::FenceSync {
18 static std::unique_ptr<FenceSync> MakeIfSupported(const sk_gpu_test::GLTestContext*);
20 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
21 bool waitFence(sk_gpu_test::PlatformFence fence) const override;
22 void deleteFence(sk_gpu_test::PlatformFence fence) const override;
25 GLFenceSync(const sk_gpu_test::GLTestContext*, const char* ext = "");
34 GR_STATIC_ASSERT(sizeof(GLsync) <= sizeof(sk_gpu_test::PlatformFence));
47 class GLNVFenceSync : public sk_gpu_test::FenceSync {
49 GLNVFenceSync(const sk_gpu_test::GLTestContext*);
51 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
[all …]
/external/skia/tools/gpu/gl/
DGLTestContext.cpp16 class GLGpuTimer : public sk_gpu_test::GpuTimer {
18 static std::unique_ptr<GLGpuTimer> MakeIfSupported(const sk_gpu_test::GLTestContext*);
20 QueryStatus checkQueryStatus(sk_gpu_test::PlatformTimerQuery) override;
21 std::chrono::nanoseconds getTimeElapsed(sk_gpu_test::PlatformTimerQuery) override;
22 void deleteQuery(sk_gpu_test::PlatformTimerQuery) override;
25 GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext*, const char* ext = "");
29 sk_gpu_test::PlatformTimerQuery onQueueTimerStart() const override;
30 void onQueueTimerStop(sk_gpu_test::PlatformTimerQuery) const override;
54 using INHERITED = sk_gpu_test::GpuTimer;
57 std::unique_ptr<GLGpuTimer> GLGpuTimer::MakeIfSupported(const sk_gpu_test::GLTestContext* ctx) { in MakeIfSupported()
[all …]
/external/skia/dm/
DDMGpuTestProcs.cpp12 using sk_gpu_test::GrContextFactory;
13 using sk_gpu_test::GLTestContext;
14 using sk_gpu_test::ContextInfo;
18 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
21 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
24 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
27 bool IsDirect3DContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDirect3DContextType()
30 bool IsDawnContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDawnContextType()
33 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
36 bool IsMockContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMockContextType()
/external/skqp/dm/
DDMGpuTestProcs.cpp10 using sk_gpu_test::GrContextFactory;
11 using sk_gpu_test::GLTestContext;
12 using sk_gpu_test::ContextInfo;
16 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
19 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
22 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
25 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
28 bool IsNullGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsNullGLContextType()
/external/skqp/tests/
DSurfaceSemaphoreTest.cpp64 const sk_gpu_test::ContextInfo& childInfo, in draw_child()
108 const sk_gpu_test::ContextInfo& mainInfo, in surface_semaphore_test()
109 const sk_gpu_test::ContextInfo& childInfo1, in surface_semaphore_test()
110 const sk_gpu_test::ContextInfo& childInfo2, in surface_semaphore_test()
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()
[all …]
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()
277 sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo( 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()
282 sk_gpu_test::ContextInfo child = in DEF_GPUTEST()
DGLProgramsTest.cpp353 static int get_glprograms_max_stages(const sk_gpu_test::ContextInfo& ctxInfo) { in get_glprograms_max_stages()
371 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_stages()
372 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_stages()
379 static int get_glprograms_max_levels(const sk_gpu_test::ContextInfo& ctxInfo) { in get_glprograms_max_levels()
387 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_levels()
388 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_levels()
395 static void test_glprograms(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo) { in test_glprograms()
421 sk_gpu_test::GrContextFactory debugFactory(opts); in DEF_GPUTEST()
/external/skia/tests/
DSurfaceSemaphoreTest.cpp67 const sk_gpu_test::ContextInfo& childInfo, in draw_child()
113 const sk_gpu_test::ContextInfo& mainInfo, in surface_semaphore_test()
114 const sk_gpu_test::ContextInfo& childInfo1, in surface_semaphore_test()
115 const sk_gpu_test::ContextInfo& childInfo2, in surface_semaphore_test()
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()
[all …]
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()
284 sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo(contextType); in DEF_GPUTEST()
286 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
288 sk_gpu_test::ContextInfo child = in DEF_GPUTEST()
DPromiseImageTest.cpp20 using namespace sk_gpu_test;
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()
233 auto mbet = sk_gpu_test::ManagedBackendTexture::MakeWithoutData(ctx, 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()
DProgramsTest.cpp334 static int get_programs_max_stages(const sk_gpu_test::ContextInfo& ctxInfo) { in get_programs_max_stages()
357 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType) { in get_programs_max_stages()
359 } else if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_programs_max_stages()
367 static int get_programs_max_levels(const sk_gpu_test::ContextInfo& ctxInfo) { in get_programs_max_levels()
384 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_programs_max_levels()
385 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_programs_max_levels()
393 static void test_programs(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo) { in test_programs()
419 sk_gpu_test::GrContextFactory debugFactory(opts); in DEF_GPUTEST()
421 test_programs, &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, opts); in DEF_GPUTEST()
/external/skqp/tools/gpu/vk/
DVkTestContext.cpp27 class VkFenceSync : public sk_gpu_test::FenceSync {
82 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override { in insertFence()
107 return (sk_gpu_test::PlatformFence)fence; in insertFence()
110 bool waitFence(sk_gpu_test::PlatformFence opaqueFence) const override { in waitFence()
117 void deleteFence(sk_gpu_test::PlatformFence opaqueFence) const override { in deleteFence()
141 typedef sk_gpu_test::FenceSync INHERITED;
144 GR_STATIC_ASSERT(sizeof(VkFence) <= sizeof(sk_gpu_test::PlatformFence));
147 class VkTestContextImpl : public sk_gpu_test::VkTestContext {
166 if (!sk_gpu_test::LoadVkLibraryAndGetProcAddrFuncs(&instProc, &devProc)) { in Create()
179 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, extensions, in Create()
[all …]
/external/skqp/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp22 class EGLFenceSync : public sk_gpu_test::FenceSync {
26 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
27 bool waitFence(sk_gpu_test::PlatformFence fence) const override;
28 void deleteFence(sk_gpu_test::PlatformFence fence) const override;
39 typedef sk_gpu_test::FenceSync INHERITED;
52 class EGLGLTestContext : public sk_gpu_test::GLTestContext {
60 std::unique_ptr<sk_gpu_test::GLTestContext> makeNew() const override;
288 std::unique_ptr<sk_gpu_test::GLTestContext> EGLGLTestContext::makeNew() const { in makeNew()
289 std::unique_ptr<sk_gpu_test::GLTestContext> ctx(new EGLGLTestContext(this->gl()->fStandard, in makeNew()
350 sk_gpu_test::PlatformFence EGLFenceSync::insertFence() const { in insertFence()
[all …]
/external/skqp/tools/gpu/mtl/
DMtlTestContext.mm19 * Implements sk_gpu_test::FenceSync for Metal.
24 class MtlFenceSync : public sk_gpu_test::FenceSync {
63 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override {
82 return (sk_gpu_test::PlatformFence)fence;
85 bool waitFence(sk_gpu_test::PlatformFence opaqueFence) const override {
92 void deleteFence(sk_gpu_test::PlatformFence opaqueFence) const override {
105 typedef sk_gpu_test::FenceSync INHERITED;
108 GR_STATIC_ASSERT(sizeof(VkFence) <= sizeof(sk_gpu_test::PlatformFence));
111 class MtlTestContext : public sk_gpu_test::TestContext {
151 typedef sk_gpu_test::TestContext INHERITED;
[all …]
/external/skia/tools/gpu/vk/
DVkTestContext.cpp22 class VkTestContextImpl : public sk_gpu_test::VkTestContext {
41 if (!sk_gpu_test::LoadVkLibraryAndGetProcAddrFuncs(&instProc, &devProc)) { in Create()
54 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, extensions, in Create()
56 sk_gpu_test::FreeVulkanFeaturesStructs(features); in Create()
108 sk_gpu_test::FreeVulkanFeaturesStructs(fFeatures); in teardown()
127 using INHERITED = sk_gpu_test::VkTestContext;
131 namespace sk_gpu_test { namespace
DVkTestHelper.cpp34 if (!sk_gpu_test::LoadVkLibraryAndGetProcAddrFuncs(&instProc, &devProc)) { in init()
51 if (!sk_gpu_test::CreateVkBackendContext(getProc, &fBackendContext, &fExtensions, in init()
53 sk_gpu_test::CanPresentFn(), fIsProtected)) { in init()
112 sk_gpu_test::FreeVulkanFeaturesStructs(&fFeatures); in cleanup()
/external/skia/tools/gpu/d3d/
DD3DTestContext.cpp17 class D3DTestContextImpl : public sk_gpu_test::D3DTestContext {
28 if (!sk_gpu_test::CreateD3DBackendContext(&backendContext)) { in Create()
65 using INHERITED = sk_gpu_test::D3DTestContext;
69 namespace sk_gpu_test { namespace
/external/skia/tools/fiddle/
Dfiddle_main.h26 namespace sk_gpu_test {
31 extern sk_sp<sk_gpu_test::ManagedBackendTexture> backEndTexture;
33 extern sk_sp<sk_gpu_test::ManagedBackendTexture> backEndTextureRenderTarget;
94 std::unique_ptr<sk_gpu_test::GLTestContext>*);
/external/skqp/tools/skpbench/
Dskpbench.cpp94 GpuSync(const sk_gpu_test::FenceSync* fenceSync);
102 const sk_gpu_test::FenceSync* const fFenceSync;
103 sk_gpu_test::PlatformFence fFence;
148 static void run_ddl_benchmark(const sk_gpu_test::FenceSync* fenceSync, in run_ddl_benchmark()
196 static void run_benchmark(const sk_gpu_test::FenceSync* fenceSync, SkCanvas* canvas, in run_benchmark()
230 static void run_gpu_time_benchmark(sk_gpu_test::GpuTimer* gpuTimer, in run_gpu_time_benchmark()
231 const sk_gpu_test::FenceSync* fenceSync, SkCanvas* canvas, in run_gpu_time_benchmark()
233 using sk_gpu_test::PlatformTimerQuery; in run_gpu_time_benchmark()
269 using QueryStatus = sk_gpu_test::GpuTimer::QueryStatus; in run_gpu_time_benchmark()
393 sk_gpu_test::GrContextFactory factory(ctxOptions); in main()
[all …]
/external/skqp/tools/gpu/gl/angle/
DGLTestContext_angle.cpp30 using sk_gpu_test::ANGLEBackend;
31 using sk_gpu_test::ANGLEContextVersion;
88 class ANGLEGLContext : public sk_gpu_test::GLTestContext {
96 std::unique_ptr<sk_gpu_test::GLTestContext> makeNew() const override;
237 sk_sp<const GrGLInterface> gl = sk_gpu_test::CreateANGLEGLInterface(); in ANGLEGLContext()
324 std::unique_ptr<sk_gpu_test::GLTestContext> ANGLEGLContext::makeNew() const { in makeNew()
327 std::unique_ptr<sk_gpu_test::GLTestContext> ctx = in makeNew()
328 sk_gpu_test::MakeANGLETestContext(fType, fVersion, nullptr, fDisplay); in makeNew()
393 namespace sk_gpu_test { namespace
/external/skia/tools/gpu/mock/
DMockTestContext.cpp17 class MockTestContext : public sk_gpu_test::TestContext {
38 using INHERITED = sk_gpu_test::TestContext;
43 namespace sk_gpu_test { namespace
/external/skqp/tools/gpu/mock/
DMockTestContext.cpp17 class MockTestContext : public sk_gpu_test::TestContext {
39 typedef sk_gpu_test::TestContext INHERITED;
44 namespace sk_gpu_test { namespace
/external/skia/tools/gpu/mtl/
DMtlTestContext.mm20 class MtlTestContextImpl : public sk_gpu_test::MtlTestContext {
76 using INHERITED = sk_gpu_test::MtlTestContext;
81 namespace sk_gpu_test {
87 } // namespace sk_gpu_test
/external/skia/modules/canvaskit/
Dgm_bindings.cpp267 using ContextType = sk_gpu_test::GrContextFactory::ContextType;
271 return GrBackendApi::kOpenGL == sk_gpu_test::GrContextFactory::ContextTypeBackend(ct); in IsGLContextType()
274 return IsGLContextType(ct) && sk_gpu_test::GrContextFactory::IsRenderingContext(ct); in IsRenderingGLContextType()
292 sk_gpu_test::GrContextFactory factory(options); in RunWithGPUTestContexts()
293 sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo(contextType); in RunWithGPUTestContexts()
313 class WasmWebGlTestContext : public sk_gpu_test::GLTestContext {
338 namespace sk_gpu_test { namespace

12345678910