Home
last modified time | relevance | path

Searched refs:SkPackedGlyphID (Results 1 – 25 of 43) sorted by relevance

12

/third_party/flutter/skia/src/core/
DSkStrike.h44 SkGlyph* glyph(SkPackedGlyphID packedID);
52 SkGlyph* glyphOrNull(SkPackedGlyphID id) const;
60 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from);
88 SkPackedGlyphID vetoID = SkPackedGlyphID()) const;
119 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs,
122 SkSpan<const SkGlyphPos> prepareForDrawingRemoveEmpty(const SkPackedGlyphID packedGlyphIDs[],
167 static SkPackedGlyphID GetKey(const SkGlyph* glyph) { in GetKey()
170 static uint32_t Hash(SkPackedGlyphID glyphId) { in Hash()
175 SkGlyph* makeGlyph(SkPackedGlyphID);
195 SkTHashTable<SkGlyph*, SkPackedGlyphID, GlyphMapHashTraits> fGlyphMap;
DSkGlyph.h27 struct SkPackedGlyphID { struct
39 constexpr explicit SkPackedGlyphID(SkGlyphID glyphID) in SkPackedGlyphID() function
42 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) in SkPackedGlyphID() argument
47 constexpr SkPackedGlyphID(SkGlyphID code, SkIPoint pt) in SkPackedGlyphID() function
48 : SkPackedGlyphID(code, pt.fX, pt.fY) { } in SkPackedGlyphID()
50 constexpr SkPackedGlyphID() : fID{kImpossibleID} {} in SkPackedGlyphID() function
52 bool operator==(const SkPackedGlyphID& that) const {
55 bool operator!=(const SkPackedGlyphID& that) const {
58 bool operator<(SkPackedGlyphID that) const {
119 static constexpr SkFixed kSubpixelRound = SK_FixedHalf >> SkPackedGlyphID::kSubBits; argument
[all …]
DSkStrike.cpp40 SkGlyph* SkStrike::makeGlyph(SkPackedGlyphID packedGlyphID) { in makeGlyph()
47 SkGlyph* SkStrike::glyph(SkPackedGlyphID packedGlyphID) { in glyph()
58 return this->glyph(SkPackedGlyphID{glyphID}); in glyph()
66 return this->glyph(SkPackedGlyphID{glyphID, subX, subY}); in glyph()
82 SkGlyph* SkStrike::glyphOrNull(SkPackedGlyphID id) const { in glyphOrNull()
133 SkGlyph* SkStrike::mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
149 SkPackedGlyphID vetoID) const { in getCachedGlyphAnySubPix()
152 SkPackedGlyphID packedGlyphID{glyphID, subX, subY}; in getCachedGlyphAnySubPix()
178 SkStrike::prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) { in prepareImages()
192 SkStrike::prepareForDrawingRemoveEmpty(const SkPackedGlyphID packedGlyphIDs[], in prepareForDrawingRemoveEmpty()
DSkGlyphRunPainter.h104 static SkSpan<const SkPackedGlyphID> DeviceSpacePackedGlyphIDs(
112 SkPackedGlyphID* results);
114 static SkSpan<const SkPackedGlyphID> SourceSpacePackedGlyphIDs(
120 SkPackedGlyphID* results);
133 SkAutoTMalloc<SkPackedGlyphID> fPackedGlyphIDs;
DSkRemoteGlyphCache.cpp204 void addGlyph(SkPackedGlyphID, bool asPath);
225 const SkPackedGlyphID packedGlyphIDs[],
236 void writeGlyphPath(const SkPackedGlyphID& glyphID, Serializer* serializer) const;
242 SkTHashSet<SkPackedGlyphID> fCachedGlyphImages;
243 SkTHashSet<SkPackedGlyphID> fCachedGlyphPaths;
247 std::vector<SkPackedGlyphID> fPendingGlyphImages;
248 std::vector<SkPackedGlyphID> fPendingGlyphPaths;
268 static SkPackedGlyphID GetKey(const SkGlyph* glyph) { in GetKey()
271 static uint32_t Hash(SkPackedGlyphID glyphId) { in Hash()
278 SkTHashTable<SkGlyph*, SkPackedGlyphID, GlyphMapHashTraits> fGlyphMap;
[all …]
DSkGlyphRunPainter.cpp112 SkSpan<const SkPackedGlyphID> SkGlyphRunListPainter::DeviceSpacePackedGlyphIDs( in DeviceSpacePackedGlyphIDs()
120 SkPackedGlyphID* results) { in DeviceSpacePackedGlyphIDs()
133 results[i] = SkPackedGlyphID{glyphIDs[i], subX, subY}; in DeviceSpacePackedGlyphIDs()
136 return SkSpan<const SkPackedGlyphID>{results, SkTo<size_t>(n)}; in DeviceSpacePackedGlyphIDs()
139 SkSpan<const SkPackedGlyphID> SkGlyphRunListPainter::SourceSpacePackedGlyphIDs( in SourceSpacePackedGlyphIDs()
145 SkPackedGlyphID* results) { in SourceSpacePackedGlyphIDs()
150 SkPackedGlyphID* cursor = results; in SourceSpacePackedGlyphIDs()
152 *cursor++ = SkPackedGlyphID{glyphIDs[i]}; in SourceSpacePackedGlyphIDs()
155 return SkSpan<const SkPackedGlyphID>{results, SkTo<size_t>(n)}; in SourceSpacePackedGlyphIDs()
331 SkPackedGlyphID* cursor = fPackedGlyphIDs; in processARGBFallback()
[all …]
DSkRemoteGlyphCache.h33 struct SkPackedGlyphID;
150 SkGlyphCacheState* cache, SkPackedGlyphID glyphID, bool asPath);
/third_party/skia/src/core/
DSkGlyph.h24 struct SkPackedGlyphID { struct
48 1.f / (1u << (SkPackedGlyphID::kSubPixelPosLen + 1)); argument
53 constexpr explicit SkPackedGlyphID(SkGlyphID glyphID) in SkPackedGlyphID() argument
56 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) in SkPackedGlyphID() argument
59 constexpr SkPackedGlyphID(SkGlyphID glyphID, uint32_t x, uint32_t y) in SkPackedGlyphID() function
62 SkPackedGlyphID(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) in SkPackedGlyphID() argument
65 constexpr explicit SkPackedGlyphID(uint32_t v) : fID{v & kMaskAll} { } in SkPackedGlyphID() function
66 constexpr SkPackedGlyphID() : fID{kImpossibleID} {} in SkPackedGlyphID() argument
68 bool operator==(const SkPackedGlyphID& that) const {
71 bool operator!=(const SkPackedGlyphID& that) const {
[all …]
DSkScalerCache.h43 static_assert(SkPackedGlyphID::kEndData == 20);
44 uint32_t fIndex : SkPackedGlyphID::kEndData;
63 SkPackedGlyphID toID, const SkGlyph& from) SK_EXCLUDES(fMu);
89 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
117 std::tuple<SkGlyph*, size_t> glyph(SkPackedGlyphID) SK_REQUIRES(fMu);
119 std::tuple<SkGlyphDigest, size_t> digest(SkPackedGlyphID) SK_REQUIRES(fMu);
151 SkTHashMap<SkPackedGlyphID, SkGlyphDigest> fDigestForPackedGlyphID SK_GUARDED_BY(fMu);
DSkRemoteGlyphCache.cpp202 bool test(SkPackedGlyphID packedID) const { in test()
206 void setIfLower(SkPackedGlyphID packedID) { in setIfLower()
214 using GID = SkPackedGlyphID;
287 static_assert(SkPackedGlyphID::kMaskAll < (1u << 30), "SkPackedGlyphID is too big.");
294 static SkPackedGlyphID GetKey(MaskSummary summary) { in GetKey()
295 return SkPackedGlyphID{summary.packedID}; in GetKey()
298 static uint32_t Hash(SkPackedGlyphID packedID) { in Hash()
343 SkTHashTable<MaskSummary, SkPackedGlyphID, MaskSummaryTraits> fSentGlyphs;
372 serializer->write<SkPackedGlyphID>(glyph.getPackedID()); in writeGlyph()
462 [&](size_t i, SkPackedGlyphID packedID, SkPoint position) { in commonMaskLoop()
[all …]
DSkGlyphBuffer.h88 SkGlyphVariant& operator= (SkPackedGlyphID packedID) {
113 SkPackedGlyphID packedID() const { in packedID()
118 operator SkPackedGlyphID() const { return this->packedID(); } in SkPackedGlyphID() function
126 SkPackedGlyphID packedID;
DSkScalerCache.cpp37 std::tuple<SkGlyph*, size_t> SkScalerCache::glyph(SkPackedGlyphID packedGlyphID) { in glyph()
42 std::tuple<SkGlyphDigest, size_t> SkScalerCache::digest(SkPackedGlyphID packedGlyphID) { in digest()
88 auto [glyph, size] = this->glyph(SkPackedGlyphID{glyphID}); in internalPrepare()
109 SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
142 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) { in prepareImages()
DSkGlyphBuffer.cpp38 *packedIDCursor++ = SkPackedGlyphID{std::get<0>(t)}; in startSource()
66 *packedIDCursor++ = SkPackedGlyphID{glyphID, pos, mask}; in startBitmapDevice()
93 packedGlyphID = SkPackedGlyphID{glyphID, pos, roundingSpec.ignorePositionFieldMask}; in startGPUDevice()
DSkGlyphRunPainter.cpp404 return {SkPackedGlyphID::kSubpixelRound, SK_ScalarHalf}; in HalfAxisSampleFreq()
406 return {SK_ScalarHalf, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
408 return {SkPackedGlyphID::kSubpixelRound, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
425 SkIPoint answer{ignoreMask.x() & SkPackedGlyphID::kXYFieldMask.x(), in IgnorePositionFieldMask()
426 ignoreMask.y() & SkPackedGlyphID::kXYFieldMask.y()}; in IgnorePositionFieldMask()
DSkScalerContext.h295 SkGlyph makeGlyph(SkPackedGlyphID);
297 bool SK_WARN_UNUSED_RESULT getPath(SkPackedGlyphID, SkPath*);
425 bool internalGetPath(SkPackedGlyphID id, SkPath* devPath, bool* hairline);
426 SkGlyph internalMakeGlyph(SkPackedGlyphID packedID, SkMask::Format format);
DSkStrikeSpec.cpp275 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs()
280 const SkGlyph* SkBulkGlyphMetricsAndImages::glyph(SkPackedGlyphID packedID) { in glyph()
281 return this->glyphs(SkSpan<const SkPackedGlyphID>{&packedID, 1})[0]; in glyph()
DSkStrikeSpec.h147 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs);
148 const SkGlyph* glyph(SkPackedGlyphID packedID);
/third_party/skia/tests/
DSkGlyphBufferTest.cpp15 using PG = SkPackedGlyphID; in DEF_TEST()
32 SkPackedGlyphID packedID{3, roundedPos, mask}; in DEF_TEST()
35 SkPackedGlyphID correctID(3, subX, subY); in DEF_TEST()
49 SkPackedGlyphID packedID{3, roundedPos, mask}; in DEF_TEST()
52 SkPackedGlyphID correctID(3, subX, subY); in DEF_TEST()
66 SkPackedGlyphID packedID{3, roundedPos, mask}; in DEF_TEST()
69 SkPackedGlyphID correctID(3, subX, subY); in DEF_TEST()
88 SkPackedGlyphID packedID{3, roundedPos, mask}; in DEF_TEST()
91 SkPackedGlyphID correctID(3, subX, subY); in DEF_TEST()
179 pos.x() == positions[i].x() * 0.5 + 50 + SkPackedGlyphID::kSubpixelRound); in DEF_TEST()
/third_party/skia/src/gpu/text/
DGrStrikeCache.h27 GrGlyph* getGlyph(SkPackedGlyphID);
35 static const SkPackedGlyphID& GetKey(const GrGlyph* glyph);
36 static uint32_t Hash(SkPackedGlyphID key);
39 SkTHashTable<GrGlyph*, SkPackedGlyphID, HashTraits> fCache;
DGrStrikeCache.cpp44 GrGlyph* GrTextStrike::getGlyph(SkPackedGlyphID packedGlyphID) { in getGlyph()
53 const SkPackedGlyphID& GrTextStrike::HashTraits::GetKey(const GrGlyph* glyph) { in GetKey()
57 uint32_t GrTextStrike::HashTraits::Hash(SkPackedGlyphID key) { in Hash()
/third_party/flutter/skia/src/gpu/
DGrGlyph.h87 static const SkPackedGlyphID& GetKey(const GrGlyph& glyph) { in GetKey()
91 static uint32_t Hash(SkPackedGlyphID key) { in Hash()
95 const SkPackedGlyphID fPackedID;
/third_party/flutter/skia/bench/
DSkGlyphCacheBench.cpp27 SkPackedGlyphID glyphs['z']; in do_font_stuff()
29 glyphs[c] = SkPackedGlyphID{font->unicharToGlyph(c)}; in do_font_stuff()
32 SkSpan<const SkPackedGlyphID> glyphIDs{&glyphs[SkTo<int>(' ')], glyphCount}; in do_font_stuff()
/third_party/skia/src/gpu/
DGrGlyph.h36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph()
38 const SkPackedGlyphID fPackedID;
/third_party/flutter/skia/src/gpu/text/
DGrStrikeCache.h46 GrGlyph* getGlyph(SkPackedGlyphID packed, SkStrike* skStrike) { in getGlyph()
84 SkTDynamicHash<GrGlyph, SkPackedGlyphID> fCache;
/third_party/skia/bench/
DSkGlyphCacheBench.cpp29 SkPackedGlyphID glyphs['z']; in do_font_stuff()
31 glyphs[c] = SkPackedGlyphID{font->unicharToGlyph(c)}; in do_font_stuff()
34 SkSpan<const SkPackedGlyphID> glyphIDs{&glyphs[SkTo<int>(' ')], glyphCount}; in do_font_stuff()

12