/third_party/skia/src/core/ |
D | SkGlyphRun.cpp | 26 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 …]
|
D | SkScalerCache.cpp | 84 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()
|
D | SkStrikeSpec.cpp | 233 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()
|
D | SkFont.cpp | 170 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()
|
D | SkStrikeCache.h | 78 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()
|
D | SkScalerCache.h | 83 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,
|
D | SkStrikeSpec.h | 117 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 131 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
|
D | SkGlyphRun.h | 33 SkSpan<const SkGlyphID> glyphIDs, 145 SkSpan<const SkGlyphID> glyphIDs,
|
D | SkGlyphRunPainter.cpp | 142 auto glyphIDs = fRejects.source().get<0>(); in drawForBitmapDevice() local 144 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(glyphIDs); in drawForBitmapDevice()
|
D | SkTextBlob.cpp | 1050 auto glyphIDs = it.glyphs(); in GetGlyphIDforTextBlob() local 1052 glyphIds.push_back(glyphIDs[i]); in GetGlyphIDforTextBlob()
|
/third_party/skia/tests/ |
D | SkGlyphBufferTest.cpp | 102 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()
|
D | SkShaperJSONWriterTest.cpp | 77 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/ |
D | SkShaperJSONWriter.cpp | 176 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()
|
D | SkShaperJSONWriterTest.cpp | 77 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()
|
D | SkShaperJSONWriter.h | 52 SkSpan<const SkGlyphID> glyphIDs, 59 SkSpan<const SkGlyphID> glyphIDs);
|
/third_party/skia/src/utils/ |
D | SkShaperJSONWriter.cpp | 169 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()
|
D | SkShaperJSONWriter.h | 51 SkSpan<const SkGlyphID> glyphIDs, 58 SkSpan<const SkGlyphID> glyphIDs);
|
/third_party/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 110 std::vector<SkGlyphID> glyphIDs; in SkPDFMakeCIDGlyphWidthsArray() local 112 glyphIDs.push_back(SkToU16(index)); in SkPDFMakeCIDGlyphWidthsArray() 114 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs)); in SkPDFMakeCIDGlyphWidthsArray()
|
D | SkPDFType1Font.cpp | 306 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()
|
D | SkPDFDevice.cpp | 814 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/ |
D | SkGlyphCacheBench.cpp | 34 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/ |
D | SkFont.h | 469 void getPaths(const SkGlyphID glyphIDs[], int count,
|
/third_party/skia/src/gpu/text/ |
D | GrTextBlob.cpp | 534 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/ |
D | SkShaper_harfbuzz.cpp | 1618 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/ |
D | SkXPSDevice.cpp | 1902 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()
|