Home
last modified time | relevance | path

Searched refs:MinikinPaint (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/minikin/include/minikin/
DMinikinPaint.h49 struct MinikinPaint { struct
50 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint() argument
76 void copyFrom(const MinikinPaint& paint) { *this = paint; } in copyFrom() argument
78 MinikinPaint(const MinikinPaint&) = default;
79 MinikinPaint& operator=(const MinikinPaint&) = default; argument
81 MinikinPaint(MinikinPaint&&) = default;
82 MinikinPaint& operator=(MinikinPaint&&) = default; argument
84 inline bool operator==(const MinikinPaint& paint) const {
DMinikinFont.h30 struct MinikinPaint;
41 virtual float GetHorizontalAdvance(uint32_t glyph_id, const MinikinPaint& paint,
44 const MinikinPaint& paint, const FontFakery& fakery, in GetHorizontalAdvances()
51 virtual void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DLayoutPieces.h65 std::size_t operator()(const MinikinPaint& paint) const { return paint.hash(); } in operator()
72 std::unordered_map<MinikinPaint, uint32_t, PaintHasher> paintMap;
76 const MinikinPaint& paint) { in insert()
89 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in getOrCreate()
102 uint32_t findPaintId(const MinikinPaint& paint) const { in findPaintId()
112 result += (sizeof(MinikinPaint) + sizeof(uint32_t)) * paintMap.size(); in getMemoryUsage()
DMeasuredText.h58 const MinikinPaint& paint, uint32_t outOrigin,
67 virtual const MinikinPaint* getPaint() const { return nullptr; } in getPaint()
86 StyleRun(const Range& range, MinikinPaint&& paint, bool isRtl) in StyleRun()
103 const LayoutPieces& pieces, const MinikinPaint& paint, uint32_t outOrigin,
107 const MinikinPaint* getPaint() const override { return &mPaint; } in getPaint()
114 MinikinPaint mPaint;
147 const MinikinPaint& /* paint */, uint32_t /* outOrigin */, in appendLayout() argument
195 const MinikinPaint& paint, StartHyphenEdit startHyphen,
223 void addStyleRun(int32_t start, int32_t end, MinikinPaint&& paint, bool isRtl) { in addStyleRun()
DLayout.h68 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout()
80 const MinikinPaint& paint, StartHyphenEdit startHyphen,
111 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
117 const MinikinPaint& paint, size_t dstStart,
123 bool isRtl, const MinikinPaint& paint, size_t bufStart,
129 const MinikinPaint& paint, StartHyphenEdit startHyphen,
DLayoutCore.h34 struct MinikinPaint;
48 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
DLayoutCache.h39 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey()
136 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate()
/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp39 void operator()(const LayoutPiece& layout, const MinikinPaint& /* dir */) { mLayout = &layout; } in operator ()() argument
50 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
68 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
125 MinikinPaint paint1(buildFontCollection("Ascii.ttf")); in TEST()
128 MinikinPaint paint2(buildFontCollection("Emoji.ttf")); in TEST()
136 MinikinPaint paint1(collection); in TEST()
140 MinikinPaint paint2(collection); in TEST()
149 MinikinPaint paint1(collection); in TEST()
153 MinikinPaint paint2(collection); in TEST()
162 MinikinPaint paint1(collection); in TEST()
[all …]
DMeasuredTextTest.cpp37 MinikinPaint paint1(font); in TEST()
41 MinikinPaint paint2(font); in TEST()
65 MinikinPaint paint(font); in TEST()
84 MinikinPaint paint(font); in TEST()
87 MinikinPaint paint2(font); in TEST()
108 MinikinPaint paint(font); in TEST()
127 MinikinPaint paint(font); in TEST()
130 MinikinPaint paint2(font); in TEST()
152 MinikinPaint paint(font); in TEST()
158 MinikinPaint samePaint(font); in TEST()
[all …]
DLayoutTest.cpp52 MinikinPaint paint(mCollection); in TEST_F()
135 MinikinPaint paint(mCollection); in TEST_F()
224 MinikinPaint paint(mCollection); in TEST_F()
315 MinikinPaint paint(mCollection); in TEST_F()
338 MinikinPaint paint(mCollection); in TEST_F()
367 MinikinPaint paint(mCollection); in TEST_F()
428 MinikinPaint paint(fc); in TEST_F()
438 MinikinPaint paint(fc); in TEST_F()
449 MinikinPaint paint(fc); in TEST_F()
DLineBreakerTestHelper.h75 virtual const MinikinPaint* getPaint() const { return &mPaint; } in getPaint()
91 const LayoutPieces&, const MinikinPaint&, uint32_t, StartHyphenEdit, in appendLayout() argument
95 MinikinPaint mPaint;
DLayoutCoreTest.cpp30 static LayoutPiece buildLayout(const std::string& text, const MinikinPaint& paint) { in buildLayout()
42 MinikinPaint paint(fc); in buildLayout()
54 MinikinPaint paint(fc); in buildLayout()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h35 float GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint,
39 const minikin::MinikinPaint& paint,
44 const minikin::MinikinPaint& paint,
47 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
DMinikinUtils.cpp30 minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, in prepareMinikinPaint()
35 minikin::MinikinPaint minikinPaint(resolvedFace->fFontCollection); in prepareMinikinPaint()
56 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in doLayout()
75 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in measureText()
DMinikinSkia.cpp45 const minikin::MinikinPaint& paint, in MinikinFontSkia_SetSkiaFont()
55 float MinikinFontSkia::GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint, in GetHorizontalAdvance()
69 const minikin::MinikinPaint& paint, in GetHorizontalAdvances()
78 const minikin::MinikinPaint& paint, in GetBounds()
92 const minikin::MinikinPaint& paint, in GetFontExtent()
DMinikinUtils.h42 ANDROID_API static minikin::MinikinPaint prepareMinikinPaint(const Paint* paint,
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h39 float GetHorizontalAdvance(uint32_t glyph_id, const MinikinPaint& paint,
41 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
43 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp90 float FreeTypeMinikinFontForTest::GetHorizontalAdvance(uint32_t glyphId, const MinikinPaint& paint, in GetHorizontalAdvance()
97 const MinikinPaint& paint, in GetBounds()
110 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent()
/frameworks/minikin/libs/minikin/
DLayout.cpp49 const MinikinPaint& paint, StartHyphenEdit startHyphen, in doLayout()
61 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText()
74 const MinikinPaint& paint, size_t dstStart, in doLayoutRunCached()
107 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()() argument
129 bool isRtl, const MinikinPaint& paint, size_t bufStart, in doLayoutWord()
DMeasuredText.cpp40 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in operator ()()
89 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in operator ()()
169 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()() argument
180 const MinikinPaint& paint, uint32_t outOrigin, in appendLayout()
216 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()() argument
251 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()() argument
277 const Range& contextRange, const MinikinPaint& paint, in buildLayout()
DLayoutCore.cpp51 const MinikinPaint* paint;
343 const MinikinPaint& paint, StartHyphenEdit startHyphen, in LayoutPiece()
DOptimalLineBreaker.cpp132 const MinikinPaint* paint = run.getPaint(); in computePenalties()
/frameworks/minikin/tests/stresstest/
DMultithreadTest.cpp72 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in thread_main()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp94 MinikinPaint paint(collection); in BM_FontCollection_itemize()
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp72 minikin::MinikinPaint minikinPaint = MinikinUtils::prepareMinikinPaint(paint, typeface); in nAddStyleRun()

12