Home
last modified time | relevance | path

Searched refs:glyphIDs (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/src/core/
DSkGlyphRun.cpp26 SkSpan<const SkGlyphID> glyphIDs, in SkGlyphRun() argument
30 : fSource{SkMakeZip(glyphIDs, positions)} in SkGlyphRun()
167 auto glyphIDs = run.glyphsIDs(); in makeBlob() local
168 memcpy(buffer.glyphs, glyphIDs.data(), glyphIDs.size_bytes()); in makeBlob()
175 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs, SkPoint origin, SkPoint* buffer) { in draw_text_positions() argument
178 auto glyphs = storage.glyphs(glyphIDs); in draw_text_positions()
186 return SkMakeSpan(buffer, glyphIDs.size()); in draw_text_positions()
193 auto glyphIDs = textToGlyphIDs(font, bytes, byteLength, encoding); in textToGlyphRunList() local
195 this->prepareBuffers(glyphIDs.size(), 0); in textToGlyphRunList()
196 if (!glyphIDs.empty()) { in textToGlyphRunList()
[all …]
DSkScalerCache.cpp84 SkSpan<const SkGlyphID> glyphIDs, PathDetail pathDetail, const SkGlyph** results) { in internalPrepare() argument
87 for (auto glyphID : glyphIDs) { in internalPrepare()
97 return {{results, glyphIDs.size()}, delta}; in internalPrepare()
128 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) { in metrics() argument
130 auto [glyphs, delta] = this->internalPrepare(glyphIDs, kMetricsOnly, results); in metrics()
135 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) { in preparePaths() argument
137 auto [glyphs, delta] = this->internalPrepare(glyphIDs, kMetricsAndPath, results); in preparePaths()
142 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) { in prepareImages() argument
146 for (auto glyphID : glyphIDs) { in prepareImages()
153 return {{results, glyphIDs.size()}, delta}; in prepareImages()
DSkStrikeSpec.cpp233 SkSpan<const SkGlyph*> SkBulkGlyphMetrics::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() argument
234 fGlyphs.reset(glyphIDs.size()); in glyphs()
235 return fStrike->metrics(glyphIDs, fGlyphs.get()); in glyphs()
250 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndPaths::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() argument
251 fGlyphs.reset(glyphIDs.size()); in glyphs()
252 return fStrike->preparePaths(glyphIDs, fGlyphs.get()); in glyphs()
275 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs() argument
276 fGlyphs.reset(glyphIDs.size()); in glyphs()
277 return fStrike->prepareImages(glyphIDs, fGlyphs.get()); in glyphs()
DSkFont.cpp170 const SkGlyphID* glyphIDs = atg.glyphs(); in measureText() local
174 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText()
205 void SkFont::getWidthsBounds(const SkGlyphID glyphIDs[], in getWidthsBounds() argument
212 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getWidthsBounds()
230 void SkFont::getPos(const SkGlyphID glyphIDs[], int count, SkPoint pos[], SkPoint origin) const { in getPos() argument
233 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getPos()
243 const SkGlyphID glyphIDs[], int count, SkScalar xpos[], SkScalar origin) const { in getXPos() argument
247 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getXPos()
257 void SkFont::getPaths(const SkGlyphID glyphIDs[], int count, in getPaths() argument
265 SkSpan<const SkGlyph*> glyphs = paths.glyphs(SkMakeSpan(glyphIDs, count)); in getPaths()
DSkStrikeCache.h78 SkSpan<const SkGlyph*> metrics(SkSpan<const SkGlyphID> glyphIDs, in metrics() argument
80 auto [glyphs, increase] = fScalerCache.metrics(glyphIDs, results); in metrics()
85 SkSpan<const SkGlyph*> preparePaths(SkSpan<const SkGlyphID> glyphIDs, in preparePaths() argument
87 auto [glyphs, increase] = fScalerCache.preparePaths(glyphIDs, results); in preparePaths()
92 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages() argument
94 auto [glyphs, increase] = fScalerCache.prepareImages(glyphIDs, results); in prepareImages()
DSkScalerCache.h83 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
86 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
89 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
136 SkSpan<const SkGlyphID> glyphIDs,
DSkStrikeSpec.h117 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
131 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
DSkGlyphRun.h33 SkSpan<const SkGlyphID> glyphIDs,
145 SkSpan<const SkGlyphID> glyphIDs,
DSkGlyphRunPainter.cpp142 auto glyphIDs = fRejects.source().get<0>(); in drawForBitmapDevice() local
144 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(glyphIDs); in drawForBitmapDevice()
DSkTextBlob.cpp1050 auto glyphIDs = it.glyphs(); in GetGlyphIDforTextBlob() local
1052 glyphIds.push_back(glyphIDs[i]); in GetGlyphIDforTextBlob()
/third_party/skia/tests/
DSkGlyphBufferTest.cpp102 const SkGlyphID glyphIDs[] = {1, 2, 3, 4}; in DEF_TEST() local
103 auto source = SkMakeZip(glyphIDs, positions); in DEF_TEST()
156 const SkGlyphID glyphIDs[] = {1, 2, 3, 4}; in DEF_TEST() local
158 auto source = SkMakeZip(glyphIDs, positions); in DEF_TEST()
165 REPORTER_ASSERT(reporter, packedID.packedID().glyphID() == glyphIDs[i]); in DEF_TEST()
177 REPORTER_ASSERT(reporter, glyphIDs[i] == packedID.packedID().glyphID()); in DEF_TEST()
DSkShaperJSONWriterTest.cpp77 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
81 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
107 REPORTER_ASSERT(reporter, a.glyphIDs == toCheckGlyphIDs); in DEF_TEST()
117 SkMakeSpan(oneCase.glyphIDs), in DEF_TEST()
/third_party/skia/modules/skparagraph/tests/
DSkShaperJSONWriter.cpp176 SkSpan<const SkGlyphID> glyphIDs, in VisualizeClusters() argument
194 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphRangeStart], glyphRangeCount}; in VisualizeClusters()
216 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphStartIndex], in VisualizeClusters()
230 SkSpan<const SkGlyphID> glyphIDs) { in displayMToN() argument
232 std::string mString = std::to_string(glyphIDs.size()); in displayMToN()
238 for (auto glyphID : glyphIDs) { in displayMToN()
DSkShaperJSONWriterTest.cpp77 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
81 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
107 REPORTER_ASSERT(reporter, a.glyphIDs == toCheckGlyphIDs); in DEF_TEST()
117 SkSpan(oneCase.glyphIDs), in DEF_TEST()
DSkShaperJSONWriter.h52 SkSpan<const SkGlyphID> glyphIDs,
59 SkSpan<const SkGlyphID> glyphIDs);
/third_party/skia/src/utils/
DSkShaperJSONWriter.cpp169 SkSpan<const SkGlyphID> glyphIDs, in VisualizeClusters() argument
187 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphRangeStart], glyphRangeCount}; in VisualizeClusters()
209 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphStartIndex], in VisualizeClusters()
223 SkSpan<const SkGlyphID> glyphIDs) { in displayMToN() argument
225 std::string mString = std::to_string(glyphIDs.size()); in displayMToN()
231 for (auto glyphID : glyphIDs) { in displayMToN()
DSkShaperJSONWriter.h51 SkSpan<const SkGlyphID> glyphIDs,
58 SkSpan<const SkGlyphID> glyphIDs);
/third_party/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp110 std::vector<SkGlyphID> glyphIDs; in SkPDFMakeCIDGlyphWidthsArray() local
112 glyphIDs.push_back(SkToU16(index)); in SkPDFMakeCIDGlyphWidthsArray()
114 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs)); in SkPDFMakeCIDGlyphWidthsArray()
DSkPDFType1Font.cpp306 SkAutoTArray<SkGlyphID> glyphIDs{glyphRangeSize}; in SkPDFEmitType1Font() local
307 glyphIDs[0] = 0; in SkPDFEmitType1Font()
309 glyphIDs[gId - firstGlyphID + 1] = gId; in SkPDFEmitType1Font()
313 auto glyphs = metrics.glyphs(SkMakeSpan(glyphIDs.get(), glyphRangeSize)); in SkPDFEmitType1Font()
DSkPDFDevice.cpp814 const SkGlyphID* glyphIDs = glyphRun.glyphsIDs().data(); in internalDrawGlyphRun() local
818 if (!glyphCount || !glyphIDs || glyphRunFont.getSize() <= 0 || this->hasEmptyClip()) { in internalDrawGlyphRun()
901 unichar != map_glyph(glyphToUnicode, glyphIDs[index])) // test single Unichar map in internalDrawGlyphRun()
921 SkGlyphID gid = glyphIDs[index]; in internalDrawGlyphRun()
/third_party/skia/bench/
DSkGlyphCacheBench.cpp34 SkSpan<const SkPackedGlyphID> glyphIDs{&glyphs[SkTo<int>(' ')], glyphCount}; in do_font_stuff() local
37 (void)images.glyphs(glyphIDs); in do_font_stuff()
/third_party/skia/include/core/
DSkFont.h469 void getPaths(const SkGlyphID glyphIDs[], int count,
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp534 GlyphVector::Variant* glyphIDs = alloc->makePODArray<GlyphVector::Variant>(drawables.size()); in Make() local
554 glyphIDs[goodPosCount].packedGlyphID = skGlyph->getPackedID(); in Make()
570 GlyphVector{std::move(strike), {glyphIDs, goodPosCount}}, glyphsExcluded); in Make()
1735 GlyphVector::Variant* glyphIDs = static_cast<GlyphVector::Variant*>( in Make() local
1757 glyphIDs[goodPosCount].packedGlyphID = skGlyph->getPackedID(); in Make()
1770 GlyphVector{std::move(strike), {glyphIDs, goodPosCount}}); in Make()
/third_party/skia/modules/skshaper/src/
DSkShaper_harfbuzz.cpp1618 SkAutoSTArray<32, SkGlyphID> glyphIDs(len); local
1620 glyphIDs[i] = info[i].codepoint;
1625 run.fFont.getBounds(glyphIDs.get(), len, glyphBounds.get(), &p);
1628 run.fFont.GetWidths(glyphIDs.get(), len, nullptr, glyphBounds.get());
/third_party/skia/src/xps/
DSkXPSDevice.cpp1902 const SkGlyphID* glyphIDs = run.glyphsIDs().data(); in onDrawGlyphRunList() local
1906 if (!glyphCount || !glyphIDs || font.getSize() <= 0) { in onDrawGlyphRunList()
1931 if (numGlyphs <= glyphIDs[i]) { in onDrawGlyphRunList()
1936 xpsGlyph.index = glyphIDs[i]; in onDrawGlyphRunList()

12