/external/skia/tests/ |
D | GrContextFactoryTest.cpp | 21 GrContextFactory testFactory; 23 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { 24 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); 26 GrContextFactory::ContextOverrides::kRequireNVPRSupport); 39 GrContextFactory testFactory; 40 for (int i = 0; i <= GrContextFactory::kLastContextType; ++i) { 41 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType)i; 43 testFactory.get(ctxType, GrContextFactory::ContextOverrides::kDisableNVPR); 56 GrContextFactory testFactory; 58 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { [all …]
|
D | TestConfigParsing.cpp | 13 using sk_gpu_test::GrContextFactory; 45 == GrContextFactory::kGL_ContextType); in DEF_TEST() 185 GrContextFactory::kGL_ContextType); in DEF_TEST() 192 GrContextFactory::kGL_ContextType); in DEF_TEST() 196 GrContextFactory::kMock_ContextType); in DEF_TEST() 199 GrContextFactory::kGL_ContextType); in DEF_TEST() 203 GrContextFactory::kGL_ContextType); in DEF_TEST() 208 GrContextFactory::kGL_ContextType); in DEF_TEST() 212 GrContextFactory::kGL_ContextType); in DEF_TEST() 217 GrContextFactory::kGLES_ContextType); in DEF_TEST() [all …]
|
D | SurfaceSemaphoreTest.cpp | 140 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGL_ContextType; in DEF_GPUTEST() 142 static constexpr auto kNativeGLType = sk_gpu_test::GrContextFactory::kGLES_ContextType; in DEF_GPUTEST() 145 for (int typeInt = 0; typeInt < sk_gpu_test::GrContextFactory::kContextTypeCnt; ++typeInt) { in DEF_GPUTEST() 146 sk_gpu_test::GrContextFactory::ContextType contextType = in DEF_GPUTEST() 147 (sk_gpu_test::GrContextFactory::ContextType) typeInt; in DEF_GPUTEST() 150 if (contextType == sk_gpu_test::GrContextFactory::kGL_ContextType || in DEF_GPUTEST() 151 contextType == sk_gpu_test::GrContextFactory::kGLES_ContextType) { in DEF_GPUTEST() 157 contextType, sk_gpu_test::GrContextFactory::ContextOverrides::kDisableNVPR); in DEF_GPUTEST() 158 if (!sk_gpu_test::GrContextFactory::IsRenderingContext(contextType)) { in DEF_GPUTEST() 162 reporter, SkString(sk_gpu_test::GrContextFactory::ContextTypeName(contextType))); in DEF_GPUTEST()
|
D | Test.h | 19 class GrContextFactory; variable 90 typedef void (*TestProc)(skiatest::Reporter*, sk_gpu_test::GrContextFactory*); 121 using GrContextFactoryContextType = sk_gpu_test::GrContextFactory::ContextType; 134 Reporter*, sk_gpu_test::GrContextFactory*); 185 static void test_##name(skiatest::Reporter*, sk_gpu_test::GrContextFactory*); \ 188 void test_##name(skiatest::Reporter* reporter, sk_gpu_test::GrContextFactory*) 192 static void test_##name(skiatest::Reporter*, sk_gpu_test::GrContextFactory*); \ 195 void test_##name(skiatest::Reporter* reporter, sk_gpu_test::GrContextFactory* factory) 201 sk_gpu_test::GrContextFactory* factory) { \ 212 DEF_GPUTEST_FOR_CONTEXTS(name, sk_gpu_test::GrContextFactory::IsRenderingContext, \
|
D | GrContextAbandonTest.cpp | 19 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { 20 GrContextFactory testFactory; 21 GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i;
|
D | GLProgramsTest.cpp | 359 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_stages() 360 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_stages() 375 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in get_glprograms_max_levels() 376 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in get_glprograms_max_levels() 395 if (sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType == ctxInfo.type()) { in test_glprograms() 415 sk_gpu_test::GrContextFactory debugFactory(opts);
|
D | skia_test.cpp | 87 GrContextFactory* grContextFactory = nullptr) in SkTestRunnable() 122 GrContextFactory* fGrContextFactory; 236 GrContextFactory* grContextFactoryPtr = nullptr; in main() 239 GrContextFactory grContextFactory; in main()
|
D | ReadPixelsTest.cpp | 394 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 395 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_GL_ES2_ContextType || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 396 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 444 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 445 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_GL_ES2_ContextType || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 446 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | SkpSkGrTest.cpp | 253 typedef GrContextFactory::ContextType ContextType; 255 static const ContextType kAngle = GrContextFactory::kANGLE_ContextType; 257 static const ContextType kNative = GrContextFactory::kNativeGL_ContextType; 407 GrContextFactory contextFactory; in testOne()
|
D | VkUploadPixelsTests.cpp | 22 using sk_gpu_test::GrContextFactory;
|
D | ImageTest.cpp | 426 GrContextFactory otherFactory; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 810 GrContextFactory testFactory; 815 for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { 816 GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); 995 GrContextFactory otherFactory; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | VkWrapTests.cpp | 24 using sk_gpu_test::GrContextFactory;
|
/external/skia/dm/ |
D | DMGpuSupport.h | 32 sk_gpu_test::GrContextFactory* grFactory, in NewGpuSurface() 33 sk_gpu_test::GrContextFactory::ContextType type, in NewGpuSurface() 34 sk_gpu_test::GrContextFactory::ContextOverrides overrides, in NewGpuSurface() 64 class GrContextFactory { 66 GrContextFactory() {} in GrContextFactory() function 67 explicit GrContextFactory(const GrContextOptions&) {} in GrContextFactory() function 97 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*, in NewGpuSurface() argument 98 sk_gpu_test::GrContextFactory::ContextType, in NewGpuSurface() 99 sk_gpu_test::GrContextFactory::ContextOverrides, in NewGpuSurface()
|
D | DM.cpp | 93 using sk_gpu_test::GrContextFactory; 847 GrContextFactory::ContextType contextType = gpuConfig->getContextType(); in create_sink() 848 GrContextFactory::ContextOverrides contextOverrides = gpuConfig->getContextOverrides(); in create_sink() 849 GrContextFactory testFactory(grCtxOptions); in create_sink() 1245 GrContextFactory factory(grCtxOptions); in run_test() 1391 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType() 1392 return kOpenGL_GrBackend == GrContextFactory::ContextTypeBackend(type); in IsGLContextType() 1394 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType() 1395 return kVulkan_GrBackend == GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType() 1397 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType() [all …]
|
D | DMSrcSink.h | 307 GPUSink(sk_gpu_test::GrContextFactory::ContextType, 308 sk_gpu_test::GrContextFactory::ContextOverrides, int samples, bool diText, 321 sk_gpu_test::GrContextFactory::ContextType fContextType; 322 sk_gpu_test::GrContextFactory::ContextOverrides fContextOverrides;
|
/external/skia/tools/ |
D | ok_test.cpp | 50 sk_gpu_test::GrContextFactory* factory = nullptr; in draw() 53 sk_gpu_test::GrContextFactory a_real_factory(options); in draw() 79 bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsGLContextType() 80 return kOpenGL_GrBackend == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsGLContextType() 82 bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsVulkanContextType() 83 return kVulkan_GrBackend == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType() 85 bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsRenderingGLContextType() 86 return IsGLContextType(type) && sk_gpu_test::GrContextFactory::IsRenderingContext(type); in IsRenderingGLContextType() 88 bool IsNullGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { in IsNullGLContextType() 89 return type == sk_gpu_test::GrContextFactory::kNullGL_ContextType; in IsNullGLContextType() [all …]
|
/external/skia/tools/gpu/ |
D | GrContextFactory.h | 29 class GrContextFactory : SkNoncopyable { 127 explicit GrContextFactory(const GrContextOptions& opts); 128 GrContextFactory(); 130 ~GrContextFactory(); 180 GrContextFactory::ContextType type() const { return fType; } in type() 181 GrBackend backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend() 193 ContextInfo(GrContextFactory::ContextType type, in ContextInfo() 201 GrContextFactory::ContextType fType = GrContextFactory::kGL_ContextType; 206 friend class GrContextFactory; variable 211 GR_MAKE_BITFIELD_CLASS_OPS(sk_gpu_test::GrContextFactory::ContextOverrides);
|
D | GrContextFactory.cpp | 46 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in sk_gpu_test::GrContextFactory 48 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in sk_gpu_test::GrContextFactory 52 GrContextFactory::~GrContextFactory() { in ~GrContextFactory() 56 void GrContextFactory::destroyContexts() { in destroyContexts() 71 void GrContextFactory::abandonContexts() { in abandonContexts() 86 void GrContextFactory::releaseResourcesAndAbandonContexts() { in releaseResourcesAndAbandonContexts() 102 GrContext* GrContextFactory::get(ContextType type, ContextOverrides overrides) { in get() 106 ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOverrides overrides, in getContextInfoInternal() 303 ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOverrides overrides) { in getContextInfo() 307 ContextInfo GrContextFactory::getSharedContextInfo(GrContext* shareContext, uint32_t shareIndex) { in getSharedContextInfo()
|
/external/skia/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 15 using sk_gpu_test::GrContextFactory; 263 *outContextType = GrContextFactory::kGL_ContextType; in parse_option_gpu_api() 267 *outContextType = GrContextFactory::kGLES_ContextType; in parse_option_gpu_api() 271 *outContextType = GrContextFactory::kDebugGL_ContextType; in parse_option_gpu_api() 275 *outContextType = GrContextFactory::kNullGL_ContextType; in parse_option_gpu_api() 279 *outContextType = GrContextFactory::kANGLE_D3D9_ES2_ContextType; in parse_option_gpu_api() 283 *outContextType = GrContextFactory::kANGLE_D3D11_ES2_ContextType; in parse_option_gpu_api() 287 *outContextType = GrContextFactory::kANGLE_D3D11_ES3_ContextType; in parse_option_gpu_api() 291 *outContextType = GrContextFactory::kANGLE_GL_ES2_ContextType; in parse_option_gpu_api() 295 *outContextType = GrContextFactory::kANGLE_GL_ES3_ContextType; in parse_option_gpu_api() [all …]
|
D | SkCommonFlagsConfig.h | 54 typedef sk_gpu_test::GrContextFactory::ContextType ContextType; 55 typedef sk_gpu_test::GrContextFactory::ContextOverrides ContextOverrides;
|
/external/skia/tools/skiaserve/ |
D | Request.cpp | 33 fContextFactory = new GrContextFactory(grContextOpts); in Request() 75 GrContextFactory* factory = fContextFactory; in getCanvas() 76 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas() 77 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 79 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas() 80 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 83 gl = factory->getContextInfo(GrContextFactory::kMESA_ContextType, in getCanvas() 84 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas() 133 GrContext* result = fContextFactory->get(GrContextFactory::kGL_ContextType, in getContext() 134 GrContextFactory::ContextOverrides::kNone); in getContext() [all …]
|
D | Request.h | 25 class GrContextFactory; variable 78 sk_gpu_test::GrContextFactory* fContextFactory;
|
/external/skia/bench/ |
D | nanobench.h | 32 sk_gpu_test::GrContextFactory::ContextType ctxType; 33 sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides;
|
D | nanobench.cpp | 65 using sk_gpu_test::GrContextFactory; 67 std::unique_ptr<GrContextFactory> gGrFactory; 403 #define kBogusContextType GrContextFactory::kGL_ContextType 404 #define kBogusContextOverrides GrContextFactory::ContextOverrides::kNone 1120 gGrFactory.reset(new GrContextFactory(grContextOpts)); in main()
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 1790 GrContext* context = sk_gpu_test::GrContextFactory().get( in DEF_FUZZ() 1791 sk_gpu_test::GrContextFactory::kGL_ContextType); in DEF_FUZZ() 1793 context = sk_gpu_test::GrContextFactory().get( in DEF_FUZZ() 1794 sk_gpu_test::GrContextFactory::kGLES_ContextType); in DEF_FUZZ() 1800 fuzz_ganesh(fuzz, sk_gpu_test::GrContextFactory().get( in DEF_FUZZ() 1801 sk_gpu_test::GrContextFactory::kNullGL_ContextType)); in DEF_FUZZ() 1805 fuzz_ganesh(fuzz, sk_gpu_test::GrContextFactory().get( in DEF_FUZZ() 1806 sk_gpu_test::GrContextFactory::kDebugGL_ContextType)); in DEF_FUZZ()
|