#include <SkTypeface_remote.h>
Definition at line 60 of file SkTypeface_remote.h.
◆ SkTypefaceProxyPrototype() [1/2]
SkTypefaceProxyPrototype::SkTypefaceProxyPrototype |
( |
const SkTypeface & |
typeface | ) |
|
|
explicit |
Definition at line 112 of file SkTypeface_remote.cpp.
113 : fServerTypefaceID{typeface.
uniqueID()}
115 , fStyleValue{typeface.
fontStyle().fValue}
117 , fGlyphMaskNeedsCurrentColor{typeface.glyphMaskNeedsCurrentColor()} {}
SkTypefaceID uniqueID() const
SkFontStyle fontStyle() const
bool isFixedPitch() const
◆ SkTypefaceProxyPrototype() [2/2]
SkTypefaceProxyPrototype::SkTypefaceProxyPrototype |
( |
SkTypefaceID |
typefaceID, |
|
|
int |
glyphCount, |
|
|
int32_t |
styleValue, |
|
|
bool |
isFixedPitch, |
|
|
bool |
glyphMaskNeedsCurrentColor |
|
) |
| |
Definition at line 119 of file SkTypeface_remote.cpp.
122 : fServerTypefaceID {typefaceID}
123 , fGlyphCount{glyphCount}
124 , fStyleValue{styleValue}
125 , fIsFixedPitch{isFixedPitch}
126 , fGlyphMaskNeedsCurrentColor{glyphMaskNeedsCurrentColor} {}
◆ flatten()
void SkTypefaceProxyPrototype::flatten |
( |
SkWriteBuffer & |
buffer | ) |
const |
Definition at line 128 of file SkTypeface_remote.cpp.
128 {
129 buffer.writeUInt(fServerTypefaceID);
130 buffer.writeInt(fGlyphCount);
131 buffer.write32(fStyleValue);
132 buffer.writeBool(fIsFixedPitch);
133 buffer.writeBool(fGlyphMaskNeedsCurrentColor);
134}
static const uint8_t buffer[]
◆ MakeFromBuffer()
Definition at line 96 of file SkTypeface_remote.cpp.
96 {
99 const int glyphCount =
buffer.readInt();
100 const int32_t styleValue =
buffer.read32();
101 const bool isFixedPitch =
buffer.readBool();
102 const bool glyphMaskNeedsCurrentColor =
buffer.readBool();
103
106 typefaceID, glyphCount, styleValue, isFixedPitch, glyphMaskNeedsCurrentColor};
107 }
108
109 return std::nullopt;
110}
◆ serverTypefaceID()
SkTypefaceID SkTypefaceProxyPrototype::serverTypefaceID |
( |
| ) |
const |
|
inline |
◆ SkTypefaceProxy
The documentation for this class was generated from the following files: