Skia
2D Graphics Library
GrBackendFormat Class Reference

#include <GrBackendSurface.h>

Public Member Functions

 GrBackendFormat ()
 
 GrBackendFormat (const GrBackendFormat &)
 
GrBackendFormatoperator= (const GrBackendFormat &)
 
 ~GrBackendFormat ()
 
bool operator== (const GrBackendFormat &that) const
 
bool operator!= (const GrBackendFormat &that) const
 
GrBackendApi backend () const
 
GrTextureType textureType () const
 
uint32_t channelMask () const
 Gets the channels present in the format as a bitfield of SkColorChannelFlag values. More...
 
GrColorFormatDesc desc () const
 
GrColorType asMockColorType () const
 If the backend API is not Mock these three calls will return kUnknown, kNone or false, respectively. More...
 
SkTextureCompressionType asMockCompressionType () const
 
bool isMockStencilFormat () const
 
GrBackendFormat makeTexture2D () const
 
bool isValid () const
 

Static Public Member Functions

static GrBackendFormat MakeMock (GrColorType colorType, SkTextureCompressionType compression, bool isStencilFormat=false)
 

Friends

class GrBackendSurfacePriv
 
class GrBackendFormatData
 

Constructor & Destructor Documentation

◆ GrBackendFormat() [1/2]

GrBackendFormat::GrBackendFormat ( )

◆ GrBackendFormat() [2/2]

GrBackendFormat::GrBackendFormat ( const GrBackendFormat )

◆ ~GrBackendFormat()

GrBackendFormat::~GrBackendFormat ( )

Member Function Documentation

◆ asMockColorType()

GrColorType GrBackendFormat::asMockColorType ( ) const

If the backend API is not Mock these three calls will return kUnknown, kNone or false, respectively.

Otherwise, only one of the following can be true. The GrColorType is not kUnknown, the compression type is not kNone, or this is a mock stencil format.

◆ asMockCompressionType()

SkTextureCompressionType GrBackendFormat::asMockCompressionType ( ) const

◆ backend()

GrBackendApi GrBackendFormat::backend ( ) const
inline

◆ channelMask()

uint32_t GrBackendFormat::channelMask ( ) const

Gets the channels present in the format as a bitfield of SkColorChannelFlag values.

Luminance channels are reported as kGray_SkColorChannelFlag.

◆ desc()

GrColorFormatDesc GrBackendFormat::desc ( ) const

◆ isMockStencilFormat()

bool GrBackendFormat::isMockStencilFormat ( ) const

◆ isValid()

bool GrBackendFormat::isValid ( ) const
inline

◆ MakeMock()

static GrBackendFormat GrBackendFormat::MakeMock ( GrColorType  colorType,
SkTextureCompressionType  compression,
bool  isStencilFormat = false 
)
static

◆ makeTexture2D()

GrBackendFormat GrBackendFormat::makeTexture2D ( ) const

◆ operator!=()

bool GrBackendFormat::operator!= ( const GrBackendFormat that) const
inline

◆ operator=()

GrBackendFormat& GrBackendFormat::operator= ( const GrBackendFormat )

◆ operator==()

bool GrBackendFormat::operator== ( const GrBackendFormat that) const

◆ textureType()

GrTextureType GrBackendFormat::textureType ( ) const
inline

Friends And Related Function Documentation

◆ GrBackendFormatData

friend class GrBackendFormatData
friend

◆ GrBackendSurfacePriv

friend class GrBackendSurfacePriv
friend

Member Data Documentation

◆ fColorType

GrColorType GrBackendFormat::fColorType

◆ fCompressionType

SkTextureCompressionType GrBackendFormat::fCompressionType

◆ fIsStencilFormat

bool GrBackendFormat::fIsStencilFormat

◆ 

struct { ... } GrBackendFormat::fMock

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