Home
last modified time | relevance | path

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

/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() 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 …]
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;
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.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()
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);
DSkStrikeCache.h52 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
92 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages()
DSkRemoteGlyphCache.h24 struct SkPackedGlyphID;
DSkScalerContext.cpp180 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/
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()
DGrTextBlob.cpp307 SkPackedGlyphID packedGlyphID;
311 Variant(SkPackedGlyphID id) : packedGlyphID{id} {} in Variant()
/third_party/skia/src/gpu/
DGrGlyph.h36 GrGlyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {} in GrGlyph()
38 const SkPackedGlyphID fPackedID;
/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()
DPathTextBench.cpp53 SkPackedGlyphID id(defaultFont.unicharToGlyph(kGlyphs[i])); in onDelayedSetup()
/third_party/skia/samplecode/
DSamplePathText.cpp44 SkPackedGlyphID id(defaultFont.unicharToGlyph(c)); in onOnceBeforeDraw()
/third_party/skia/src/pdf/
DSkPDFFont.cpp445 const SkGlyph* glyph = smallGlyphs->glyph(SkPackedGlyphID{gid}); in to_image()