/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() function 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() argument 66 constexpr SkPackedGlyphID() : fID{kImpossibleID} {} in SkPackedGlyphID() function 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 | 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 | 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 | 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);
|
D | SkStrikeCache.h | 52 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage() 92 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages()
|
D | SkRemoteGlyphCache.h | 24 struct SkPackedGlyphID;
|
D | SkScalerContext.cpp | 180 SkGlyph SkScalerContext::makeGlyph(SkPackedGlyphID packedID) { in makeGlyph() 184 SkGlyph SkScalerContext::internalMakeGlyph(SkPackedGlyphID packedID, SkMask::Format format) { in internalMakeGlyph() 689 bool SkScalerContext::getPath(SkPackedGlyphID glyphID, SkPath* path) { in getPath() 702 bool SkScalerContext::internalGetPath(SkPackedGlyphID glyphID, SkPath* devPath, bool* hairline) { in internalGetPath()
|
/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()
|
D | GrTextBlob.cpp | 307 SkPackedGlyphID packedGlyphID; 311 Variant(SkPackedGlyphID id) : packedGlyphID{id} {} in Variant()
|
/third_party/skia/src/gpu/ |
D | GrGlyph.h | 36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph() 38 const SkPackedGlyphID fPackedID;
|
/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()
|
D | PathTextBench.cpp | 53 SkPackedGlyphID id(defaultFont.unicharToGlyph(kGlyphs[i])); in onDelayedSetup()
|
/third_party/skia/samplecode/ |
D | SamplePathText.cpp | 44 SkPackedGlyphID id(defaultFont.unicharToGlyph(c)); in onOnceBeforeDraw()
|
/third_party/skia/src/pdf/ |
D | SkPDFFont.cpp | 445 const SkGlyph* glyph = smallGlyphs->glyph(SkPackedGlyphID{gid}); in to_image()
|