Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Static Public Member Functions | List of all members
GrBackendSurfacePriv Class Referencefinal

#include <GrBackendSurfacePriv.h>

Static Public Member Functions

template<typename FormatData >
static GrBackendFormat MakeGrBackendFormat (GrTextureType textureType, GrBackendApi api, const FormatData &data)
 
static const GrBackendFormatDataGetBackendData (const GrBackendFormat &format)
 
template<typename TextureData >
static GrBackendTexture MakeGrBackendTexture (int width, int height, std::string_view label, skgpu::Mipmapped mipped, GrBackendApi backend, GrTextureType texture, const TextureData &data)
 
static const GrBackendTextureDataGetBackendData (const GrBackendTexture &tex)
 
static GrBackendTextureDataGetBackendData (GrBackendTexture *tex)
 
template<typename RenderTargetData >
static GrBackendRenderTarget MakeGrBackendRenderTarget (int width, int height, int sampleCnt, int stencilBits, GrBackendApi backend, bool framebufferOnly, const RenderTargetData &data)
 
static const GrBackendRenderTargetDataGetBackendData (const GrBackendRenderTarget &rt)
 
static GrBackendRenderTargetDataGetBackendData (GrBackendRenderTarget *rt)
 

Detailed Description

Definition at line 106 of file GrBackendSurfacePriv.h.

Member Function Documentation

◆ GetBackendData() [1/5]

static const GrBackendFormatData * GrBackendSurfacePriv::GetBackendData ( const GrBackendFormat format)
inlinestatic

Definition at line 115 of file GrBackendSurfacePriv.h.

115 {
116 return format.fFormatData.get();
117 }
uint32_t uint32_t * format

◆ GetBackendData() [2/5]

static const GrBackendRenderTargetData * GrBackendSurfacePriv::GetBackendData ( const GrBackendRenderTarget rt)
inlinestatic

Definition at line 151 of file GrBackendSurfacePriv.h.

151 {
152 return rt.fRTData.get();
153 }
const Base * get() const
Definition: SkAnySubclass.h:55

◆ GetBackendData() [3/5]

static const GrBackendTextureData * GrBackendSurfacePriv::GetBackendData ( const GrBackendTexture tex)
inlinestatic

Definition at line 130 of file GrBackendSurfacePriv.h.

130 {
131 return tex.fTextureData.get();
132 }

◆ GetBackendData() [4/5]

static GrBackendRenderTargetData * GrBackendSurfacePriv::GetBackendData ( GrBackendRenderTarget rt)
inlinestatic

Definition at line 155 of file GrBackendSurfacePriv.h.

155 {
156 return rt->fRTData.get();
157 }

◆ GetBackendData() [5/5]

static GrBackendTextureData * GrBackendSurfacePriv::GetBackendData ( GrBackendTexture tex)
inlinestatic

Definition at line 134 of file GrBackendSurfacePriv.h.

134 {
135 SkASSERT(tex);
136 return tex->fTextureData.get();
137 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ MakeGrBackendFormat()

template<typename FormatData >
static GrBackendFormat GrBackendSurfacePriv::MakeGrBackendFormat ( GrTextureType  textureType,
GrBackendApi  api,
const FormatData &  data 
)
inlinestatic

Definition at line 109 of file GrBackendSurfacePriv.h.

111 {
112 return GrBackendFormat(textureType, api, data);
113 }
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ MakeGrBackendRenderTarget()

template<typename RenderTargetData >
static GrBackendRenderTarget GrBackendSurfacePriv::MakeGrBackendRenderTarget ( int  width,
int  height,
int  sampleCnt,
int  stencilBits,
GrBackendApi  backend,
bool  framebufferOnly,
const RenderTargetData &  data 
)
inlinestatic

Definition at line 140 of file GrBackendSurfacePriv.h.

146 {
148 width, height, sampleCnt, stencilBits, backend, framebufferOnly, data);
149 }
const char * backend
int32_t height
int32_t width

◆ MakeGrBackendTexture()

template<typename TextureData >
static GrBackendTexture GrBackendSurfacePriv::MakeGrBackendTexture ( int  width,
int  height,
std::string_view  label,
skgpu::Mipmapped  mipped,
GrBackendApi  backend,
GrTextureType  texture,
const TextureData &  data 
)
inlinestatic

Definition at line 120 of file GrBackendSurfacePriv.h.

126 {
127 return GrBackendTexture(width, height, label, mipped, backend, texture, data);
128 }
FlTexture * texture

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