Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SkFontRequestCache::Request Struct Reference
Inheritance diagram for SkFontRequestCache::Request:
SkResourceCache::Key

Public Member Functions

void operator delete (void *storage)
 
- Public Member Functions inherited from SkResourceCache::Key
void init (void *nameSpace, uint64_t sharedID, size_t dataSize)
 
size_t size () const
 
void * getNamespace () const
 
uint64_t getSharedID () const
 
uint32_t hash () const
 
bool operator== (const Key &other) const
 

Static Public Member Functions

static RequestCreate (const char *name, const SkFontStyle &style)
 

Detailed Description

Definition at line 60 of file SkFontMgr_FontConfigInterface.cpp.

Member Function Documentation

◆ Create()

static Request * SkFontRequestCache::Request::Create ( const char *  name,
const SkFontStyle style 
)
inlinestatic

Definition at line 82 of file SkFontMgr_FontConfigInterface.cpp.

82 {
83 size_t nameLen = name ? strlen(name) : 0;
84 size_t contentLen = SkAlign4(nameLen);
85 char* storage = new char[sizeof(Request) + contentLen];
86 return new (storage) Request(name, nameLen, style);
87 }
static constexpr T SkAlign4(T x)
Definition SkAlign.h:16
const char * name
Definition fuchsia.cc:50

◆ operator delete()

void SkFontRequestCache::Request::operator delete ( void *  storage)
inline

Definition at line 88 of file SkFontMgr_FontConfigInterface.cpp.

88 {
89 delete[] reinterpret_cast<char*>(storage);
90 }

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