Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/core/
DSkFontDescriptor.cpp113 result->fFontData = skstd::make_unique<SkFontData>( in Deserialize()
126 if (fFontData.get()) { in serialize()
127 if (fFontData->getIndex()) { in serialize()
128 write_uint(stream, fFontData->getIndex(), kFontIndex); in serialize()
130 if (fFontData->getAxisCount()) { in serialize()
131 write_uint(stream, fFontData->getAxisCount(), kFontAxes); in serialize()
132 for (int i = 0; i < fFontData->getAxisCount(); ++i) { in serialize()
133 stream->write32(fFontData->getAxis()[i]); in serialize()
140 if (fFontData.get() && fFontData->hasStream()) { in serialize()
141 std::unique_ptr<SkStreamAsset> fontStream = fFontData->detachStream(); in serialize()
DSkFontDescriptor.h66 bool hasFontData() const { return fFontData.get() != nullptr; } in hasFontData()
67 std::unique_ptr<SkFontData> detachFontData() { return std::move(fFontData); } in detachFontData()
73 void setFontData(std::unique_ptr<SkFontData> data) { fFontData = std::move(data); } in setFontData()
79 std::unique_ptr<SkFontData> fFontData; variable
/third_party/skia/src/ports/
DSkFontConfigTypeface.h23 std::unique_ptr<SkFontData> fFontData; variable
64 , fFontData(nullptr) {} in SkTypeface_FCI()
70 , fFontData(std::move(data)) in SkTypeface_FCI()
72 SkASSERT(fFontData); in SkTypeface_FCI()
73 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 std::make_unique<SkFontData>(*fFontData); in onMakeFontData()
50 *isLocalStream = SkToBool(fFontData); in onGetFontDescriptor()
/third_party/flutter/skia/src/ports/
DSkFontConfigTypeface.h23 std::unique_ptr<SkFontData> fFontData; variable
64 , fFontData(nullptr) {} in SkTypeface_FCI()
70 , fFontData(std::move(data)) in SkTypeface_FCI()
72 SkASSERT(fFontData); in SkTypeface_FCI()
73 fIdentity.fTTCIndex = fFontData->getIndex(); in SkTypeface_FCI()
DSkFontMgr_FontConfigInterface.cpp25 if (fFontData) { in onOpenStream()
26 SkStreamAsset* stream = fFontData->getStream(); in onOpenStream()
37 if (fFontData) { in onMakeFontData()
38 return skstd::make_unique<SkFontData>(*fFontData); in onMakeFontData()
51 *isLocalStream = SkToBool(fFontData); in onGetFontDescriptor()
/third_party/flutter/skia/modules/skottie/gm/
DSkottieGM.cpp30 FakeWebFontProvider() : fFontData(GetResourceAsData(kWebFontResource)) {} in FakeWebFontProvider()
33 return fFontData; in loadFont()
37 sk_sp<SkData> fFontData; member in __anone17493d30111::FakeWebFontProvider