Home
last modified time | relevance | path

Searched refs:advances (Results 1 – 25 of 158) sorted by relevance

1234567

/third_party/flutter/engine/flutter/third_party/txt/tests/
DLayoutTest.cpp33 float* advances, in expectAdvances() argument
37 EXPECT_EQ(expected[i], advances[i]) in expectAdvances()
39 << ", Actual: " << advances[i]; in expectAdvances()
41 EXPECT_EQ(UNTOUCHED_MARKER, advances[expected.size()]); in expectAdvances()
44 static void resetAdvances(float* advances, size_t length) { in resetAdvances() argument
46 advances[i] = UNTOUCHED_MARKER; in resetAdvances()
70 float advances[kMaxAdvanceLength]; in TEST_F() local
89 resetAdvances(advances, kMaxAdvanceLength); in TEST_F()
90 layout.getAdvances(advances); in TEST_F()
95 expectAdvances(expectedValues, advances, kMaxAdvanceLength); in TEST_F()
[all …]
DMeasurementTests.cpp23 float getAdvance(const float* advances, const char* src) { in getAdvance() argument
29 return getRunAdvance(advances, buf, 0, size, offset); in getAdvance()
/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DMeasurement.cpp32 static float getRunAdvance(const float* advances, in getRunAdvance() argument
42 float charAdvance = advances[i - layoutStart]; in getRunAdvance()
49 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance()
55 if (advances[nextCluster - layoutStart] != 0.0f) in getRunAdvance()
62 if (GraphemeBreak::isGraphemeBreak(advances + (start - layoutStart), buf, in getRunAdvance()
77 float getRunAdvance(const float* advances, in getRunAdvance() argument
82 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance()
93 size_t getOffsetForAdvance(const float* advances, in getOffsetForAdvance() argument
101 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) { in getOffsetForAdvance()
105 float width = advances[i - start]; in getOffsetForAdvance()
[all …]
DGraphemeBreak.cpp63 bool GraphemeBreak::isGraphemeBreak(const float* advances, in isGraphemeBreak() argument
125 (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak()
189 if (advances != nullptr) { in isGraphemeBreak()
223 size_t GraphemeBreak::getTextRunCursor(const float* advances, in getTextRunCursor() argument
236 while (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
246 while (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
251 if (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
DLayout.cpp634 float* advances) { in measureText() argument
642 collection, NULL, advances); in measureText()
677 float* advances) { in doLayoutRunCached() argument
715 advances ? advances + (iter - start) : advances); in doLayoutRunCached()
747 layout, advances ? advances + (bufStart - start) : advances); in doLayoutRunCached()
763 float* advances) { in doLayoutWord() argument
778 if (advances) { in doLayoutWord()
779 layoutForWord.getAdvances(advances); in doLayoutWord()
787 if (advances) { in doLayoutWord()
788 layoutForWord->getAdvances(advances); in doLayoutWord()
[all …]
DLayout.h94 float* advances);
109 void getAdvances(float* advances);
142 float* advances);
154 float* advances);
DMeasurement.h24 float getRunAdvance(const float* advances,
30 size_t getOffsetForAdvance(const float* advances,
DGraphemeBreak.h39 static bool isGraphemeBreak(const float* advances,
47 static size_t getTextRunCursor(const float* advances,
/third_party/flutter/txt/src/minikin/
DMeasurement.cpp32 static float getRunAdvance(const float* advances, in getRunAdvance() argument
42 float charAdvance = advances[i - layoutStart]; in getRunAdvance()
49 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance()
55 if (advances[nextCluster - layoutStart] != 0.0f) in getRunAdvance()
62 if (GraphemeBreak::isGraphemeBreak(advances + (start - layoutStart), buf, in getRunAdvance()
77 float getRunAdvance(const float* advances, in getRunAdvance() argument
82 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance()
93 size_t getOffsetForAdvance(const float* advances, in getOffsetForAdvance() argument
101 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) { in getOffsetForAdvance()
105 float width = advances[i - start]; in getOffsetForAdvance()
[all …]
DGraphemeBreak.cpp63 bool GraphemeBreak::isGraphemeBreak(const float* advances, in isGraphemeBreak() argument
125 (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak()
189 if (advances != nullptr) { in isGraphemeBreak()
223 size_t GraphemeBreak::getTextRunCursor(const float* advances, in getTextRunCursor() argument
236 while (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
246 while (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
251 if (!isGraphemeBreak(advances, buf, start, count, offset)) { in getTextRunCursor()
DLayout.h94 float* advances);
109 void getAdvances(float* advances);
142 float* advances);
154 float* advances);
DLayout.cpp614 float* advances) { in measureText() argument
622 collection, NULL, advances); in measureText()
638 float* advances) { in doLayoutRunCached() argument
662 advances ? advances + (iter - start) : advances); in doLayoutRunCached()
687 layout, advances ? advances + (bufStart - start) : advances); in doLayoutRunCached()
703 float* advances) { in doLayoutWord() argument
718 if (advances) { in doLayoutWord()
719 layoutForWord.getAdvances(advances); in doLayoutWord()
727 if (advances) { in doLayoutWord()
728 layoutForWord->getAdvances(advances); in doLayoutWord()
[all …]
DMeasurement.h24 float getRunAdvance(const float* advances,
30 size_t getOffsetForAdvance(const float* advances,
DGraphemeBreak.h39 static bool isGraphemeBreak(const float* advances,
47 static size_t getTextRunCursor(const float* advances,
/third_party/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp42 int16_t findMode(SkSpan<const int16_t> advances) { in findMode() argument
43 if (advances.empty()) { in findMode()
47 int16_t previousAdvance = advances[0]; in findMode()
48 int16_t currentModeAdvance = advances[0]; in findMode()
52 for (size_t i = 1; i < advances.size(); ++i) { in findMode()
53 if (advances[i] == previousAdvance) { in findMode()
60 previousAdvance = advances[i]; in findMode()
117 std::vector<int16_t> advances; in SkPDFMakeCIDGlyphWidthsArray() local
118 advances.reserve_back(glyphs.size()); in SkPDFMakeCIDGlyphWidthsArray()
120 advances.push_back((int16_t)glyph->advanceX()); in SkPDFMakeCIDGlyphWidthsArray()
[all …]
/third_party/flutter/engine/flutter/third_party/txt/tests/old/stresstest/
DMultithreadTest.cpp83 std::vector<float> advances(text.size()); in thread_main() local
84 layout.getAdvances(advances.data()); in thread_main()
85 for (size_t k = 0; k < advances.size(); ++k) { in thread_main()
87 LOG_ALWAYS_FATAL_IF(advances[k] != 10.0f, in thread_main()
/third_party/flutter/skia/modules/skshaper/src/
DSkShaper_primitive.cpp147 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() local
148 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape()
155 advances.get() + glyphOffset, &bytesCollapsed); in shape()
175 position.fX += advances[i + glyphOffset]; in shape()
/third_party/skia/modules/skshaper/src/
DSkShaper_primitive.cpp179 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() local
180 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape()
187 advances.get() + glyphOffset, &bytesCollapsed); in shape()
207 position.fX += advances[i + glyphOffset]; in shape()
/third_party/skia/third_party/externals/freetype/src/base/
Dftadvanc.c27 FT_Fixed* advances, in _ft_face_scale_advances() argument
50 advances[nn] = FT_MulDiv( advances[nn], scale, 64 ); in _ft_face_scale_advances()
/third_party/flutter/skia/third_party/externals/freetype/src/base/
Dftadvanc.c28 FT_Fixed* advances, in _ft_face_scale_advances() argument
51 advances[nn] = FT_MulDiv( advances[nn], scale, 64 ); in _ft_face_scale_advances()
/third_party/freetype/src/base/
Dftadvanc.c27 FT_Fixed* advances, in _ft_face_scale_advances() argument
50 advances[nn] = FT_MulDiv( advances[nn], scale, 64 ); in _ft_face_scale_advances()
/third_party/skia/third_party/externals/freetype/src/type1/
Dt1gload.c280 FT_Fixed* advances ) in T1_Get_Advances() argument
296 advances[nn] = 0; in T1_Get_Advances()
332 advances[nn] = FIXED_TO_INT( decoder.builder.advance.x ); in T1_Get_Advances()
334 advances[nn] = 0; in T1_Get_Advances()
338 advances[nn], in T1_Get_Advances()
339 advances[nn] == 1 ? "" : "s" )); in T1_Get_Advances()
/third_party/flutter/skia/third_party/externals/freetype/src/type1/
Dt1gload.c281 FT_Fixed* advances ) in T1_Get_Advances() argument
297 advances[nn] = 0; in T1_Get_Advances()
333 advances[nn] = FIXED_TO_INT( decoder.builder.advance.x ); in T1_Get_Advances()
335 advances[nn] = 0; in T1_Get_Advances()
339 advances[nn], in T1_Get_Advances()
340 advances[nn] == 1 ? "" : "s" )); in T1_Get_Advances()
/third_party/freetype/src/type1/
Dt1gload.c280 FT_Fixed* advances ) in T1_Get_Advances() argument
296 advances[nn] = 0; in T1_Get_Advances()
332 advances[nn] = FIXED_TO_INT( decoder.builder.advance.x ); in T1_Get_Advances()
334 advances[nn] = 0; in T1_Get_Advances()
338 advances[nn], in T1_Get_Advances()
339 advances[nn] == 1 ? "" : "s" )); in T1_Get_Advances()
/third_party/flutter/skia/third_party/externals/freetype/src/truetype/
Dttdriver.c227 FT_Fixed *advances ) in tt_get_advances() argument
252 advances[nn] = ah; in tt_get_advances()
271 advances[nn] = aw; in tt_get_advances()

1234567