Home
last modified time | relevance | path

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

12

/external/skia/tests/
DGrContextFactoryTest.cpp19 GrContextFactory testFactory;
21 for (int i = 0; i < GrContextFactory::kGLContextTypeCnt; ++i) {
22 GrContextFactory::GLContextType glCtxType = static_cast<GrContextFactory::GLContextType>(i);
24 GrContextFactory::kEnableNVPR_GLContextOptions);
37 GrContextFactory testFactory;
38 for (int i = 0; i <= GrContextFactory::kLastGLContextType; ++i) {
39 GrContextFactory::GLContextType glCtxType = (GrContextFactory::GLContextType)i;
50 GrContextFactory testFactory;
51 for (int i = 0; i < GrContextFactory::kGLContextTypeCnt; ++i) {
52 GrContextFactory::GLContextType glCtxType = (GrContextFactory::GLContextType) i;
[all …]
DTest.h15 class GrContextFactory; variable
45 typedef void (*TestProc)(skiatest::Reporter*, GrContextFactory*);
87 GrContextFactory* factory);
117 static void test_##name(skiatest::Reporter*, GrContextFactory*); \
120 void test_##name(skiatest::Reporter* reporter, GrContextFactory*)
133 static void test_##name(skiatest::Reporter*, GrContextFactory*); \
136 void test_##name(skiatest::Reporter* reporter, GrContextFactory* factory)
141 GrContextFactory* factory) { \
DVkUploadPixelsTests.cpp139 GrContextFactory debugFactory(opts); in DEF_GPUTEST()
140 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { in DEF_GPUTEST()
141 if (static_cast<GrContextFactory::GLContextType>(type) != in DEF_GPUTEST()
142 GrContextFactory::kNative_GLContextType) { in DEF_GPUTEST()
145 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLContextType>(type)); in DEF_GPUTEST()
DTestConfigParsing.cpp42 == GrContextFactory::kNative_GLContextType); in DEF_TEST()
147 GrContextFactory::kNative_GLContextType); in DEF_TEST()
154 GrContextFactory::kANGLE_GLContextType); in DEF_TEST()
159 GrContextFactory::kANGLE_GL_GLContextType); in DEF_TEST()
166 GrContextFactory::kMESA_GLContextType); in DEF_TEST()
172 GrContextFactory::kCommandBufferES2_GLContextType); in DEF_TEST()
178 GrContextFactory::kNative_GLContextType); in DEF_TEST()
183 GrContextFactory::kGLES_GLContextType); in DEF_TEST()
Dskia_test.cpp78 GrContextFactory* grContextFactory = nullptr) in SkTestRunnable()
111 GrContextFactory* fGrContextFactory;
194 GrContextFactory* grContextFactoryPtr = nullptr; in test_main()
197 GrContextFactory grContextFactory; in test_main()
DVkClearTests.cpp201 GrContextFactory debugFactory(opts); in DEF_GPUTEST()
202 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { in DEF_GPUTEST()
203 if (static_cast<GrContextFactory::GLContextType>(type) != in DEF_GPUTEST()
204 GrContextFactory::kNative_GLContextType) { in DEF_GPUTEST()
207 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLContextType>(type)); in DEF_GPUTEST()
DSkpSkGrTest.cpp256 typedef GrContextFactory::GLContextType GLContextType;
258 static const GLContextType kAngle = GrContextFactory::kANGLE_GLContextType;
260 static const GLContextType kNative = GrContextFactory::kNative_GLContextType;
410 GrContextFactory contextFactory; in testOne()
DImageTest.cpp387 GrContextFactory otherFactory; in DEF_GPUTEST_FOR_NATIVE_CONTEXT()
388 GrContextFactory::ContextInfo otherContextInfo = in DEF_GPUTEST_FOR_NATIVE_CONTEXT()
389 otherFactory.getContextInfo(GrContextFactory::kNative_GLContextType); in DEF_GPUTEST_FOR_NATIVE_CONTEXT()
DGLProgramsTest.cpp459 GrContextFactory debugFactory(opts);
/external/skia/dm/
DDMGpuSupport.h31 static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory, in NewGpuSurface()
32 GrContextFactory::GLContextType type, in NewGpuSurface()
33 GrContextFactory::GLContextOptions options, in NewGpuSurface()
62 class GrContextFactory {
64 GrContextFactory() {}; in GrContextFactory() function
65 explicit GrContextFactory(const GrContextOptions&) {} in GrContextFactory() function
92 static inline SkSurface* NewGpuSurface(GrContextFactory*, in NewGpuSurface() argument
93 GrContextFactory::GLContextType, in NewGpuSurface()
94 GrContextFactory::GLContextOptions, in NewGpuSurface()
DDM.cpp677 GrContextFactory::GLContextType contextType = gpuConfig->getContextType(); in create_sink()
678 GrContextFactory::GLContextOptions contextOptions = in create_sink()
679 GrContextFactory::kNone_GLContextOptions; in create_sink()
681 contextOptions = static_cast<GrContextFactory::GLContextOptions>( in create_sink()
682 contextOptions | GrContextFactory::kEnableNVPR_GLContextOptions); in create_sink()
684 GrContextFactory testFactory; in create_sink()
1076 GrContextFactory factory; in run_test()
1210 void call_test(T test, skiatest::Reporter* reporter, const GrContextFactory::ContextInfo& context);
1213 const GrContextFactory::ContextInfo& context) { in call_test()
1218 const GrContextFactory::ContextInfo& context) { in call_test()
[all …]
DDMSrcSink.h215 GPUSink(GrContextFactory::GLContextType, GrContextFactory::GLContextOptions,
223 GrContextFactory::GLContextType fContextType;
224 GrContextFactory::GLContextOptions fContextOptions;
/external/skia/src/gpu/
DGrContextFactory.cpp26 GrContextFactory::GrContextFactory() { } in GrContextFactory() function in GrContextFactory
28 GrContextFactory::GrContextFactory(const GrContextOptions& opts) in GrContextFactory() function in GrContextFactory
32 GrContextFactory::~GrContextFactory() { in ~GrContextFactory()
36 void GrContextFactory::destroyContexts() { in destroyContexts()
50 void GrContextFactory::abandonContexts() { in abandonContexts()
62 GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType type, in getContextInfo()
DGrContextFactory.h24 class GrContextFactory : SkNoncopyable {
105 explicit GrContextFactory(const GrContextOptions& opts);
106 GrContextFactory();
108 ~GrContextFactory();
/external/skia/tools/flags/
DSkCommonFlagsConfig.cpp185 *outContextType = GrContextFactory::kNative_GLContextType; in parse_option_gpu_api()
189 *outContextType = GrContextFactory::kGL_GLContextType; in parse_option_gpu_api()
193 *outContextType = GrContextFactory::kGLES_GLContextType; in parse_option_gpu_api()
197 *outContextType = GrContextFactory::kDebug_GLContextType; in parse_option_gpu_api()
201 *outContextType = GrContextFactory::kNull_GLContextType; in parse_option_gpu_api()
207 *outContextType = GrContextFactory::kANGLE_GLContextType; in parse_option_gpu_api()
212 *outContextType = GrContextFactory::kANGLE_GL_GLContextType; in parse_option_gpu_api()
218 *outContextType = GrContextFactory::kCommandBufferES2_GLContextType; in parse_option_gpu_api()
222 *outContextType = GrContextFactory::kCommandBufferES3_GLContextType; in parse_option_gpu_api()
228 *outContextType = GrContextFactory::kMESA_GLContextType; in parse_option_gpu_api()
[all …]
DSkCommonFlagsConfig.h53 typedef GrContextFactory::GLContextType ContextType;
/external/skia/tools/skiaserve/
DRequest.cpp75 GrContextFactory* factory = fContextFactory; in getCanvas()
76 SkGLContext* gl = factory->getContextInfo(GrContextFactory::kNative_GLContextType, in getCanvas()
77 GrContextFactory::kNone_GLContextOptions).fGLContext; in getCanvas()
101 GrContext* context = fContextFactory->get(GrContextFactory::kNative_GLContextType, in createGPUSurface()
102 GrContextFactory::kNone_GLContextOptions); in createGPUSurface()
DRequest.h50 SkAutoTDelete<GrContextFactory> fContextFactory;
Dskiaserve.cpp88 request.fContextFactory.reset(new GrContextFactory(grContextOpts)); in skiaserve_main()
/external/skia/gyp/
Dgputest.gyp30 '<(skia_src_path)/gpu/GrContextFactory.cpp',
31 '<(skia_src_path)/gpu/GrContextFactory.h',
Dpathops_unittest.gyp45 '../src/gpu/GrContextFactory.cpp',
46 '../src/gpu/GrContextFactory.h',
/external/skia/bench/
Dnanobench.h31 GrContextFactory::GLContextType ctxType;
32 GrContextFactory::GLContextOptions ctxOptions;
Dnanobench.cpp59 SkAutoTDelete<GrContextFactory> gGrFactory;
385 #define kBogusGLContextType GrContextFactory::kNative_GLContextType
386 #define kBogusGLContextOptions GrContextFactory::kNone_GLContextOptions
399 … const auto ctxOptions = gpuConfig->getUseNVPR() ? GrContextFactory::kEnableNVPR_GLContextOptions in create_config()
400 : GrContextFactory::kNone_GLContextOptions; in create_config()
1028 gGrFactory.reset(new GrContextFactory(grContextOpts)); in nanobench_main()
/external/skia/tools/kilobench/
Dkilobench.cpp184 bool init(Benchmark* bench, GrContextFactory* factory, bool useDfText, in init()
185 GrContextFactory::GLContextType ctxType, in init()
186 GrContextFactory::GLContextOptions ctxOptions, int numSamples) { in init()
485 fCtxFactory.reset(new GrContextFactory(grContextOpts)); in AutoSetupContextBenchAndTarget()
488 GrContextFactory::kNative_GLContextType, in AutoSetupContextBenchAndTarget()
489 GrContextFactory::kNone_GLContextOptions, 0)); in AutoSetupContextBenchAndTarget()
510 SkAutoTDelete<GrContextFactory> fCtxFactory;
/external/skia/site/user/api/
Dcanvas.md77 example, we use a `GrContextFactory` to create a context.
81 #include "GrContextFactory.h"
89 GrContextFactory grFactory;
90 GrContext* context = grFactory.get(GrContextFactory::kNative_GLContextType);

12