Home
last modified time | relevance | path

Searched refs:SkGlyph (Results 1 – 25 of 45) sorted by relevance

12

/third_party/skia/src/ports/
DSkScalerContext_win_dw.h19 class SkGlyph; variable
30 bool generateAdvance(SkGlyph* glyph) override;
31 void generateMetrics(SkGlyph* glyph) override;
32 void generateImage(const SkGlyph& glyph) override;
37 static void BilevelToBW(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph);
41 const SkGlyph& glyph,
46 const SkGlyph& glyph,
50 static void RGBToLcd16(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph,
53 const void* drawDWMask(const SkGlyph& glyph,
57 HRESULT getBoundingBox(SkGlyph* glyph,
[all …]
DSkScalerContext_mac_ct.h34 class SkGlyph; variable
47 bool generateAdvance(SkGlyph* glyph) override;
48 void generateMetrics(SkGlyph* glyph) override;
49 void generateImage(const SkGlyph& glyph) override;
65 CGRGBPixel* getCG(const SkScalerContext_Mac& context, const SkGlyph& glyph,
DSkScalerContext_win_dw.cpp426 bool SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { in generateAdvance()
482 HRESULT SkScalerContext_DW::getBoundingBox(SkGlyph* glyph, in getBoundingBox()
550 bool SkScalerContext_DW::isColorGlyph(const SkGlyph& glyph) { in isColorGlyph()
555 bool SkScalerContext_DW::isPngGlyph(const SkGlyph& glyph) { in isPngGlyph()
567 bool SkScalerContext_DW::getColorGlyphRun(const SkGlyph& glyph, in getColorGlyphRun()
596 void SkScalerContext_DW::generateColorMetrics(SkGlyph* glyph) { in generateColorMetrics()
660 void SkScalerContext_DW::generatePngMetrics(SkGlyph* glyph) { in generatePngMetrics()
710 void SkScalerContext_DW::generateMetrics(SkGlyph* glyph) { in generateMetrics()
716 auto glyphCheckAndSetBounds = [](SkGlyph* glyph, const RECT& bbox) { in generateMetrics()
866 void SkScalerContext_DW::BilevelToBW(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph) { in BilevelToBW()
[all …]
DSkScalerContext_mac_ct.cpp154 const SkGlyph& glyph, CGGlyph glyphID, in getCG()
268 bool SkScalerContext_Mac::generateAdvance(SkGlyph* glyph) { in generateAdvance()
272 void SkScalerContext_Mac::generateMetrics(SkGlyph* glyph) { in generateMetrics()
389 const SkGlyph& glyph, void* glyphImage, const uint8_t* table8) { in RGBToA8()
420 const SkGlyph& glyph, void* glyphImage, in RGBToLcd16()
447 void SkScalerContext_Mac::generateImage(const SkGlyph& glyph) { in generateImage()
/third_party/skia/src/core/
DSkScalerCache.h30 SkGlyphDigest(size_t i, const SkGlyph& glyph) in SkGlyphDigest()
62 std::tuple<SkGlyph*, size_t> mergeGlyphAndImage(
63 SkPackedGlyphID toID, const SkGlyph& from) SK_EXCLUDES(fMu);
67 SkGlyph* glyph, const SkPath* path) SK_EXCLUDES(fMu);
76 SkGlyph* , SkScalar* array, int* count) SK_EXCLUDES(fMu);
82 std::tuple<SkSpan<const SkGlyph*>, size_t> metrics(
83 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
85 std::tuple<SkSpan<const SkGlyph*>, size_t> preparePaths(
86 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
88 std::tuple<SkSpan<const SkGlyph*>, size_t> prepareImages(
[all …]
DSkScalerCache.cpp37 std::tuple<SkGlyph*, size_t> SkScalerCache::glyph(SkPackedGlyphID packedGlyphID) { in glyph()
49 SkGlyph* glyph = fAlloc.make<SkGlyph>(fScalerContext->makeGlyph(packedGlyphID)); in digest()
50 return {this->addGlyph(glyph), sizeof(SkGlyph)}; in digest()
53 SkGlyphDigest SkScalerCache::addGlyph(SkGlyph* glyph) { in addGlyph()
61 std::tuple<const SkPath*, size_t> SkScalerCache::preparePath(SkGlyph* glyph) { in preparePath()
69 std::tuple<const SkPath*, size_t> SkScalerCache::mergePath(SkGlyph* glyph, const SkPath* path) { in mergePath()
83 std::tuple<SkSpan<const SkGlyph*>, size_t> SkScalerCache::internalPrepare( in internalPrepare()
84 SkSpan<const SkGlyphID> glyphIDs, PathDetail pathDetail, const SkGlyph** results) { in internalPrepare()
85 const SkGlyph** cursor = results; in internalPrepare()
100 std::tuple<const void*, size_t> SkScalerCache::prepareImage(SkGlyph* glyph) { in prepareImage()
[all …]
DSkGlyph.cpp15 SkMask SkGlyph::mask() const { in mask()
24 SkMask SkGlyph::mask(SkPoint position) const { in mask()
30 void SkGlyph::zeroMetrics() { in zeroMetrics()
66 size_t SkGlyph::formatAlignment() const { in formatAlignment()
70 size_t SkGlyph::allocImage(SkArenaAlloc* alloc) { in allocImage()
78 bool SkGlyph::setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext) { in setImage()
91 bool SkGlyph::setImage(SkArenaAlloc* alloc, const void* image) { in setImage()
100 size_t SkGlyph::setMetricsAndImage(SkArenaAlloc* alloc, const SkGlyph& from) { in setMetricsAndImage()
124 size_t SkGlyph::rowBytes() const { in rowBytes()
128 size_t SkGlyph::rowBytesUsingFormat(SkMask::Format format) const { in rowBytesUsingFormat()
[all …]
DSkStrikeSpec.h117 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
118 const SkGlyph* glyph(SkGlyphID glyphID);
122 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs;
131 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
132 const SkGlyph* glyph(SkGlyphID glyphID);
134 const SkGlyph* glyph, SkScalar* array, int* count);
138 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs;
147 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs);
148 const SkGlyph* glyph(SkPackedGlyphID packedID);
153 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs;
DSkStrikeCache.h52 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage()
58 const SkPath* mergePath(SkGlyph* glyph, const SkPath* path) { in mergePath()
70 SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts()
78 SkSpan<const SkGlyph*> metrics(SkSpan<const SkGlyphID> glyphIDs, in metrics()
79 const SkGlyph* results[]) { in metrics()
85 SkSpan<const SkGlyph*> preparePaths(SkSpan<const SkGlyphID> glyphIDs, in preparePaths()
86 const SkGlyph* results[]) { in preparePaths()
92 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages()
93 const SkGlyph* results[]) { in prepareImages()
DSkStrikeForGPU.h21 class SkGlyph; variable
54 static bool CanDrawAsMask(const SkGlyph& glyph);
55 static bool CanDrawAsSDFT(const SkGlyph& glyph);
56 static bool CanDrawAsPath(const SkGlyph& glyph);
57 static bool FitsInAtlas(const SkGlyph& glyph);
DSkStrikeForGPU.cpp14 bool SkStrikeForGPU::CanDrawAsMask(const SkGlyph& glyph) { in CanDrawAsMask()
18 bool SkStrikeForGPU::CanDrawAsSDFT(const SkGlyph& glyph) { in CanDrawAsSDFT()
22 bool SkStrikeForGPU::CanDrawAsPath(const SkGlyph& glyph) { in CanDrawAsPath()
27 bool SkStrikeForGPU::FitsInAtlas(const SkGlyph& glyph) { in FitsInAtlas()
DSkStrikeSpec.cpp233 SkSpan<const SkGlyph*> SkBulkGlyphMetrics::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs()
238 const SkGlyph* SkBulkGlyphMetrics::glyph(SkGlyphID glyphID) { in glyph()
250 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndPaths::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs()
255 const SkGlyph* SkBulkGlyphMetricsAndPaths::glyph(SkGlyphID glyphID) { in glyph()
261 const SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts()
264 fStrike->findIntercepts(bounds, scale, xPos, const_cast<SkGlyph*>(glyph), array, count); in findIntercepts()
275 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs()
280 const SkGlyph* SkBulkGlyphMetricsAndImages::glyph(SkPackedGlyphID packedID) { in glyph()
DSkGlyphBuffer.h93 SkGlyphVariant& operator= (SkGlyph* glyph) {
105 SkGlyph* glyph() const { in glyph()
119 operator SkGlyph*() const { return this->glyph(); }
124 SkGlyph* glyph;
186 void push_back(SkGlyph* glyph, size_t from) { in push_back()
DSkScalerContext.h295 SkGlyph makeGlyph(SkPackedGlyphID);
296 void getImage(const SkGlyph&);
374 virtual bool generateAdvance(SkGlyph* glyph) = 0;
381 virtual void generateMetrics(SkGlyph* glyph) = 0;
392 virtual void generateImage(const SkGlyph& glyph) = 0;
426 SkGlyph internalMakeGlyph(SkPackedGlyphID packedID, SkMask::Format format);
DSkTypeface_remote.cpp22 bool SkScalerContextProxy::generateAdvance(SkGlyph* glyph) { in generateAdvance()
26 void SkScalerContextProxy::generateMetrics(SkGlyph* glyph) { in generateMetrics()
38 void SkScalerContextProxy::generateImage(const SkGlyph& glyph) { in generateImage()
DSkRemoteGlyphCache.cpp322 void writeGlyphPath(const SkGlyph& glyph, Serializer* serializer) const;
348 std::vector<SkGlyph> fMasksToSend;
349 std::vector<SkGlyph> fPathsToSend;
371 static void writeGlyph(const SkGlyph& glyph, Serializer* serializer) { in writeGlyph()
400 for (SkGlyph& glyph : fMasksToSend) { in writePendingGlyphs()
414 for (SkGlyph& glyph : fPathsToSend) { in writePendingGlyphs()
440 const SkGlyph& glyph, Serializer* serializer) const { in writeGlyphPath()
468 SkGlyph* glyph = &fMasksToSend.back(); in commonMaskLoop()
501 SkGlyph* glyph = &fMasksToSend.back(); in prepareForMaskDrawing()
537 SkGlyph* glyph = &fPathsToSend.back(); in prepareForPathDrawing()
[all …]
DSkTypeface_remote.h31 bool generateAdvance(SkGlyph* glyph) override;
32 void generateMetrics(SkGlyph* glyph) override;
33 void generateImage(const SkGlyph& glyph) override;
DSkGlyph.h231 class SkGlyph {
234 constexpr SkGlyph() : SkGlyph{SkPackedGlyphID()} { } in SkGlyph() function
235 constexpr explicit SkGlyph(SkPackedGlyphID id) : fID{id} { } in SkGlyph() function
268 size_t setMetricsAndImage(SkArenaAlloc* alloc, const SkGlyph& from);
DSkFont.cpp174 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText()
212 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getWidthsBounds()
233 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getPos()
247 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getXPos()
265 SkSpan<const SkGlyph*> glyphs = paths.glyphs(SkMakeSpan(glyphIDs, count)); in getPaths()
DSkDraw_text.cpp58 SkGlyph* glyph = variant.glyph(); in paintMasks()
85 SkGlyph* glyph = variant.glyph(); in paintMasks()
/third_party/skia/tools/fonts/
DRandomScalerContext.cpp26 bool generateAdvance(SkGlyph*) override;
27 void generateMetrics(SkGlyph*) override;
28 void generateImage(const SkGlyph&) override;
50 bool RandomScalerContext::generateAdvance(SkGlyph* glyph) { return fProxy->generateAdvance(glyph); } in generateAdvance()
52 void RandomScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics()
87 void RandomScalerContext::generateImage(const SkGlyph& glyph) { in generateImage()
DTestTypeface.cpp93 void TestTypeface::getAdvance(SkGlyph* glyph) { in getAdvance()
163 bool generateAdvance(SkGlyph* glyph) override { in generateAdvance()
173 void generateMetrics(SkGlyph* glyph) override { in generateMetrics()
179 void generateImage(const SkGlyph&) override { SK_ABORT("Should have generated from path."); } in generateImage() argument
DTestTypeface.h26 class SkGlyph; variable
68 void getAdvance(SkGlyph* glyph);
DTestSVGTypeface.h34 class SkGlyph; variable
60 void getAdvance(SkGlyph* glyph) const;
/third_party/skia/src/gpu/text/
DGrAtlasManager.h18 class SkGlyph; variable
67 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(const SkGlyph&,

12