/external/skqp/src/core/ |
D | SkRemoteGlyphCacheImpl.h | 26 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;
|
D | SkStrike.h | 47 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;
|
D | SkGlyph.h | 117 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;
|
D | SkStrike.cpp | 58 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()
|
D | SkRemoteGlyphCache.cpp | 424 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()
|
D | SkScalerContext.h | 292 bool SK_WARN_UNUSED_RESULT getPath(SkPackedGlyphID, SkPath*); 425 bool internalGetPath(SkPackedGlyphID id, SkPath* devPath);
|
/external/skia/src/core/ |
D | SkGlyph.h | 24 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 …]
|
D | SkScalerCache.h | 43 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);
|
D | SkGlyphBuffer.h | 88 SkGlyphVariant& operator= (SkPackedGlyphID packedID) { 113 SkPackedGlyphID packedID() const { in packedID() 118 operator SkPackedGlyphID() const { return this->packedID(); } in SkPackedGlyphID() function 126 SkPackedGlyphID packedID;
|
D | SkRemoteGlyphCache.cpp | 210 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 …]
|
D | SkGlyphBuffer.cpp | 38 *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()
|
D | SkScalerCache.cpp | 39 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()
|
D | SkGlyphRunPainter.cpp | 401 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()
|
D | SkScalerContext.h | 287 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);
|
D | SkStrikeSpec.h | 141 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs); 142 const SkGlyph* glyph(SkPackedGlyphID packedID);
|
D | SkStrikeSpec.cpp | 263 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()
|
D | SkStrikeCache.h | 52 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage() 91 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages()
|
D | SkRemoteGlyphCache.h | 24 struct SkPackedGlyphID;
|
/external/skia/tests/ |
D | SkGlyphBufferTest.cpp | 15 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/ |
D | GrStrikeCache.h | 32 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;
|
D | GrStrikeCache.cpp | 37 GrGlyph* GrTextStrike::getGlyph(SkPackedGlyphID packedGlyphID) { in getGlyph()
|
/external/skia/src/gpu/ |
D | GrGlyph.h | 36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph() 38 const SkPackedGlyphID fPackedID;
|
/external/skqp/src/gpu/text/ |
D | GrStrikeCache.h | 45 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/ |
D | GrGlyph.h | 95 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/ |
D | SkGlyphCacheBench.cpp | 29 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()
|