Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GrMockRenderTargetInfo Struct Reference

#include <GrMockTypes.h>

Public Member Functions

 GrMockRenderTargetInfo ()
 
 GrMockRenderTargetInfo (GrColorType colorType, int id, skgpu::Protected isProtected=skgpu::Protected::kNo)
 
bool operator== (const GrMockRenderTargetInfo &that) const
 
GrBackendFormat getBackendFormat () const
 
GrColorType colorType () const
 
skgpu::Protected getProtected () const
 
bool isProtected () const
 

Detailed Description

Definition at line 68 of file GrMockTypes.h.

Constructor & Destructor Documentation

◆ GrMockRenderTargetInfo() [1/2]

GrMockRenderTargetInfo::GrMockRenderTargetInfo ( )
inline

Definition at line 69 of file GrMockTypes.h.

70 : fColorType(GrColorType::kUnknown)
71 , fID(0) {}

◆ GrMockRenderTargetInfo() [2/2]

GrMockRenderTargetInfo::GrMockRenderTargetInfo ( GrColorType  colorType,
int  id,
skgpu::Protected  isProtected = skgpu::Protected::kNo 
)
inline

Definition at line 73 of file GrMockTypes.h.

76 : fColorType(colorType)
77 , fID(id)
78 , fProtected(isProtected) {
79 SkASSERT(fID);
80 }
#define SkASSERT(cond)
Definition SkAssert.h:116
bool isProtected() const
Definition GrMockTypes.h:93
GrColorType colorType() const
Definition GrMockTypes.h:90

Member Function Documentation

◆ colorType()

GrColorType GrMockRenderTargetInfo::colorType ( ) const
inline

Definition at line 90 of file GrMockTypes.h.

90{ return fColorType; }

◆ getBackendFormat()

GrBackendFormat GrMockRenderTargetInfo::getBackendFormat ( ) const

Definition at line 15 of file GrMockTypes.cpp.

15 {
17}
static GrBackendFormat MakeMock(GrColorType colorType, SkTextureCompressionType compression, bool isStencilFormat=false)

◆ getProtected()

skgpu::Protected GrMockRenderTargetInfo::getProtected ( ) const
inline

Definition at line 92 of file GrMockTypes.h.

92{ return fProtected; }

◆ isProtected()

bool GrMockRenderTargetInfo::isProtected ( ) const
inline

Definition at line 93 of file GrMockTypes.h.

93{ return fProtected == skgpu::Protected::kYes; }

◆ operator==()

bool GrMockRenderTargetInfo::operator== ( const GrMockRenderTargetInfo that) const
inline

Definition at line 82 of file GrMockTypes.h.

82 {
83 return fColorType == that.fColorType &&
84 fID == that.fID &&
85 fProtected == that.fProtected;
86 }

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