Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
GrGpuResource::UniqueID Class Reference

#include <GrGpuResource.h>

Public Member Functions

 UniqueID ()=default
 
 UniqueID (uint32_t id)
 
uint32_t asUInt () const
 
bool operator== (const UniqueID &other) const
 
bool operator!= (const UniqueID &other) const
 
void makeInvalid ()
 
bool isInvalid () const
 

Protected Attributes

uint32_t fID = SK_InvalidUniqueID
 

Detailed Description

Definition at line 164 of file GrGpuResource.h.

Constructor & Destructor Documentation

◆ UniqueID() [1/2]

GrGpuResource::UniqueID::UniqueID ( )
default

◆ UniqueID() [2/2]

GrGpuResource::UniqueID::UniqueID ( uint32_t  id)
inlineexplicit

Definition at line 168 of file GrGpuResource.h.

168: fID(id) {}

Member Function Documentation

◆ asUInt()

uint32_t GrGpuResource::UniqueID::asUInt ( ) const
inline

Definition at line 170 of file GrGpuResource.h.

170{ return fID; }

◆ isInvalid()

bool GrGpuResource::UniqueID::isInvalid ( ) const
inline

Definition at line 176 of file GrGpuResource.h.

176{ return fID == SK_InvalidUniqueID; }
static constexpr uint32_t SK_InvalidUniqueID
Definition: SkTypes.h:196

◆ makeInvalid()

void GrGpuResource::UniqueID::makeInvalid ( )
inline

Definition at line 175 of file GrGpuResource.h.

◆ operator!=()

bool GrGpuResource::UniqueID::operator!= ( const UniqueID other) const
inline

Definition at line 173 of file GrGpuResource.h.

173{ return !(*this == other); }

◆ operator==()

bool GrGpuResource::UniqueID::operator== ( const UniqueID other) const
inline

Definition at line 172 of file GrGpuResource.h.

172{ return fID == other.fID; }

Member Data Documentation

◆ fID

uint32_t GrGpuResource::UniqueID::fID = SK_InvalidUniqueID
protected

Definition at line 179 of file GrGpuResource.h.


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