Home
last modified time | relevance | path

Searched refs:skGlyph (Results 1 – 10 of 10) sorted by relevance

/external/skia/src/gpu/
DGrGlyph.h44 static MaskStyle MaskStyleFromSkGlyph(const SkGlyph& skGlyph) { in MaskStyleFromSkGlyph()
45 return skGlyph.maskFormat() == SkMask::kSDF_Format in MaskStyleFromSkGlyph()
50 GrGlyph(const SkGlyph& skGlyph) in GrGlyph()
51 : fPackedID{skGlyph.getPackedID()} in GrGlyph()
52 , fMaskFormat{FormatFromSkGlyph(skGlyph.maskFormat())}
53 , fMaskStyle{MaskStyleFromSkGlyph(skGlyph)}
54 , fBounds{GrIRect16::Make(skGlyph.iRect())} {}
/external/skqp/src/gpu/
DGrGlyph.h52 static MaskStyle MaskStyleFromSkGlyph(const SkGlyph& skGlyph) { in MaskStyleFromSkGlyph()
53 return (SkMask::Format)skGlyph.fMaskFormat == SkMask::kSDF_Format in MaskStyleFromSkGlyph()
58 GrGlyph(const SkGlyph& skGlyph) in GrGlyph()
59 : fPackedID{skGlyph.getPackedID()} in GrGlyph()
60 , fMaskFormat{FormatFromSkGlyph(skGlyph)}
61 , fMaskStyle{MaskStyleFromSkGlyph(skGlyph)}
62 , fBounds{BoundsFromSkGlyph(skGlyph)} {}
/external/skia/src/gpu/text/
DGrStrikeCache.cpp152 GrDrawOpAtlas::ErrorCode GrTextStrike::addGlyphToAtlas(const SkGlyph& skGlyph, in addGlyphToAtlas() argument
161 SkASSERT(grGlyph->width() == skGlyph.width()); in addGlyphToAtlas()
162 SkASSERT(grGlyph->height() == skGlyph.height()); in addGlyphToAtlas()
163 SkASSERT(skGlyph.image() != nullptr); in addGlyphToAtlas()
185 get_packed_glyph_image(skGlyph, rowBytes, expectedMaskFormat, dataPtr); in addGlyphToAtlas()
202 GrGlyph* GrTextStrike::getGlyph(const SkGlyph& skGlyph) { in getGlyph() argument
203 GrGlyph* grGlyph = fCache.findOrNull(skGlyph.getPackedID()); in getGlyph()
205 grGlyph = fAlloc.make<GrGlyph>(skGlyph); in getGlyph()
DGrStrikeCache.h34 GrGlyph* getGlyph(const SkGlyph& skGlyph);
DGrTextBlob.cpp88 SkGlyph* skGlyph = variant; in appendGlyphs() local
89 GrGlyph* grGlyph = grStrike->getGlyph(*skGlyph); in appendGlyphs()
797 const SkGlyph& skGlyph = *fMetricsAndImages->glyph(grGlyph->fPackedID); in updateTextureCoordinates() local
798 if (skGlyph.image() == nullptr) { return {false, 0}; } in updateTextureCoordinates()
799 code = grStrike->addGlyphToAtlas(skGlyph, in updateTextureCoordinates()
/external/skqp/src/gpu/text/
DGrStrikeCache.h33 GrGlyph* getGlyph(const SkGlyph& skGlyph) { in getGlyph() argument
34 GrGlyph* glyph = fCache.find(skGlyph.getPackedID()); in getGlyph()
36 glyph = this->generateGlyph(skGlyph); in getGlyph()
52 const SkGlyph& skGlyph = GrToSkGlyph(cache, packed); in getGlyph() local
53 glyph = this->generateGlyph(skGlyph); in getGlyph()
DGrStrikeCache.cpp175 GrGlyph* GrTextStrike::generateGlyph(const SkGlyph& skGlyph) { in generateGlyph() argument
176 GrGlyph* grGlyph = fAlloc.make<GrGlyph>(skGlyph); in generateGlyph()
224 const SkGlyph& skGlyph = GrToSkGlyph(cache, glyph->fPackedID); in addGlyphToAtlas() local
230 if (!get_packed_glyph_image(cache, skGlyph, glyph->width(), glyph->height(), in addGlyphToAtlas()
DGrTextBlob.h439 const SkGlyph& skGlyph,
444 const SkGlyph& skGlyph,
/external/skqp/src/core/
DSkGlyphRunPainter.cpp661 const SkGlyph& skGlyph, SkPoint origin) { in appendDeviceSpaceGlyph() argument
662 if (GrGlyph* glyph = strike->getGlyph(skGlyph)) { in appendDeviceSpaceGlyph()
673 const SkGlyph& skGlyph, in appendSourceSpaceGlyph() argument
676 if (GrGlyph* glyph = strike->getGlyph(skGlyph)) { in appendSourceSpaceGlyph()
/external/skia/modules/skshaper/src/
DSkShaper_harfbuzz.cpp158 SkGlyphID skGlyph = SkTo<SkGlyphID>(hbGlyph); in skhb_glyph_h_advance() local
160 font.getWidths(&skGlyph, 1, &advance); in skhb_glyph_h_advance()
215 SkGlyphID skGlyph = SkTo<SkGlyphID>(hbGlyph); in skhb_glyph_extents() local
217 font.getWidths(&skGlyph, 1, nullptr, &sk_bounds); in skhb_glyph_extents()