Home
last modified time | relevance | path

Searched refs:fFontData (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/core/
DSkFontDescriptor.cpp101 result->fFontData.reset(new SkFontData(new SkMemoryStream(data), in Deserialize()
117 if (fFontData.get()) { in serialize()
118 if (fFontData->getIndex()) { in serialize()
119 write_uint(stream, fFontData->getIndex(), kFontIndex); in serialize()
121 if (fFontData->getAxisCount()) { in serialize()
122 write_uint(stream, fFontData->getAxisCount(), kFontAxes); in serialize()
123 for (int i = 0; i < fFontData->getAxisCount(); ++i) { in serialize()
124 stream->writePackedUInt(fFontData->getAxis()[i]); in serialize()
131 if (fFontData.get() && fFontData->hasStream()) { in serialize()
132 SkAutoTDelete<SkStreamAsset> fontData(fFontData->detachStream()); in serialize()
DSkFontDescriptor.h64 bool hasFontData() const { return fFontData.get() != nullptr; } in hasFontData()
65 SkFontData* detachFontData() { return fFontData.detach(); } in detachFontData()
72 void setFontData(SkFontData* data) { fFontData.reset(data); } in setFontData()
78 SkAutoTDelete<SkFontData> fFontData; variable