Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 105 of file GrBackendSurfacePriv.h.

Member Function Documentation

◆ GetBackendData() [1/5]

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

Definition at line 114 of file GrBackendSurfacePriv.h.

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

◆ GetBackendData() [2/5]

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

Definition at line 150 of file GrBackendSurfacePriv.h.

150 {
151 return rt.fRTData.get();
152 }
const Base * get() const

◆ GetBackendData() [3/5]

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

Definition at line 129 of file GrBackendSurfacePriv.h.

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

◆ GetBackendData() [4/5]

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

Definition at line 154 of file GrBackendSurfacePriv.h.

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

◆ GetBackendData() [5/5]

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

Definition at line 133 of file GrBackendSurfacePriv.h.

133 {
134 SkASSERT(tex);
135 return tex->fTextureData.get();
136 }
#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 108 of file GrBackendSurfacePriv.h.

110 {
111 return GrBackendFormat(textureType, api, data);
112 }

◆ 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 139 of file GrBackendSurfacePriv.h.

145 {
147 width, height, sampleCnt, stencilBits, backend, framebufferOnly, data);
148 }
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 119 of file GrBackendSurfacePriv.h.

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

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