Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
GrMtlBackendSurface.mm File Reference
#include "include/gpu/ganesh/mtl/GrMtlBackendSurface.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/ganesh/mtl/GrMtlTypes.h"
#include "include/private/base/SkAssert.h"
#include "src/gpu/ganesh/GrBackendSurfacePriv.h"
#include "src/gpu/ganesh/mtl/GrMtlCppUtil.h"
#include "src/gpu/ganesh/mtl/GrMtlUtil.h"
#include "src/gpu/mtl/MtlUtilsPriv.h"

Go to the source code of this file.

Classes

class  GrMtlBackendFormatData
 
class  GrMtlBackendTextureData
 
class  GrMtlBackendRenderTargetData
 

Namespaces

namespace  GrBackendFormats
 
namespace  GrBackendTextures
 
namespace  GrBackendRenderTargets
 

Functions

static const GrMtlBackendFormatDataget_and_cast_data (const GrBackendFormat &format)
 
SK_API GrBackendFormat GrBackendFormats::MakeMtl (GrMTLPixelFormat format)
 
SK_API GrMTLPixelFormat GrBackendFormats::AsMtlFormat (const GrBackendFormat &)
 
static const GrMtlBackendTextureDataget_and_cast_data (const GrBackendTexture &texture)
 
SK_API GrBackendTexture GrBackendTextures::MakeMtl (int width, int height, skgpu::Mipmapped, const GrMtlTextureInfo &mtlInfo, std::string_view label={})
 
SK_API bool GrBackendTextures::GetMtlTextureInfo (const GrBackendTexture &, GrMtlTextureInfo *)
 
static const GrMtlBackendRenderTargetDataget_and_cast_data (const GrBackendRenderTarget &rt)
 
SK_API GrBackendRenderTarget GrBackendRenderTargets::MakeMtl (int width, int height, const GrMtlTextureInfo &mtlInfo)
 
SK_API bool GrBackendRenderTargets::GetMtlTextureInfo (const GrBackendRenderTarget &, GrMtlTextureInfo *)
 

Function Documentation

◆ get_and_cast_data() [1/3]

static const GrMtlBackendFormatData * get_and_cast_data ( const GrBackendFormat format)
static

Definition at line 67 of file GrMtlBackendSurface.mm.

67 {
69 SkASSERT(!data || data->type() == GrBackendApi::kMetal);
70 return static_cast<const GrMtlBackendFormatData*>(data);
71}
#define SkASSERT(cond)
Definition SkAssert.h:116
static const GrBackendFormatData * GetBackendData(const GrBackendFormat &format)
uint32_t uint32_t * format
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switches.h:41

◆ get_and_cast_data() [2/3]

static const GrMtlBackendRenderTargetData * get_and_cast_data ( const GrBackendRenderTarget rt)
static

Definition at line 194 of file GrMtlBackendSurface.mm.

194 {
196 SkASSERT(!data || data->type() == GrBackendApi::kMetal);
197 return static_cast<const GrMtlBackendRenderTargetData*>(data);
198}

◆ get_and_cast_data() [3/3]

static const GrMtlBackendTextureData * get_and_cast_data ( const GrBackendTexture texture)
static

Definition at line 128 of file GrMtlBackendSurface.mm.

128 {
130 SkASSERT(!data || data->type() == GrBackendApi::kMetal);
131 return static_cast<const GrMtlBackendTextureData*>(data);
132}
FlTexture * texture