Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
GrD3DTypes.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/gpu/GpuTypes.h"
#include <d3d12.h>
#include <dxgi1_4.h>

Go to the source code of this file.

Classes

class  gr_cp< T >
 
class  GrD3DAlloc
 
class  GrD3DMemoryAllocator
 
struct  GrD3DTextureResourceInfo
 
struct  GrD3DFenceInfo
 
struct  GrD3DSurfaceInfo
 

Functions

template<typename T >
static TGrSafeComAddRef (T *obj)
 
template<typename T >
static void GrSafeComRelease (T *obj)
 
template<typename T >
bool operator== (const gr_cp< T > &a, const gr_cp< T > &b)
 
template<typename T >
bool operator!= (const gr_cp< T > &a, const gr_cp< T > &b)
 

Function Documentation

◆ GrSafeComAddRef()

template<typename T >
static T * GrSafeComAddRef ( T obj)
inlinestatic

Check if the argument is non-null, and if so, call obj->AddRef() and return obj.

Definition at line 33 of file GrD3DTypes.h.

33 {
34 if (obj) {
35 obj->AddRef();
36 }
37 return obj;
38}

◆ GrSafeComRelease()

template<typename T >
static void GrSafeComRelease ( T obj)
inlinestatic

Check if the argument is non-null, and if so, call obj->Release()

Definition at line 42 of file GrD3DTypes.h.

42 {
43 if (obj) {
44 obj->Release();
45 }
46}

◆ operator!=()

template<typename T >
bool operator!= ( const gr_cp< T > &  a,
const gr_cp< T > &  b 
)
inline

Definition at line 152 of file GrD3DTypes.h.

153 {
154 return a.get() != b.get();
155}
static bool b
struct MyStruct a[10]

◆ operator==()

template<typename T >
bool operator== ( const gr_cp< T > &  a,
const gr_cp< T > &  b 
)
inline

Definition at line 147 of file GrD3DTypes.h.

148 {
149 return a.get() == b.get();
150}