/external/skqp/tools/gpu/gl/ |
D | GLTestContext.cpp | 16 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/ |
D | GLTestContext.cpp | 16 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/tests/ |
D | SurfaceSemaphoreTest.cpp | 64 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 …]
|
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() 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()
|
D | GLProgramsTest.cpp | 355 static int get_glprograms_max_stages(const sk_gpu_test::ContextInfo& ctxInfo) { in get_glprograms_max_stages() 373 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_stages() 374 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_stages() 381 static int get_glprograms_max_levels(const sk_gpu_test::ContextInfo& ctxInfo) { in get_glprograms_max_levels() 389 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_levels() 390 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_levels() 397 static void test_glprograms(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo) { in test_glprograms() 423 sk_gpu_test::GrContextFactory debugFactory(opts); in DEF_GPUTEST()
|
D | Test.h | 113 using GrContextFactoryContextType = sk_gpu_test::GrContextFactory::ContextType; 115 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&); 178 static void test_##name(skiatest::Reporter*, const sk_gpu_test::ContextInfo& context_info); \ 185 void test_##name(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& context_info) 191 DEF_GPUTEST_FOR_CONTEXTS(name, sk_gpu_test::GrContextFactory::IsRenderingContext, \
|
/external/skqp/tests/ |
D | SurfaceSemaphoreTest.cpp | 64 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 …]
|
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() 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()
|
D | GLProgramsTest.cpp | 353 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/skqp/dm/ |
D | DMGpuTestProcs.cpp | 10 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()
|
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/dm/ |
D | DMGpuTestProcs.cpp | 10 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()
|
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/skia/tools/gpu/vk/ |
D | VkTestContext.cpp | 27 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/vk/ |
D | VkTestContext.cpp | 27 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/skia/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 22 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/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 22 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/skia/tools/gpu/mtl/ |
D | MtlTestContext.mm | 23 * Implements sk_gpu_test::FenceSync for Metal. 28 class MtlFenceSync : public sk_gpu_test::FenceSync { 67 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override { 86 return (sk_gpu_test::PlatformFence)fence; 89 bool waitFence(sk_gpu_test::PlatformFence opaqueFence) const override { 96 void deleteFence(sk_gpu_test::PlatformFence opaqueFence) const override { 109 typedef sk_gpu_test::FenceSync INHERITED; 112 GR_STATIC_ASSERT(sizeof(VkFence) <= sizeof(sk_gpu_test::PlatformFence)); 115 class MtlTestContext : public sk_gpu_test::TestContext { 157 typedef sk_gpu_test::TestContext INHERITED; [all …]
|
/external/skqp/tools/gpu/mtl/ |
D | MtlTestContext.mm | 19 * 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/skqp/tools/skpbench/ |
D | skpbench.cpp | 94 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/skia/tools/skpbench/ |
D | skpbench.cpp | 94 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, SkSurface* surface, 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, SkSurface* surface, 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/ |
D | GLTestContext_angle.cpp | 30 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/gl/angle/ |
D | GLTestContext_angle.cpp | 30 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/ |
D | MockTestContext.cpp | 17 class MockTestContext : public sk_gpu_test::TestContext { 39 typedef sk_gpu_test::TestContext INHERITED; 44 namespace sk_gpu_test { namespace
|
/external/skqp/tools/gpu/mock/ |
D | MockTestContext.cpp | 17 class MockTestContext : public sk_gpu_test::TestContext { 39 typedef sk_gpu_test::TestContext INHERITED; 44 namespace sk_gpu_test { namespace
|