Home
last modified time | relevance | path

Searched refs:sk_gpu_test (Results 1 - 25 of 144) sorted by relevance

123456

/third_party/skia/tools/gpu/gl/
H A 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;
26 GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext*, const char* ext = "");
30 sk_gpu_test::PlatformTimerQuery onQueueTimerStart() const override;
31 void onQueueTimerStop(sk_gpu_test::PlatformTimerQuery) const override;
55 using INHERITED = sk_gpu_test::GpuTimer;
58 std::unique_ptr<GLGpuTimer> GLGpuTimer::MakeIfSupported(const sk_gpu_test
157 namespace sk_gpu_test { global() namespace
[all...]
/third_party/skia/dm/
H A DDMGpuTestProcs.cpp17 using sk_gpu_test::GrContextFactory;
18 using sk_gpu_test::GLTestContext;
19 using sk_gpu_test::ContextInfo;
23 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType()
26 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType()
29 bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsMetalContextType()
32 bool IsDirect3DContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDirect3DContextType()
35 bool IsDawnContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsDawnContextType()
38 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType()
41 bool IsMockContextType(sk_gpu_test in IsRenderingGLContextType()
[all...]
/third_party/skia/tests/
H A 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 in DEF_GPUTEST()
[all...]
H A 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()
H A 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()
H A DPromiseImageTest.cpp21 using namespace sk_gpu_test;
203 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()
234 auto mbet = sk_gpu_test in DEF_GPUTEST()
[all...]
H A DProgramsTest.cpp329 static int get_programs_max_stages(const sk_gpu_test::ContextInfo& ctxInfo) { in get_programs_max_stages()
352 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()
362 static int get_programs_max_levels(const sk_gpu_test::ContextInfo& ctxInfo) { in get_programs_max_levels()
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()
388 static void test_programs(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo) { in test_programs()
414 sk_gpu_test::GrContextFactory debugFactory(opts); in DEF_GPUTEST()
416 test_programs, &sk_gpu_test::GrContextFactory::IsRenderingContext, reporter, opts); in DEF_GPUTEST()
H A 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()
H A DGrMipMappedTest.cpp54 auto mbet = sk_gpu_test::ManagedBackendTexture::MakeWithData(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
78 sk_gpu_test::ManagedBackendTexture::ReleaseProc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
90 sk_gpu_test::ManagedBackendTexture::ReleaseProc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 proxy = sk_ref_sp(sk_gpu_test::GetTextureImageProxy(image.get(), dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
134 sk_sp<SkImage> image = sk_gpu_test::MakeBackendTextureImage( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
138 GrTextureProxy* proxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
300 surface = sk_gpu_test::MakeBackendTextureSurface(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
326 texProxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DTest.h123 using GrContextFactoryContextType = sk_gpu_test::GrContextFactory::ContextType;
125 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&);
244 static void test_##name(skiatest::Reporter*, const sk_gpu_test::ContextInfo&); \
251 void test_##name(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& context_info)
257 DEF_GPUTEST_FOR_CONTEXTS(name, sk_gpu_test::GrContextFactory::IsRenderingContext, \
/third_party/skia/tools/gpu/vk/
H A 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);
127 using INHERITED = sk_gpu_test::VkTestContext;
131 namespace sk_gpu_test { namespace
135 } // namespace sk_gpu_test
H A 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()
/third_party/skia/tools/gpu/d3d/
H A 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
73 } // namespace sk_gpu_test
/third_party/skia/tools/fiddle/
H A Dfiddle_main.h26 namespace sk_gpu_test { namespace
29 } // 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>*);
H A Degl_context.cpp22 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_direct_context()
23 glContext->reset(sk_gpu_test::CreatePlatformGLTestContext(kGLES_GrGLStandard)); in create_direct_context()
H A Dfiddle_main.cpp34 sk_sp<sk_gpu_test::ManagedBackendTexture> backEndTexture;
35 sk_sp<sk_gpu_test::ManagedBackendTexture> backEndTextureRenderTarget;
154 backEndTexture = sk_gpu_test::ManagedBackendTexture::MakeFromPixmap(dContext, in setup_backend_objects()
197 backEndTextureRenderTarget = sk_gpu_test::ManagedBackendTexture::MakeWithData( in setup_backend_objects()
263 std::unique_ptr<sk_gpu_test::GLTestContext> glContext; in main()
/third_party/skia/tools/gpu/mock/
H A DMockTestContext.cpp17 class MockTestContext : public sk_gpu_test::TestContext {
38 using INHERITED = sk_gpu_test::TestContext;
43 namespace sk_gpu_test { namespace
47 } // namespace sk_gpu_test
/third_party/skia/modules/canvaskit/
H A 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()
294 sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo(contextType); in RunWithGPUTestContexts()
314 class WasmWebGlTestContext : public sk_gpu_test::GLTestContext {
339 namespace sk_gpu_test { namespace
344 } // namespace sk_gpu_test
/third_party/skia/tools/gpu/gl/angle/
H A DGLTestContext_angle.cpp33 using sk_gpu_test::ANGLEBackend;
34 using sk_gpu_test::ANGLEContextVersion;
91 class ANGLEGLContext : public sk_gpu_test::GLTestContext {
99 std::unique_ptr<sk_gpu_test::GLTestContext> makeNew() const override;
328 sk_sp<const GrGLInterface> gl = sk_gpu_test::CreateANGLEGLInterface(); in ANGLEGLContext()
413 std::unique_ptr<sk_gpu_test::GLTestContext> ANGLEGLContext::makeNew() const { in makeNew()
416 std::unique_ptr<sk_gpu_test::GLTestContext> ctx = in makeNew()
417 sk_gpu_test::MakeANGLETestContext(fType, fVersion, nullptr, fDisplay); in makeNew()
494 namespace sk_gpu_test {
538 } // namespace sk_gpu_test
[all...]
/third_party/skia/tools/skpbench/
H A Dskpbench.cpp112 sk_gpu_test::FlushFinishTracker* newFlushTracker(GrDirectContext* context);
116 sk_sp<sk_gpu_test::FlushFinishTracker> fFinishTrackers[kMaxFrameLag - 1];
253 static void run_ddl_benchmark(sk_gpu_test::TestContext* testContext, GrDirectContext *dContext, in run_ddl_benchmark()
377 static void run_gpu_time_benchmark(sk_gpu_test::GpuTimer* gpuTimer, GrDirectContext* context, in run_gpu_time_benchmark()
380 using sk_gpu_test::PlatformTimerQuery; in run_gpu_time_benchmark()
414 using QueryStatus = sk_gpu_test::GpuTimer::QueryStatus; in run_gpu_time_benchmark()
567 sk_gpu_test::GrContextFactory factory(ctxOptions); in main()
568 sk_gpu_test::ContextInfo ctxInfo = in main()
590 sk_gpu_test::TestContext* testCtx = ctxInfo.testContext(); in main()
664 flushInfo.fFinishedProc = sk_gpu_test in flush_with_sync()
[all...]
/third_party/skia/tools/sk_app/
H A DVulkanWindowContext.cpp67 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, &extensions, &features, in initializeContext()
69 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
75 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
91 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
126 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
135 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
141 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
147 sk_gpu_test::FreeVulkanFeaturesStructs(&features); in initializeContext()
/third_party/skia/tools/gpu/dawn/
H A DDawnTestContext.cpp84 class DawnTestContextImpl : public sk_gpu_test::DawnTestContext {
165 using INHERITED = sk_gpu_test::DawnTestContext;
169 namespace sk_gpu_test { namespace
173 } // namespace sk_gpu_test
/third_party/skia/tools/gpu/gl/egl/
H A DCreatePlatformGLTestContext_egl.cpp28 class EGLGLTestContext : public sk_gpu_test::GLTestContext {
36 std::unique_ptr<sk_gpu_test::GLTestContext> makeNew() const override;
286 std::unique_ptr<sk_gpu_test::GLTestContext> EGLGLTestContext::makeNew() const { in makeNew()
287 std::unique_ptr<sk_gpu_test::GLTestContext> ctx(new EGLGLTestContext(this->gl()->fStandard, in makeNew()
320 namespace sk_gpu_test {
331 } // namespace sk_gpu_test
/third_party/skia/bench/
H A Dnanobench.h28 sk_gpu_test::GrContextFactory::ContextType ctxType;
29 sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides;
/third_party/skia/tools/skqp/src/
H A Dskqp.cpp143 static std::unique_ptr<sk_gpu_test::TestContext> make_test_context(SkQP::SkiaBackend backend) { in make_test_context()
144 using U = std::unique_ptr<sk_gpu_test::TestContext>; in make_test_context()
149 return U(sk_gpu_test::CreatePlatformGLTestContext(kGL_GrGLStandard, nullptr)); in make_test_context()
151 return U(sk_gpu_test::CreatePlatformGLTestContext(kGLES_GrGLStandard, nullptr)); in make_test_context()
155 return U(sk_gpu_test::CreatePlatformVkTestContext(nullptr)); in make_test_context()
186 std::unique_ptr<sk_gpu_test::TestContext> testCtx = make_test_context(backend); in get_backends()
204 if (std::unique_ptr<sk_gpu_test::TestContext> testCtx = make_test_context(backend)) { in print_backend_info()
277 std::unique_ptr<sk_gpu_test::TestContext> testCtx = make_test_context(backend); in evaluateGM()

Completed in 13 milliseconds

123456