Home
last modified time | relevance | path

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

12

/external/skqp/src/core/
DSkRemoteGlyphCacheImpl.h26 void addGlyph(SkPackedGlyphID, bool pathOnly);
40 const SkGlyph& findGlyph(SkPackedGlyphID);
56 void writeGlyphPath(const SkPackedGlyphID& glyphID, Serializer* serializer) const;
62 SkTHashSet<SkPackedGlyphID> fCachedGlyphImages;
63 SkTHashSet<SkPackedGlyphID> fCachedGlyphPaths;
67 std::vector<SkPackedGlyphID> fPendingGlyphImages;
68 std::vector<SkPackedGlyphID> fPendingGlyphPaths;
92 static SkPackedGlyphID GetKey(const SkGlyph* glyph) { in GetKey()
95 static uint32_t Hash(SkPackedGlyphID glyphId) { in Hash()
102 SkTHashTable<SkGlyph*, SkPackedGlyphID, GlyphMapHashTraits> fGlyphMap;
DSkStrike.h47 SkGlyph* getRawGlyphByID(SkPackedGlyphID);
109 SkPackedGlyphID vetoID = SkPackedGlyphID()) const;
183 SkGlyph* lookupByPackedGlyphID(SkPackedGlyphID packedGlyphID, MetricsType type);
187 SkGlyph* allocateNewGlyph(SkPackedGlyphID packedGlyphID, MetricsType type);
209 static SkPackedGlyphID GetKey(const SkGlyph* glyph) { in GetKey()
212 static uint32_t Hash(SkPackedGlyphID glyphId) { in Hash()
220 SkTHashTable<SkGlyph*, SkPackedGlyphID, GlyphMapHashTraits> fGlyphMap;
DSkGlyph.h117 struct SkPackedGlyphID : public SkPackedID { struct
118 SkPackedGlyphID(SkGlyphID code) : SkPackedID(code) { } in SkPackedGlyphID() argument
119 SkPackedGlyphID(SkGlyphID code, SkFixed x, SkFixed y) : SkPackedID(code, x, y) { } in SkPackedGlyphID() function
120 SkPackedGlyphID(SkGlyphID code, SkIPoint pt) : SkPackedID(code, pt.x(), pt.y()) { } in SkPackedGlyphID() argument
121 constexpr SkPackedGlyphID() = default;
140 constexpr explicit SkGlyph(SkPackedGlyphID id) : fID{id} {} in SkGlyph() argument
147 SkPackedGlyphID getPackedID() const { return fID; } in getPackedID()
221 SkPackedGlyphID fID;
DSkStrike.cpp58 SkPackedGlyphID packedGlyphID{glyphID, x, y}; in isGlyphCached()
62 SkGlyph* SkStrike::getRawGlyphByID(SkPackedGlyphID id) { in getRawGlyphByID()
68 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDAdvance()
74 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDMetrics()
80 SkPackedGlyphID packedGlyphID(glyphID, x, y); in getGlyphIDMetrics()
91 SkGlyph* SkStrike::lookupByPackedGlyphID(SkPackedGlyphID packedGlyphID, MetricsType type) { in lookupByPackedGlyphID()
105 SkGlyph* SkStrike::allocateNewGlyph(SkPackedGlyphID packedGlyphID, MetricsType mtype) { in allocateNewGlyph()
120 SkASSERT(glyphPtr->fID != SkPackedGlyphID()); in allocateNewGlyph()
206 SkPackedGlyphID vetoID) const { in getCachedGlyphAnySubPix()
209 SkPackedGlyphID packedGlyphID{glyphID, subX, subY}; in getCachedGlyphAnySubPix()
DSkRemoteGlyphCache.cpp424 void SkStrikeServer::SkGlyphCacheState::addGlyph(SkPackedGlyphID glyph, bool asPath) { in addGlyph()
443 serializer->write<SkPackedGlyphID>(glyph->getPackedID()); in writeGlyph()
501 const SkGlyph& SkStrikeServer::SkGlyphCacheState::findGlyph(SkPackedGlyphID glyphID) { in findGlyph()
538 SkPackedGlyphID packedGlyphID = fIsSubpixel ? SkPackedGlyphID{glyphID, lookupPoint} in getGlyphMetrics()
539 : SkPackedGlyphID{glyphID}; in getGlyphMetrics()
553 void SkStrikeServer::SkGlyphCacheState::writeGlyphPath(const SkPackedGlyphID& glyphID, in writeGlyphPath()
597 SkPackedGlyphID glyphID; in readGlyph()
598 if (!deserializer->read<SkPackedGlyphID>(&glyphID)) return false; in readGlyph()
DSkScalerContext.h292 bool SK_WARN_UNUSED_RESULT getPath(SkPackedGlyphID, SkPath*);
425 bool internalGetPath(SkPackedGlyphID id, SkPath* devPath);
/external/skia/src/core/
DSkGlyph.h24 struct SkPackedGlyphID { struct
47 static constexpr SkScalar kSubpixelRound = 1.f / (1u << (SkPackedGlyphID::kSubPixelPosLen + 1)); argument
52 constexpr explicit SkPackedGlyphID(SkGlyphID glyphID) in SkPackedGlyphID() function
55 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) in SkPackedGlyphID() function
58 constexpr SkPackedGlyphID(SkGlyphID glyphID, uint32_t x, uint32_t y) in SkPackedGlyphID() argument
61 SkPackedGlyphID(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) in SkPackedGlyphID() function
64 constexpr explicit SkPackedGlyphID(uint32_t v) : fID{v & kMaskAll} { } in SkPackedGlyphID() function
65 constexpr SkPackedGlyphID() : fID{kImpossibleID} {} in SkPackedGlyphID() function
67 bool operator==(const SkPackedGlyphID& that) const {
70 bool operator!=(const SkPackedGlyphID& that) const {
[all …]
DSkScalerCache.h43 static_assert(SkPackedGlyphID::kEndData == 20);
44 uint32_t fIndex : SkPackedGlyphID::kEndData;
64 SkPackedGlyphID toID, const SkGlyph& from) SK_EXCLUDES(fMu);
90 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
120 std::tuple<SkGlyph*, size_t> glyph(SkPackedGlyphID) SK_REQUIRES(fMu);
122 std::tuple<SkGlyphDigest, size_t> digest(SkPackedGlyphID) SK_REQUIRES(fMu);
155 SkTHashMap<SkPackedGlyphID, SkGlyphDigest> fDigestForPackedGlyphID SK_GUARDED_BY(fMu);
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;
DSkRemoteGlyphCache.cpp210 bool test(SkPackedGlyphID packedID) const { in test()
214 void setIfLower(SkPackedGlyphID packedID) { in setIfLower()
222 using GID = SkPackedGlyphID;
293 static_assert(SkPackedGlyphID::kMaskAll < (1u << 30), "SkPackedGlyphID is too big.");
300 static SkPackedGlyphID GetKey(MaskSummary summary) { in GetKey()
301 return SkPackedGlyphID{summary.packedID}; in GetKey()
304 static uint32_t Hash(SkPackedGlyphID packedID) { in Hash()
350 SkTHashTable<MaskSummary, SkPackedGlyphID, MaskSummaryTraits> fSentGlyphs;
379 serializer->write<SkPackedGlyphID>(glyph.getPackedID()); in writeGlyph()
471 [&](size_t i, SkPackedGlyphID packedID, SkPoint position) { in commonMaskLoop()
[all …]
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()
DSkScalerCache.cpp39 std::tuple<SkGlyph*, size_t> SkScalerCache::glyph(SkPackedGlyphID packedGlyphID) { in glyph()
44 std::tuple<SkGlyphDigest, size_t> SkScalerCache::digest(SkPackedGlyphID packedGlyphID) { in digest()
94 auto [glyph, size] = this->glyph(SkPackedGlyphID{glyphID}); in internalPrepare()
115 SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
148 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) { in prepareImages()
DSkGlyphRunPainter.cpp401 return {SkPackedGlyphID::kSubpixelRound, SK_ScalarHalf}; in HalfAxisSampleFreq()
403 return {SK_ScalarHalf, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
405 return {SkPackedGlyphID::kSubpixelRound, SkPackedGlyphID::kSubpixelRound}; in HalfAxisSampleFreq()
422 SkIPoint answer{ignoreMask.x() & SkPackedGlyphID::kXYFieldMask.x(), in IgnorePositionFieldMask()
423 ignoreMask.y() & SkPackedGlyphID::kXYFieldMask.y()}; in IgnorePositionFieldMask()
DSkScalerContext.h287 SkGlyph makeGlyph(SkPackedGlyphID);
289 bool SK_WARN_UNUSED_RESULT getPath(SkPackedGlyphID, SkPath*);
417 bool internalGetPath(SkPackedGlyphID id, SkPath* devPath);
418 SkGlyph internalMakeGlyph(SkPackedGlyphID packedID, SkMask::Format format);
DSkStrikeSpec.h141 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs);
142 const SkGlyph* glyph(SkPackedGlyphID packedID);
DSkStrikeSpec.cpp263 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs()
268 const SkGlyph* SkBulkGlyphMetricsAndImages::glyph(SkPackedGlyphID packedID) { in glyph()
269 return this->glyphs(SkSpan<const SkPackedGlyphID>{&packedID, 1})[0]; in glyph()
DSkStrikeCache.h52 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
91 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages()
DSkRemoteGlyphCache.h24 struct SkPackedGlyphID;
/external/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()
/external/skia/src/gpu/text/
DGrStrikeCache.h32 GrGlyph* getGlyph(SkPackedGlyphID);
37 static const SkPackedGlyphID& GetKey(const GrGlyph* glyph) { in GetKey()
41 static uint32_t Hash(SkPackedGlyphID key) { in Hash()
45 SkTHashTable<GrGlyph*, SkPackedGlyphID, HashTraits> fCache;
DGrStrikeCache.cpp37 GrGlyph* GrTextStrike::getGlyph(SkPackedGlyphID packedGlyphID) { in getGlyph()
/external/skia/src/gpu/
DGrGlyph.h36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph()
38 const SkPackedGlyphID fPackedID;
/external/skqp/src/gpu/text/
DGrStrikeCache.h45 GrGlyph* getGlyph(SkPackedGlyphID packed, in getGlyph()
84 SkTDynamicHash<GrGlyph, SkPackedGlyphID> fCache;
91 static const SkGlyph& GrToSkGlyph(SkStrike* cache, SkPackedGlyphID id) { in GrToSkGlyph()
/external/skqp/src/gpu/
DGrGlyph.h95 static const SkPackedGlyphID& GetKey(const GrGlyph& glyph) { in GetKey()
99 static uint32_t Hash(SkPackedGlyphID key) { in Hash()
103 const SkPackedGlyphID fPackedID;
/external/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