/third_party/flutter/skia/src/core/ |
D | SkStrike.h | 44 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;
|
D | SkGlyph.h | 27 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 …]
|
D | SkStrike.cpp | 40 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()
|
D | SkGlyphRunPainter.h | 104 static SkSpan<const SkPackedGlyphID> DeviceSpacePackedGlyphIDs( 112 SkPackedGlyphID* results); 114 static SkSpan<const SkPackedGlyphID> SourceSpacePackedGlyphIDs( 120 SkPackedGlyphID* results); 133 SkAutoTMalloc<SkPackedGlyphID> fPackedGlyphIDs;
|
D | SkRemoteGlyphCache.cpp | 204 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 …]
|
D | SkGlyphRunPainter.cpp | 112 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 …]
|
D | SkRemoteGlyphCache.h | 33 struct SkPackedGlyphID; 150 SkGlyphCacheState* cache, SkPackedGlyphID glyphID, bool asPath);
|
/third_party/skia/src/core/ |
D | SkGlyph.h | 24 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 …]
|
D | SkScalerCache.h | 43 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);
|
D | SkRemoteGlyphCache.cpp | 202 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 …]
|
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 | SkScalerCache.cpp | 37 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()
|
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 | SkGlyphRunPainter.cpp | 404 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()
|
D | SkScalerContext.h | 295 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);
|
D | SkStrikeSpec.cpp | 275 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()
|
D | SkStrikeSpec.h | 147 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs); 148 const SkGlyph* glyph(SkPackedGlyphID packedID);
|
/third_party/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()
|
/third_party/skia/src/gpu/text/ |
D | GrStrikeCache.h | 27 GrGlyph* getGlyph(SkPackedGlyphID); 35 static const SkPackedGlyphID& GetKey(const GrGlyph* glyph); 36 static uint32_t Hash(SkPackedGlyphID key); 39 SkTHashTable<GrGlyph*, SkPackedGlyphID, HashTraits> fCache;
|
D | GrStrikeCache.cpp | 44 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/ |
D | GrGlyph.h | 87 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/ |
D | SkGlyphCacheBench.cpp | 27 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/ |
D | GrGlyph.h | 36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph() 38 const SkPackedGlyphID fPackedID;
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrStrikeCache.h | 46 GrGlyph* getGlyph(SkPackedGlyphID packed, SkStrike* skStrike) { in getGlyph() 84 SkTDynamicHash<GrGlyph, SkPackedGlyphID> fCache;
|
/third_party/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()
|