Home
last modified time | relevance | path

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

12

/frameworks/minikin/include/minikin/
DMinikinPaint.h49 struct MinikinPaint { struct
50 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint() function
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,
110 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
116 const MinikinPaint& paint, size_t dstStart,
122 bool isRtl, const MinikinPaint& paint, size_t bufStart,
128 const MinikinPaint& paint, StartHyphenEdit startHyphen,
DBoundsCache.h41 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint);
54 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate()
88 static MinikinRect getBounds(const LayoutPiece& layoutPiece, const MinikinPaint& paint);
DLayoutCore.h34 struct MinikinPaint;
48 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
DMeasurement.h34 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 …]
DBoundsCacheTest.cpp52 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
71 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
98 MinikinPaint paint1(buildFontCollection("Ascii.ttf")); in TEST()
103 MinikinPaint paint2(buildFontCollection("Emoji.ttf")); in TEST()
114 MinikinPaint paint1(collection); in TEST()
119 MinikinPaint paint2(collection); in TEST()
130 MinikinPaint paint1(collection); in TEST()
136 MinikinPaint paint2(collection); in TEST()
150 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
DMeasuredTextTest.cpp38 MinikinPaint paint1(font); in TEST()
42 MinikinPaint paint2(font); in TEST()
66 MinikinPaint paint(font); in TEST()
84 MinikinPaint paint(font); in TEST()
98 MinikinPaint paint(font); in TEST()
113 MinikinPaint paint(font); in TEST()
116 MinikinPaint paint2(font); in TEST()
137 MinikinPaint paint(font); in TEST()
156 MinikinPaint paint(font); in TEST()
159 MinikinPaint paint2(font); in TEST()
[all …]
DLayoutTest.cpp39 static void getBounds(const U16StringPiece& text, Bidi bidiFlags, const MinikinPaint& paint, in getBounds()
59 MinikinPaint paint(mCollection); in TEST_F()
146 MinikinPaint paint(mCollection); in TEST_F()
239 MinikinPaint paint(mCollection); in TEST_F()
334 MinikinPaint paint(mCollection); in TEST_F()
357 MinikinPaint paint(mCollection); in TEST_F()
386 MinikinPaint paint(mCollection); in TEST_F()
447 MinikinPaint paint(fc); in TEST_F()
457 MinikinPaint paint(fc); in TEST_F()
468 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.h37 float GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint,
41 const minikin::MinikinPaint& paint,
46 const minikin::MinikinPaint& paint,
49 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
DMinikinUtils.cpp31 minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, in prepareMinikinPaint()
36 minikin::MinikinPaint minikinPaint(resolvedFace->fFontCollection); in prepareMinikinPaint()
57 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in doLayout()
75 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in getBounds()
88 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()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h41 float GetHorizontalAdvance(uint32_t glyph_id, const MinikinPaint& paint,
43 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
45 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp88 float FreeTypeMinikinFontForTest::GetHorizontalAdvance(uint32_t glyphId, const MinikinPaint& paint, in GetHorizontalAdvance()
95 const MinikinPaint& paint, in GetBounds()
108 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()
DBoundsCache.cpp21 void ValueExtractor::operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in operator ()()
28 MinikinRect BoundsCache::getBounds(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in getBounds()
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 ()()
261 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()() argument
287 const Range& contextRange, const MinikinPaint& paint, in buildLayout()
/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()

12