Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrD3DTextureResourceSpecHolder Struct Reference

#include <GrD3DTypesMinimal.h>

Public Member Functions

 GrD3DTextureResourceSpecHolder (const GrD3DSurfaceInfo &)
 
void cleanup ()
 
GrD3DSurfaceInfo getSurfaceInfo (uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected) const
 

Detailed Description

Definition at line 60 of file GrD3DTypesMinimal.h.

Constructor & Destructor Documentation

◆ GrD3DTextureResourceSpecHolder()

GrD3DTextureResourceSpecHolder::GrD3DTextureResourceSpecHolder ( const GrD3DSurfaceInfo info)

Definition at line 70 of file GrD3DTypesMinimal.cpp.

71 : fSpec(new GrD3DTextureResourceSpec(info)) {}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213

Member Function Documentation

◆ cleanup()

void GrD3DTextureResourceSpecHolder::cleanup ( )

Definition at line 80 of file GrD3DTypesMinimal.cpp.

80 {
81 delete fSpec;
82 fSpec = nullptr;
83}

◆ getSurfaceInfo()

GrD3DSurfaceInfo GrD3DTextureResourceSpecHolder::getSurfaceInfo ( uint32_t  sampleCount,
uint32_t  levelCount,
skgpu::Protected  isProtected 
) const

Definition at line 73 of file GrD3DTypesMinimal.cpp.

75 {
76 SkASSERT(fSpec);
77 return GrD3DTextureResourceSpecToSurfaceInfo(*fSpec, sampleCount, levelCount, isProtected);
78}
GrD3DSurfaceInfo GrD3DTextureResourceSpecToSurfaceInfo(const GrD3DTextureResourceSpec &d3dSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
#define SkASSERT(cond)
Definition: SkAssert.h:116

The documentation for this struct was generated from the following files: