Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
SkCommandLineConfigGpu Class Reference

#include <CommonFlagsConfig.h>

Inheritance diagram for SkCommandLineConfigGpu:
SkCommandLineConfig

Public Types

enum class  SurfType { kDefault , kBackendTexture , kBackendRenderTarget }
 
typedef skgpu::ContextType ContextType
 
typedef sk_gpu_test::GrContextFactory::ContextOverrides ContextOverrides
 

Public Member Functions

 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)
 
const SkCommandLineConfigGpuasConfigGpu () const override
 
ContextType getContextType () const
 
ContextOverrides getContextOverrides () const
 
uint32_t getSurfaceFlags () const
 
int getSamples () const
 
SkColorType getColorType () const
 
SkAlphaType getAlphaType () const
 
int getTestPersistentCache () const
 
bool getTestPrecompile () const
 
bool getUseDDLSink () const
 
bool getSlug () const
 
bool getSerializedSlug () const
 
bool getRemoteSlug () const
 
bool getReducedShaders () const
 
SurfType getSurfType () const
 
- Public Member Functions inherited from SkCommandLineConfig
 SkCommandLineConfig (const SkString &tag, const SkString &backend, const skia_private::TArray< SkString > &viaParts)
 
virtual ~SkCommandLineConfig ()
 
virtual const SkCommandLineConfigGraphite * asConfigGraphite () const
 
virtual const SkCommandLineConfigSvgasConfigSvg () const
 
const SkStringgetTag () const
 
const SkStringgetBackend () const
 
sk_sp< SkColorSpacerefColorSpace () const
 
const skia_private::TArray< SkString > & getViaParts () const
 

Detailed Description

Definition at line 53 of file CommonFlagsConfig.h.

Member Typedef Documentation

◆ ContextOverrides

Definition at line 57 of file CommonFlagsConfig.h.

◆ ContextType

Definition at line 56 of file CommonFlagsConfig.h.

Member Enumeration Documentation

◆ SurfType

Enumerator
kDefault 
kBackendTexture 
kBackendRenderTarget 

Definition at line 55 of file CommonFlagsConfig.h.

Constructor & Destructor Documentation

◆ SkCommandLineConfigGpu()

SkCommandLineConfigGpu::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  surfType 
)

Definition at line 569 of file CommonFlagsConfig.cpp.

586 : SkCommandLineConfig(tag, SkString("gpu"), viaParts)
587 , fContextType(contextType)
588 , fContextOverrides(ContextOverrides::kNone)
589 , fSurfaceFlags(surfaceFlags)
590 , fSamples(samples)
591 , fColorType(colorType)
592 , fAlphaType(alphaType)
593 , fTestPersistentCache(testPersistentCache)
594 , fTestPrecompile(testPrecompile)
595 , fUseDDLSink(useDDLSink)
596 , fSlug(slug)
597 , fSerializeSlug(serializeSlug)
598 , fRemoteSlug(remoteSlug)
599 , fReducedShaders(reducedShaders)
600 , fSurfType(surfType) {
601 if (!useStencilBuffers) {
602 fContextOverrides |= ContextOverrides::kAvoidStencilBuffers;
603 }
604 if (fakeGLESVersion2) {
605 fContextOverrides |= ContextOverrides::kFakeGLESVersionAs2;
606 }
607 if (reducedShaders) {
608 fContextOverrides |= ContextOverrides::kReducedShaders;
609 }
610}
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)

Member Function Documentation

◆ asConfigGpu()

const SkCommandLineConfigGpu * SkCommandLineConfigGpu::asConfigGpu ( ) const
inlineoverridevirtual

Reimplemented from SkCommandLineConfig.

Definition at line 77 of file CommonFlagsConfig.h.

77{ return this; }

◆ getAlphaType()

SkAlphaType SkCommandLineConfigGpu::getAlphaType ( ) const
inline

Definition at line 83 of file CommonFlagsConfig.h.

83{ return fAlphaType; }

◆ getColorType()

SkColorType SkCommandLineConfigGpu::getColorType ( ) const
inline

Definition at line 82 of file CommonFlagsConfig.h.

82{ return fColorType; }

◆ getContextOverrides()

ContextOverrides SkCommandLineConfigGpu::getContextOverrides ( ) const
inline

Definition at line 79 of file CommonFlagsConfig.h.

79{ return fContextOverrides; }

◆ getContextType()

ContextType SkCommandLineConfigGpu::getContextType ( ) const
inline

Definition at line 78 of file CommonFlagsConfig.h.

78{ return fContextType; }

◆ getReducedShaders()

bool SkCommandLineConfigGpu::getReducedShaders ( ) const
inline

Definition at line 90 of file CommonFlagsConfig.h.

90{ return fReducedShaders; }

◆ getRemoteSlug()

bool SkCommandLineConfigGpu::getRemoteSlug ( ) const
inline

Definition at line 89 of file CommonFlagsConfig.h.

89{ return fRemoteSlug; }

◆ getSamples()

int SkCommandLineConfigGpu::getSamples ( ) const
inline

Definition at line 81 of file CommonFlagsConfig.h.

81{ return fSamples; }

◆ getSerializedSlug()

bool SkCommandLineConfigGpu::getSerializedSlug ( ) const
inline

Definition at line 88 of file CommonFlagsConfig.h.

88{ return fSerializeSlug; }

◆ getSlug()

bool SkCommandLineConfigGpu::getSlug ( ) const
inline

Definition at line 87 of file CommonFlagsConfig.h.

87{ return fSlug; }

◆ getSurfaceFlags()

uint32_t SkCommandLineConfigGpu::getSurfaceFlags ( ) const
inline

Definition at line 80 of file CommonFlagsConfig.h.

80{ return fSurfaceFlags; }

◆ getSurfType()

SurfType SkCommandLineConfigGpu::getSurfType ( ) const
inline

Definition at line 91 of file CommonFlagsConfig.h.

91{ return fSurfType; }

◆ getTestPersistentCache()

int SkCommandLineConfigGpu::getTestPersistentCache ( ) const
inline

Definition at line 84 of file CommonFlagsConfig.h.

84{ return fTestPersistentCache; }

◆ getTestPrecompile()

bool SkCommandLineConfigGpu::getTestPrecompile ( ) const
inline

Definition at line 85 of file CommonFlagsConfig.h.

85{ return fTestPrecompile; }

◆ getUseDDLSink()

bool SkCommandLineConfigGpu::getUseDDLSink ( ) const
inline

Definition at line 86 of file CommonFlagsConfig.h.

86{ return fUseDDLSink; }

The documentation for this class was generated from the following files: