8#ifndef SK_COMMON_FLAGS_CONFIG_H
9#define SK_COMMON_FLAGS_CONFIG_H
18class SkCommandLineConfigGraphite;
34 virtual const SkCommandLineConfigGraphite*
asConfigGraphite()
const {
return nullptr; }
63 uint32_t surfaceFlags,
67 bool useStencilBuffers,
68 int testPersistentCache,
96 uint32_t fSurfaceFlags;
100 int fTestPersistentCache;
101 bool fTestPrecompile;
106 bool fReducedShaders;
110#if defined(SK_GRAPHITE)
125 SkCommandLineConfigGraphite(
const SkString& tag,
135 , fContextType(contextType)
136 , fSurfaceType(surfaceType)
139 , fTestPrecompile(testPrecompile) {
141 const SkCommandLineConfigGraphite*
asConfigGraphite()
const override {
return this; }
144 ContextType getContextType()
const {
return fContextType; }
145 SurfaceType getSurfaceType()
const {
return fSurfaceType; }
148 bool getTestPrecompile()
const {
return fTestPrecompile; }
156 bool fTestPrecompile;
skia_private::TArray< std::unique_ptr< SkCommandLineConfig >, true > SkCommandLineConfigArray
void ParseConfigs(const CommandLineFlags::StringArray &configList, SkCommandLineConfigArray *outResult)
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
SurfType getSurfType() const
ContextType getContextType() const
ContextOverrides getContextOverrides() const
bool getUseDDLSink() const
bool getRemoteSlug() const
SkColorType getColorType() const
bool getSerializedSlug() const
bool getReducedShaders() const
bool getTestPrecompile() const
const SkCommandLineConfigGpu * asConfigGpu() const override
SkCommandLineConfigGpu(const SkString &tag, const skia_private::TArray< SkString > &viaParts, ContextType contextType, bool fakeGLESVer2, uint32_t surfaceFlags, int samples, SkColorType colorType, SkAlphaType alphaType, bool useStencilBuffers, int testPersistentCache, bool testPrecompile, bool useDDLSink, bool slug, bool serializedSlug, bool remoteSlug, bool reducedShaders, SurfType)
SkAlphaType getAlphaType() const
skgpu::ContextType ContextType
sk_gpu_test::GrContextFactory::ContextOverrides ContextOverrides
int getTestPersistentCache() const
uint32_t getSurfaceFlags() const
const SkCommandLineConfigSvg * asConfigSvg() const override
SkCommandLineConfigSvg(const SkString &tag, const skia_private::TArray< SkString > &viaParts, int pageIndex)
sk_sp< SkColorSpace > refColorSpace() const
SkCommandLineConfig(const SkString &tag, const SkString &backend, const skia_private::TArray< SkString > &viaParts)
const SkString & getTag() const
virtual const SkCommandLineConfigSvg * asConfigSvg() const
const SkString & getBackend() const
const skia_private::TArray< SkString > & getViaParts() const
virtual ~SkCommandLineConfig()
virtual const SkCommandLineConfigGpu * asConfigGpu() const
virtual const SkCommandLineConfigGraphite * asConfigGraphite() const