Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
skgpu::graphite::UniquePaintParamsID Class Reference

#include <UniquePaintParamsID.h>

Public Member Functions

 UniquePaintParamsID (uint32_t id)
 
 UniquePaintParamsID ()
 
bool operator== (const UniquePaintParamsID &that) const
 
bool operator!= (const UniquePaintParamsID &that) const
 
bool isValid () const
 
uint32_t asUInt () const
 

Static Public Member Functions

static UniquePaintParamsID InvalidID ()
 

Detailed Description

Definition at line 17 of file UniquePaintParamsID.h.

Constructor & Destructor Documentation

◆ UniquePaintParamsID() [1/2]

skgpu::graphite::UniquePaintParamsID::UniquePaintParamsID ( uint32_t  id)
inlineexplicit

Definition at line 19 of file UniquePaintParamsID.h.

19 : fID(id) {
21 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static constexpr uint32_t SK_InvalidUniqueID
Definition: SkTypes.h:196

◆ UniquePaintParamsID() [2/2]

skgpu::graphite::UniquePaintParamsID::UniquePaintParamsID ( )
inline

Definition at line 25 of file UniquePaintParamsID.h.

25: fID(SK_InvalidUniqueID) {}

Member Function Documentation

◆ asUInt()

uint32_t skgpu::graphite::UniquePaintParamsID::asUInt ( ) const
inline

Definition at line 31 of file UniquePaintParamsID.h.

31{ return fID; }

◆ InvalidID()

static UniquePaintParamsID skgpu::graphite::UniquePaintParamsID::InvalidID ( )
inlinestatic

Definition at line 23 of file UniquePaintParamsID.h.

◆ isValid()

bool skgpu::graphite::UniquePaintParamsID::isValid ( ) const
inline

Definition at line 30 of file UniquePaintParamsID.h.

30{ return fID != SK_InvalidUniqueID; }

◆ operator!=()

bool skgpu::graphite::UniquePaintParamsID::operator!= ( const UniquePaintParamsID that) const
inline

Definition at line 28 of file UniquePaintParamsID.h.

28{ return !(*this == that); }

◆ operator==()

bool skgpu::graphite::UniquePaintParamsID::operator== ( const UniquePaintParamsID that) const
inline

Definition at line 27 of file UniquePaintParamsID.h.

27{ return fID == that.fID; }

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