Skia
2D Graphics Library
GrBackendTexture Class Reference

#include <GrBackendSurface.h>

Public Member Functions

 GrBackendTexture ()
 
 GrBackendTexture (int width, int height, skgpu::Mipmapped, const GrMockTextureInfo &mockInfo, std::string_view label={})
 
 GrBackendTexture (const GrBackendTexture &that)
 
 ~GrBackendTexture ()
 
GrBackendTextureoperator= (const GrBackendTexture &that)
 
SkISize dimensions () const
 
int width () const
 
int height () const
 
std::string_view getLabel () const
 
skgpu::Mipmapped mipmapped () const
 
bool hasMipmaps () const
 
bool hasMipMaps () const
 deprecated alias of hasMipmaps(). More...
 
GrBackendApi backend () const
 
GrTextureType textureType () const
 
GrBackendFormat getBackendFormat () const
 
bool getMockTextureInfo (GrMockTextureInfo *) const
 
void setMutableState (const skgpu::MutableTextureState &)
 
bool isProtected () const
 
bool isValid () const
 
bool isSameTexture (const GrBackendTexture &)
 

Friends

class GrBackendSurfacePriv
 
class GrBackendTextureData
 
class GrVkGpu
 

Constructor & Destructor Documentation

◆ GrBackendTexture() [1/3]

GrBackendTexture::GrBackendTexture ( )

◆ GrBackendTexture() [2/3]

GrBackendTexture::GrBackendTexture ( int  width,
int  height,
skgpu::Mipmapped  ,
const GrMockTextureInfo &  mockInfo,
std::string_view  label = {} 
)

◆ GrBackendTexture() [3/3]

GrBackendTexture::GrBackendTexture ( const GrBackendTexture that)

◆ ~GrBackendTexture()

GrBackendTexture::~GrBackendTexture ( )

Member Function Documentation

◆ backend()

GrBackendApi GrBackendTexture::backend ( ) const
inline

◆ dimensions()

SkISize GrBackendTexture::dimensions ( ) const
inline

◆ getBackendFormat()

GrBackendFormat GrBackendTexture::getBackendFormat ( ) const

◆ getLabel()

std::string_view GrBackendTexture::getLabel ( ) const
inline

◆ getMockTextureInfo()

bool GrBackendTexture::getMockTextureInfo ( GrMockTextureInfo *  ) const

◆ hasMipmaps()

bool GrBackendTexture::hasMipmaps ( ) const
inline

◆ hasMipMaps()

bool GrBackendTexture::hasMipMaps ( ) const
inline

deprecated alias of hasMipmaps().

◆ height()

int GrBackendTexture::height ( ) const
inline

◆ isProtected()

bool GrBackendTexture::isProtected ( ) const

◆ isSameTexture()

bool GrBackendTexture::isSameTexture ( const GrBackendTexture )

◆ isValid()

bool GrBackendTexture::isValid ( ) const
inline

◆ mipmapped()

skgpu::Mipmapped GrBackendTexture::mipmapped ( ) const
inline

◆ operator=()

GrBackendTexture& GrBackendTexture::operator= ( const GrBackendTexture that)

◆ setMutableState()

void GrBackendTexture::setMutableState ( const skgpu::MutableTextureState )

◆ textureType()

GrTextureType GrBackendTexture::textureType ( ) const
inline

◆ width()

int GrBackendTexture::width ( ) const
inline

Friends And Related Function Documentation

◆ GrBackendSurfacePriv

friend class GrBackendSurfacePriv
friend

◆ GrBackendTextureData

friend class GrBackendTextureData
friend

◆ GrVkGpu

friend class GrVkGpu
friend

Member Data Documentation

◆ fMockInfo

GrMockTextureInfo GrBackendTexture::fMockInfo

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