38 SkDebugf(
"GlyphCacheMiss generateMetrics looking for glyph: %x\n generateMetrics: %s\n",
43 SkStrikeClient::CacheMissType::kGlyphMetrics,
fRec.
fTextSize);
78 SkStrikeClient::CacheMissType::kGlyphDrawable,
fRec.
fTextSize);
95std::optional<SkTypefaceProxyPrototype>
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();
106 typefaceID, glyphCount, styleValue, isFixedPitch, glyphMaskNeedsCurrentColor};
113 : fServerTypefaceID{typeface.uniqueID()}
114 , fGlyphCount{typeface.countGlyphs()}
115 , fStyleValue{typeface.fontStyle().fValue}
116 , fIsFixedPitch{typeface.isFixedPitch()}
117 , fGlyphMaskNeedsCurrentColor{typeface.glyphMaskNeedsCurrentColor()} {}
120 int32_t styleValue,
bool isFixedPitch,
121 bool glyphMaskNeedsCurrentColor)
122 : fServerTypefaceID {typefaceID}
123 , fGlyphCount{glyphCount}
124 , fStyleValue{styleValue}
125 , fIsFixedPitch{isFixedPitch}
126 , fGlyphMaskNeedsCurrentColor{glyphMaskNeedsCurrentColor} {}
129 buffer.writeUInt(fServerTypefaceID);
130 buffer.writeInt(fGlyphCount);
131 buffer.write32(fStyleValue);
132 buffer.writeBool(fIsFixedPitch);
133 buffer.writeBool(fGlyphMaskNeedsCurrentColor);
140 :
SkTypeface{prototype.style(), prototype.fIsFixedPitch}
141 , fTypefaceID{prototype.fServerTypefaceID}
142 , fGlyphCount{prototype.fGlyphCount}
143 , fIsLogging{isLogging}
144 , fGlyphMaskNeedsCurrentColor{prototype.fGlyphMaskNeedsCurrentColor}
151 bool glyphMaskNeedsCurrentColor,
155 , fTypefaceID{typefaceID}
156 , fGlyphCount{glyphCount}
157 , fIsLogging{isLogging}
158 , fGlyphMaskNeedsCurrentColor(glyphMaskNeedsCurrentColor)
sk_bzero(glyphs, sizeof(glyphs))
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define TRACE_STR_COPY(str)
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
SkMask::Format maskFormat() const
SkPackedGlyphID getPackedID() const
SkScalerContextProxy(sk_sp< SkTypeface > tf, const SkScalerContextEffects &effects, const SkDescriptor *desc, sk_sp< SkStrikeClient::DiscardableHandleManager > manager)
void generateFontMetrics(SkFontMetrics *metrics) override
sk_sp< SkDrawable > generateDrawable(const SkGlyph &) override
bool generatePath(const SkGlyph &glyph, SkPath *path) override
SkTypefaceProxy * getProxyTypeface() const
void generateImage(const SkGlyph &, void *) override
GlyphMetrics generateMetrics(const SkGlyph &, SkArenaAlloc *) override
SkTypeface * getTypeface() const
const SkScalerContextRec & getRec() const
virtual void notifyCacheMiss(CacheMissType type, int fontSize)=0
void flatten(SkWriteBuffer &buffer) const
static std::optional< SkTypefaceProxyPrototype > MakeFromBuffer(SkReadBuffer &buffer)
SkTypefaceProxyPrototype(const SkTypeface &typeface)
SkTypefaceProxy(const SkTypefaceProxyPrototype &prototype, sk_sp< SkStrikeClient::DiscardableHandleManager > manager, bool isLogging=true)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager
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
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
#define TRACE_EVENT1(category_group, name, arg1_name, arg1_val)