Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
SkTypefacePlayback Class Reference

#include <SkPictureFlat.h>

Public Member Functions

 SkTypefacePlayback ()
 
 ~SkTypefacePlayback ()=default
 
void setCount (size_t count)
 
size_t count () const
 
sk_sp< SkTypeface > & operator[] (size_t index)
 
void setupBuffer (SkReadBuffer &buffer) const
 

Protected Attributes

size_t fCount
 
std::unique_ptr< sk_sp< SkTypeface >[]> fArray
 

Detailed Description

Definition at line 190 of file SkPictureFlat.h.

Constructor & Destructor Documentation

◆ SkTypefacePlayback()

SkTypefacePlayback::SkTypefacePlayback ( )
inline

Definition at line 192 of file SkPictureFlat.h.

192: fCount(0), fArray(nullptr) {}
std::unique_ptr< sk_sp< SkTypeface >[]> fArray

◆ ~SkTypefacePlayback()

SkTypefacePlayback::~SkTypefacePlayback ( )
default

Member Function Documentation

◆ count()

size_t SkTypefacePlayback::count ( ) const
inline

Definition at line 197 of file SkPictureFlat.h.

197{ return fCount; }

◆ operator[]()

sk_sp< SkTypeface > & SkTypefacePlayback::operator[] ( size_t  index)
inline

Definition at line 199 of file SkPictureFlat.h.

199 {
200 SkASSERT(index < fCount);
201 return fArray[index];
202 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ setCount()

void SkTypefacePlayback::setCount ( size_t  count)

Definition at line 16 of file SkPictureFlat.cpp.

16 {
17 fCount = count;
18 fArray = std::make_unique<sk_sp<SkTypeface>[]>(count);
19}
size_t count() const

◆ setupBuffer()

void SkTypefacePlayback::setupBuffer ( SkReadBuffer buffer) const
inline

Definition at line 204 of file SkPictureFlat.h.

204 {
205 buffer.setTypefaceArray(fArray.get(), fCount);
206 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

Member Data Documentation

◆ fArray

std::unique_ptr<sk_sp<SkTypeface>[]> SkTypefacePlayback::fArray
protected

Definition at line 210 of file SkPictureFlat.h.

◆ fCount

size_t SkTypefacePlayback::fCount
protected

Definition at line 209 of file SkPictureFlat.h.


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