Lines Matching refs:glyphID
53 constexpr explicit SkPackedGlyphID(SkGlyphID glyphID)
54 : fID{(uint32_t)glyphID << kGlyphID} { }
56 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y)
57 : fID {PackIDXY(glyphID, x, y)} { }
59 constexpr SkPackedGlyphID(SkGlyphID glyphID, uint32_t x, uint32_t y)
60 : fID {PackIDSubXSubY(glyphID, x, y)} { }
62 SkPackedGlyphID(SkGlyphID glyphID, SkPoint pt, SkIPoint mask)
63 : fID{PackIDSkPoint(glyphID, pt, mask)} { }
78 SkGlyphID glyphID() const {
100 str.appendf("glyphID: %d, x: %d, y:%d", glyphID(), getSubXFixed(), getSubYFixed());
105 static constexpr uint32_t PackIDSubXSubY(SkGlyphID glyphID, uint32_t x, uint32_t y) {
109 return (x << kSubPixelX) | (y << kSubPixelY) | (glyphID << kGlyphID);
128 static uint32_t PackIDSkPoint(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) {
156 return (glyphID << kGlyphID) | sub[0] | sub[1];
159 static constexpr uint32_t PackIDXY(SkGlyphID glyphID, SkFixed x, SkFixed y) {
160 return PackIDSubXSubY(glyphID, FixedToSub(x), FixedToSub(y));
241 SkGlyphID getGlyphID() const { return fID.glyphID(); }