Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkFontDescriptor.cpp110 result->fFontData = skstd::make_unique<SkFontData>( in Deserialize()
127 if (fFontData.get()) { in serialize()
128 if (fFontData->getIndex()) { in serialize()
129 write_uint(stream, fFontData->getIndex(), kFontIndex); in serialize()
131 if (fFontData->getAxisCount()) { in serialize()
132 write_uint(stream, fFontData->getAxisCount(), kFontAxes); in serialize()
133 for (int i = 0; i < fFontData->getAxisCount(); ++i) { in serialize()
134 stream->writePackedUInt(fFontData->getAxis()[i]); in serialize()
141 if (fFontData.get() && fFontData->hasStream()) { in serialize()
142 std::unique_ptr<SkStreamAsset> fontStream = fFontData->detachStream(); in serialize()
DSkFontDescriptor.h65 bool hasFontData() const { return fFontData.get() != nullptr; } in hasFontData()
66 std::unique_ptr<SkFontData> detachFontData() { return std::move(fFontData); } in detachFontData()
72 void setFontData(std::unique_ptr<SkFontData> data) { fFontData = std::move(data); } in setFontData()
78 std::unique_ptr<SkFontData> fFontData; variable
/external/skia/src/ports/
DSkFontConfigTypeface.h20 std::unique_ptr<SkFontData> fFontData; variable
50 , fFontData(nullptr) {} in SkTypeface_FCI()
56 , fFontData(std::move(data)) in SkTypeface_FCI()
58 SkASSERT(fFontData); in SkTypeface_FCI()
59 fIdentity.fTTCIndex = fFontData->getIndex(); in SkTypeface_FCI()
DSkFontMgr_FontConfigInterface.cpp24 if (fFontData) { in onOpenStream()
25 SkStreamAsset* stream = fFontData->getStream(); in onOpenStream()
36 if (fFontData) { in onMakeFontData()
37 return skstd::make_unique<SkFontData>(*fFontData); in onMakeFontData()
50 *isLocalStream = SkToBool(fFontData); in onGetFontDescriptor()