Home
last modified time | relevance | path

Searched refs:fGlyphs (Results 1 – 25 of 49) sorted by relevance

12

/third_party/skia/gm/
Dcolrv1.cpp77 std::vector<uint16_t> fGlyphs; member
78 size_t bytesize() { return fGlyphs.size() * sizeof(uint16_t); } in bytesize()
84 fEmojiFont.fGlyphs = {19, 33, 34, 35, 20, 21, 22, 23, 24, 25}; in onOnceBeforeDraw()
95 fEmojiFont.fGlyphs = {2, 5, 6, 7, 8}; in onOnceBeforeDraw()
98 fEmojiFont.fGlyphs = {9, 10, 11, 12, 13, 14}; in onOnceBeforeDraw()
101 fEmojiFont.fGlyphs = {15, 16, 17, 18, 19, 20}; in onOnceBeforeDraw()
104 fEmojiFont.fGlyphs = {21, 22, 23, 24}; in onOnceBeforeDraw()
107 fEmojiFont.fGlyphs = {25, 26, 27, 28, 29, 30}; in onOnceBeforeDraw()
110 fEmojiFont.fGlyphs = {31, 32, 33, 34}; in onOnceBeforeDraw()
113 fEmojiFont.fGlyphs = {35, 36, 37, 38, 39}; in onOnceBeforeDraw()
[all …]
Ddrawglyphs.cpp30 fGlyphs.append(fGlyphCount); in onOnceBeforeDraw()
31 fFont.textToGlyphs(gText, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphCount); in onOnceBeforeDraw()
34 fFont.getPos(fGlyphs.begin(), fGlyphCount, fPositions.begin()); in onOnceBeforeDraw()
59 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 100}, fFont, in onDraw()
62 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 120}, fFont, in onDraw()
69 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 640}, fFont, in onDraw()
72 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fXforms.begin(), in onDraw()
81 SkTDArray<SkGlyphID> fGlyphs; member in DrawGlyphsGM
Dtextblobshader.cpp42 fGlyphs.append(font.countText(txt, txtLen, SkTextEncoding::kUTF8)); in onOnceBeforeDraw()
43 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphs.count()); in onOnceBeforeDraw()
53 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw()
57 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
60 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
66 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
118 SkTDArray<uint16_t> fGlyphs; member in TextBlobShaderGM
Dtextblob.cpp94 fGlyphs.append(glyphCount); in onOnceBeforeDraw()
95 font.textToGlyphs(fText, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), glyphCount); in onOnceBeforeDraw()
143 if (count > fGlyphs.count() - currentGlyph) { in makeBlob()
144 count = fGlyphs.count() - currentGlyph; in makeBlob()
161 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
171 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
183 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
197 SkTDArray<uint16_t> fGlyphs; member in TextBlobGM
/third_party/flutter/skia/bench/
DTextBlobBench.cpp36 fGlyphs.setCount(fFont.countText(text, strlen(text), SkTextEncoding::kUTF8)); in onDelayedSetup()
37 fXPos.setCount(fGlyphs.count()); in onDelayedSetup()
39 … fFont.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphs.count()); in onDelayedSetup()
40 fFont.getXPos(&fGlyphs[0], fGlyphs.count(), fXPos.begin()); in onDelayedSetup()
45 fBuilder.allocRunPosH(fFont, fGlyphs.count(), 10, nullptr); in makeBlob()
46 memcpy(run.glyphs, &fGlyphs[0], fGlyphs.count() * sizeof(uint16_t)); in makeBlob()
54 SkTDArray<uint16_t> fGlyphs; member in SkTextBlobBench
DFontCacheBench.cpp152 uint16_t fGlyphs[100]; member in FontPathBench
172 for (size_t i = 0; i < SK_ARRAY_COUNT(fGlyphs); ++i) { in onDelayedSetup()
173 fGlyphs[i] = i; in onDelayedSetup()
181 for (size_t i = 0; i < SK_ARRAY_COUNT(fGlyphs); ++i) { in onDraw()
182 fFont.getPath(fGlyphs[i], &path); in onDraw()
185 fFont.getPaths(fGlyphs, SK_ARRAY_COUNT(fGlyphs), in onDraw()
DPathTextBench.cpp54 sk_ignore_unused_variable(cache->getScalerContext()->getPath(id, &fGlyphs[i])); in onDelayedSetup()
55 fGlyphs[i].setIsVolatile(fUncached); in onDelayedSetup()
60 const SkPath& glyph = fGlyphs[i % kNumGlyphs]; in onDelayedSetup()
92 const SkPath& glyph = fGlyphs[i % kNumGlyphs]; in onDraw()
101 SkPath fGlyphs[kNumGlyphs]; member in PathTextBench
/third_party/skia/bench/
DTextBlobBench.cpp36 fGlyphs.setCount(fFont.countText(text, strlen(text), SkTextEncoding::kUTF8)); in onDelayedSetup()
37 fXPos.setCount(fGlyphs.count()); in onDelayedSetup()
39 … fFont.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphs.count()); in onDelayedSetup()
40 fFont.getXPos(&fGlyphs[0], fGlyphs.count(), fXPos.begin()); in onDelayedSetup()
45 fBuilder.allocRunPosH(fFont, fGlyphs.count(), 10, nullptr); in makeBlob()
46 memcpy(run.glyphs, &fGlyphs[0], fGlyphs.count() * sizeof(uint16_t)); in makeBlob()
54 SkTDArray<uint16_t> fGlyphs; member in SkTextBlobBench
DFontCacheBench.cpp152 uint16_t fGlyphs[100]; member in FontPathBench
172 for (size_t i = 0; i < SK_ARRAY_COUNT(fGlyphs); ++i) { in onDelayedSetup()
173 fGlyphs[i] = i; in onDelayedSetup()
181 for (size_t i = 0; i < SK_ARRAY_COUNT(fGlyphs); ++i) { in onDraw()
182 fFont.getPath(fGlyphs[i], &path); in onDraw()
185 fFont.getPaths(fGlyphs, SK_ARRAY_COUNT(fGlyphs), in onDraw()
DPathTextBench.cpp54 sk_ignore_unused_variable(strike->getScalerContext()->getPath(id, &fGlyphs[i])); in onDelayedSetup()
55 fGlyphs[i].setIsVolatile(fUncached); in onDelayedSetup()
60 const SkPath& glyph = fGlyphs[i % kNumGlyphs]; in onDelayedSetup()
92 const SkPath& glyph = fGlyphs[i % kNumGlyphs]; in onDraw()
101 SkPath fGlyphs[kNumGlyphs]; member in PathTextBench
/third_party/flutter/skia/gm/
Dtextblobshader.cpp42 fGlyphs.append(font.countText(txt, txtLen, SkTextEncoding::kUTF8)); in onOnceBeforeDraw()
43 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphs.count()); in onOnceBeforeDraw()
53 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw()
57 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
60 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
66 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw()
118 SkTDArray<uint16_t> fGlyphs; member in TextBlobShaderGM
Dtextblob.cpp94 fGlyphs.append(glyphCount); in onOnceBeforeDraw()
95 font.textToGlyphs(fText, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), glyphCount); in onOnceBeforeDraw()
143 if (count > fGlyphs.count() - currentGlyph) { in makeBlob()
144 count = fGlyphs.count() - currentGlyph; in makeBlob()
161 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
171 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
183 memcpy(buf.glyphs, fGlyphs.begin() + currentGlyph, count * sizeof(uint16_t)); in makeBlob()
197 SkTDArray<uint16_t> fGlyphs; member in TextBlobGM
/third_party/skia/experimental/sktext/src/
DLogicalRun.h16 … return {fGlyphs.data(), fPositions.data(), fOffsets.data(), fClusters.data(), {0.0f, 0.0f} }; in newRunBuffer()
19 fFont.getBounds(fGlyphs.data(), fGlyphs.size(), fBounds.data(), nullptr); in commit()
20 fPositions[fGlyphs.size()] = fAdvance; in commit()
21 fClusters[fGlyphs.size()] = this->leftToRight() ? fUtf8Range.end() : fUtf8Range.begin(); in commit()
38 size_t size() const { return fGlyphs.size(); } in size()
77 SkSTArray<128, SkGlyphID, true> fGlyphs; variable
DVisualRun.h32 fGlyphs.reserve_back(glyphs.size()); in VisualRun()
34 fGlyphs.emplace_back(glyph); in VisualRun()
56 size_t size() const { return fGlyphs.size(); } in size()
92 SkSTArray<128, SkGlyphID, true> fGlyphs; variable
/third_party/skia/samplecode/
DSamplePathText.cpp30 for (Glyph& glyph : fGlyphs) { in reset()
50 fGlyphs[i].init(fRand, p); in onOnceBeforeDraw()
94 GlyphAnimator(Glyph* glyphs) : fGlyphs(glyphs) {} in GlyphAnimator()
99 Glyph& glyph = fGlyphs[i]; in draw()
111 Glyph* const fGlyphs; member in PathText::GlyphAnimator
117 Glyph fGlyphs[kNumPaths]; member in PathText
121 std::unique_ptr<GlyphAnimator> fGlyphAnimator = std::make_unique<GlyphAnimator>(fGlyphs);
195 Glyph* glyph = &fGlyphs[idx]; in runAnimationTask()
233 canvas->drawPath(fGlyphs[i].fPath, fGlyphs[i].fPaint); in draw()
279 const Glyph& glyph = fGlyphs[i]; in runAnimationTask()
[all …]
/third_party/flutter/skia/src/core/
DSkFontPriv.h85 fGlyphs = reinterpret_cast<const uint16_t*>(text); in SkAutoToGlyphs()
91 fGlyphs = fStorage.get(); in SkAutoToGlyphs()
96 const uint16_t* glyphs() const { return fGlyphs; } in glyphs()
100 const uint16_t* fGlyphs; variable
DSkStrikeSpec.cpp236 fGlyphs.reset(glyphIDs.size()); in glyphs()
237 return fStrike->metrics(glyphIDs, fGlyphs.get()); in glyphs()
244 fGlyphs.reset(glyphIDs.size()); in glyphs()
245 return fStrike->preparePaths(glyphIDs, fGlyphs.get()); in glyphs()
252 fGlyphs.reset(glyphIDs.size()); in glyphs()
253 return fStrike->prepareImages(glyphIDs, fGlyphs.get()); in glyphs()
DSkStrikeSpec.h105 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs; variable
116 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs; variable
127 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs; variable
/third_party/skia/src/core/
DSkFontPriv.h88 fGlyphs = reinterpret_cast<const uint16_t*>(text); in SkAutoToGlyphs()
97 fGlyphs = fStorage.get(); in SkAutoToGlyphs()
102 const uint16_t* glyphs() const { return fGlyphs; } in glyphs()
106 const uint16_t* fGlyphs; variable
DSkStrikeSpec.cpp234 fGlyphs.reset(glyphIDs.size()); in glyphs()
235 return fStrike->metrics(glyphIDs, fGlyphs.get()); in glyphs()
251 fGlyphs.reset(glyphIDs.size()); in glyphs()
252 return fStrike->preparePaths(glyphIDs, fGlyphs.get()); in glyphs()
276 fGlyphs.reset(glyphIDs.size()); in glyphs()
277 return fStrike->prepareImages(glyphIDs, fGlyphs.get()); in glyphs()
/third_party/skia/modules/skparagraph/src/
DOneLineShaper.cpp48 unresolved.fGlyphs = front.fGlyphs; in commitRunBuffer()
70 SkDebugf("[%zu:%zu) ", resolved.fGlyphs.start, resolved.fGlyphs.end); in printState()
114 GlyphRange resolvedGlyphs(resolvedGlyphsStart, unresolved.fGlyphs.start); in fillGaps()
129 resolvedGlyphsStart = unresolved.fGlyphs.end; in fillGaps()
158 fUnresolvedGlyphs += unresolved.fGlyphs.width(); in finish()
180 auto glyphs = resolvedBlock.fGlyphs; in finish()
225 piece->fGlyphs[index] = run->fGlyphs[i]; in finish()
271 if (unresolved.fGlyphs.width() == fCurrentRun->size()) { in addUnresolvedWithRun()
281 lastUnresolved.fGlyphs.end = glyphRange.end; in addUnresolvedWithRun()
291 … lastUnresolved.fGlyphs.start = std::min(lastUnresolved.fGlyphs.start, glyphRange.start); in addUnresolvedWithRun()
[all …]
DOneLineShaper.h42 , fGlyphs(glyphs) { } in RunBlock()
48 , fGlyphs(GlyphRange(0, fRun->size())) { } in RunBlock()
52 GlyphRange fGlyphs; member
53 bool isFullyResolved() { return fRun != nullptr && fGlyphs.width() == fRun->size(); } in isFullyResolved()
/third_party/flutter/skia/samplecode/
DSamplePathText.cpp29 for (Glyph& glyph : fGlyphs) { in reset()
48 fGlyphs[i].init(fRand, p); in onOnceBeforeDraw()
80 for (Glyph& glyph : fGlyphs) { in drawGlyphs()
103 Glyph fGlyphs[kNumPaths]; member in PathText
184 Glyph* glyph = &fGlyphs[idx]; in runAnimationTask()
222 canvas->drawPath(fGlyphs[i].fPath, fGlyphs[i].fPaint); in drawGlyphs()
270 const Glyph& glyph = fGlyphs[i]; in runAnimationTask()
326 canvas->drawPath(fFrontPaths[i], fGlyphs[i].fPaint); in drawGlyphs()
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp337 SkSpan<Variant> fGlyphs; member in __anon0f093dcf0111::GlyphVector
345 , fGlyphs{glyphs} {
360 return SkMakeSpan(reinterpret_cast<const GrGlyph**>(fGlyphs.data()), fGlyphs.size()); in glyphs()
369 for (auto& variant : fGlyphs) { in packedGlyphIDToGrGlyph()
399 auto glyphs = fGlyphs.subspan(begin, end - begin); in regenerateAtlas()
423 if (success && begin + glyphsPlacedInAtlas == SkCount(fGlyphs)) { in regenerateAtlas()
432 if (end == SkCount(fGlyphs)) { in regenerateAtlas()
505 mutable GlyphVector fGlyphs; member in __anon0f093dcf0111::DirectMaskSubRun
519 , fGlyphs{std::move(glyphs)} {}
588 return SkCount(fGlyphs.glyphs()); in glyphCount()
[all …]
/third_party/icu/icu4c/source/layoutex/layout/
DParagraphLayout.h337 const LEGlyphID *fGlyphs; variable
697 return fGlyphs; in getGlyphs()
726 …: UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), … in VisualRun()
732 …: UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), … in VisualRun()
740 fGlyphs(glyphs), fPositions(positions), fGlyphToCharMap(glyphToCharMap) in VisualRun()

12