Home
last modified time | relevance | path

Searched refs:SkTextBlob (Results 1 – 25 of 224) sorted by relevance

123456789

/external/skia/src/core/
DSkTextBlob.cpp39 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize()
40 SkTextBlob::GlyphPositioning positioning, in StorageSize()
48 auto size = sizeof(SkTextBlob::RunRecord); in StorageSize()
61 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::First(const SkTextBlob* blob) { in First()
67 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::Next(const RunRecord* run) { in Next()
81 void SkTextBlob::RunRecord::validate(const uint8_t* storageTop) const { in validate()
94 static_assert(sizeof(SkTextBlob::RunRecord) == sizeof(RunRecordStorageEquivalent), in validate()
98 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::NextUnchecked(const RunRecord* run) { in NextUnchecked()
107 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount()
108 SkTextBlob::GlyphPositioning positioning, in PosCount()
[all …]
DSkTextBlobPriv.h30 static void Flatten(const SkTextBlob& , SkWriteBuffer&);
39 static sk_sp<SkTextBlob> MakeFromBuffer(SkReadBuffer&);
64 class SkTextBlob::RunRecord {
137 SkTextBlob::GlyphPositioning positioning,
140 static const RunRecord* First(const SkTextBlob* blob);
158 SkTextBlob::GlyphPositioning positioning,
185 SkTextBlobRunIterator(const SkTextBlob* blob);
245 const SkTextBlob::RunRecord* fCurrentRun;
DSkGlyphRun.h25 class SkTextBlob; variable
70 const SkTextBlob* blob,
100 sk_sp<SkTextBlob> makeBlob() const;
104 const SkTextBlob* blob() const { return fOriginalTextBlob; } in blob()
117 const SkTextBlob* fOriginalTextBlob{nullptr};
130 const SkGlyphRunList& blobToGlyphRunList(const SkTextBlob& blob, SkPoint origin);
137 void initialize(const SkTextBlob& blob);
152 const SkTextBlob* blob, const SkRect& bounds, SkPoint origin);
/external/skqp/src/core/
DSkTextBlob.cpp38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize()
39 SkTextBlob::GlyphPositioning positioning, in StorageSize()
47 auto size = sizeof(SkTextBlob::RunRecord); in StorageSize()
60 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::First(const SkTextBlob* blob) { in First()
66 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::Next(const RunRecord* run) { in Next()
80 void SkTextBlob::RunRecord::validate(const uint8_t* storageTop) const { in validate()
93 static_assert(sizeof(SkTextBlob::RunRecord) == sizeof(RunRecordStorageEquivalent), in validate()
97 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::NextUnchecked(const RunRecord* run) { in NextUnchecked()
106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount()
107 SkTextBlob::GlyphPositioning positioning, in PosCount()
[all …]
DSkTextBlobPriv.h31 static void Flatten(const SkTextBlob& , SkWriteBuffer&);
40 static sk_sp<SkTextBlob> MakeFromBuffer(SkReadBuffer&);
84 class SkTextBlob::RunRecord {
155 SkTextBlob::GlyphPositioning positioning,
158 static const RunRecord* First(const SkTextBlob* blob);
176 SkTextBlob::GlyphPositioning positioning,
203 SkTextBlobRunIterator(const SkTextBlob* blob);
262 const SkTextBlob::RunRecord* fCurrentRun;
DSkGlyphRun.h23 class SkTextBlob; variable
61 const SkTextBlob* fOriginalTextBlob{nullptr};
70 const SkTextBlob* blob,
94 const SkTextBlob* blob() const { return fOriginalTextBlob; } in blob()
121 void drawTextBlob(const SkPaint& paint, const SkTextBlob& blob, SkPoint origin, SkBaseDevice*);
128 const SkTextBlob& blob, SkPoint origin, SkBaseDevice* device);
142 void makeGlyphRunList(const SkPaint& paint, const SkTextBlob* blob, SkPoint origin);
/external/skia/include/core/
DSkTextBlob.h28 class SK_API SkTextBlob final : public SkNVRefCnt<SkTextBlob> {
82 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
102 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
122 static sk_sp<SkTextBlob> MakeFromPosTextH(const void* text, size_t byteLength,
137 static sk_sp<SkTextBlob> MakeFromPosText(const void* text, size_t byteLength,
141 static sk_sp<SkTextBlob> MakeFromRSXform(const void* text, size_t byteLength,
193 static sk_sp<SkTextBlob> Deserialize(const void* data, size_t size,
209 Iter(const SkTextBlob&);
231 friend class SkNVRefCnt<SkTextBlob>;
235 explicit SkTextBlob(const SkRect& bounds);
[all …]
/external/skqp/include/core/
DSkTextBlob.h38 class SK_API SkTextBlob final : public SkNVRefCnt<SkTextBlob> {
89 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
109 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
130 static sk_sp<SkTextBlob> MakeFromPosTextH(const void* text, size_t byteLength,
146 static sk_sp<SkTextBlob> MakeFromPosText(const void* text, size_t byteLength,
151 static sk_sp<SkTextBlob> MakeFromRSXform(const void* text, size_t byteLength,
199 static sk_sp<SkTextBlob> Deserialize(const void* data, size_t size,
203 friend class SkNVRefCnt<SkTextBlob>;
208 explicit SkTextBlob(const SkRect& bounds);
210 ~SkTextBlob();
[all …]
/external/skqp/docs/
DSkTextBlob_Reference.bmh4 #Class SkTextBlob
10 SkTextBlob combines multiple text runs into an immutable container. Each text
41 sk_sp<const SkTextBlob> blob = textBlobBuilder.make();
80 sk_sp<const SkTextBlob> blob = textBlobBuilder.make();
121 sk_sp<const SkTextBlob> blob = textBlobBuilder.make();
145 #Method static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& fo…
171 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, font);
181 #Method static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
206 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("Hello World", font);
230 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, blobFont);
[all …]
DSkTextBlobBuilder_Reference.bmh10 Helper class for constructing SkTextBlob.
71 sk_sp<SkTextBlob> blob = builder.make();
78 #SeeAlso make SkTextBlob::MakeFromText
98 #Method sk_sp<SkTextBlob> make()
105 sk_sp<SkTextBlob> blob = builder.make();
122 #SeeAlso SkTextBlob::MakeFromText
/external/skia/tests/
DTextBlobTest.cpp109 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
116 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
123 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
130 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
143 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
148 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
168 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
209 sk_sp<SkTextBlob> blob(builder.make()); in TestPaintProps()
240 sk_sp<SkTextBlob> blob(builder.make()); in RunBuilderTest()
332 sk_sp<SkTextBlob> blob(textBlobBuilder.make()); in DEF_TEST()
[all …]
/external/skia/docs/examples/
DTextBlob_serialize_2.cpp11 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, blobFont); in draw()
13 sk_sp<SkTextBlob> copy = SkTextBlob::Deserialize(data->data(), data->size(), SkDeserialProcs()); in draw()
DTextBlob_Deserialize.cpp12 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World!", 12, blobFont);
18 sk_sp<SkTextBlob> copy = SkTextBlob::Deserialize(data->data(), data->size(), SkDeserialProcs());
DTextBlob_serialize.cpp12 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, blobFont);
15 sk_sp<SkTextBlob> copy = SkTextBlob::Deserialize(storage, used, SkDeserialProcs());
Dskpaint_skia.cpp22 sk_sp<SkTextBlob> blob1 = in draw()
23 SkTextBlob::MakeFromString("Skia!", SkFont(nullptr, 64.0f, 1.0f, 0.0f)); in draw()
24 sk_sp<SkTextBlob> blob2 = in draw()
25 SkTextBlob::MakeFromString("Skia!", SkFont(nullptr, 64.0f, 1.5f, 0.0f)); in draw()
Dtext_rendering.cpp20 sk_sp<SkTextBlob> blob1 = SkTextBlob::MakeFromString("Skia", font1); in draw()
21 sk_sp<SkTextBlob> blob2 = SkTextBlob::MakeFromString("Skia", font2); in draw()
DTextBlob_MakeFromText.cpp13 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, font);
/external/skqp/site/user/api/
DSkTextBlob_Reference.md1 SkTextBlob Reference
5 <a name='SkTextBlob'></a>
10 …ence#SkTextBlob'>SkTextBlob</a> final : public <a href='undocumented#SkNVRefCnt'>SkNVRefCnt</a><<a…
16 …ref='undocumented#sk_sp'>sk_sp</a><<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>> <a hr…
18 …ref='undocumented#sk_sp'>sk_sp</a><<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>> <a hr…
22 …ref='undocumented#sk_sp'>sk_sp</a><<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>> <a hr…
28 <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> combines multiple <a href='undocumented#Te…
68 identifier for <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>
127 …='undocumented#sk_sp'>sk_sp</a>&lt;<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>&gt; <a…
175 …='undocumented#sk_sp'>sk_sp</a>&lt;<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>&gt; <a…
[all …]
DSkTextBlobBuilder_Reference.md14 …<a href='undocumented#sk_sp'>sk_sp</a><<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>> <…
25 Helper class for constructing <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>.
117 <a href='#SkTextBlobBuilder_make'>make</a> <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>…
138 <a href='undocumented#sk_sp'>sk_sp</a>&lt;<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>&…
141 Returns <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> built from runs of <a href='undocu…
142 <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> is immutable; it may be copied, but its co…
150 <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> or nullptr
168 <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>::<a href='#SkTextBlob_MakeFromText'>MakeFr…
189 …ounding box, used to suppress drawing when <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>
190 …Run_bounds'>bounds</a> is nullptr, <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> <a hre…
[all …]
/external/skqp/modules/sksg/include/
DSkSGText.h67 sk_sp<SkTextBlob> fBlob; // cached text blob
77 static sk_sp<TextBlob> Make(sk_sp<SkTextBlob> = nullptr);
80 SG_ATTRIBUTE(Blob , sk_sp<SkTextBlob>, fBlob )
91 explicit TextBlob(sk_sp<SkTextBlob>);
93 sk_sp<SkTextBlob> fBlob;
/external/skia/modules/sksg/include/
DSkSGText.h68 sk_sp<SkTextBlob> fBlob; // cached text blob
78 static sk_sp<TextBlob> Make(sk_sp<SkTextBlob> = nullptr);
81 SG_ATTRIBUTE(Blob , sk_sp<SkTextBlob>, fBlob )
93 explicit TextBlob(sk_sp<SkTextBlob>);
95 sk_sp<SkTextBlob> fBlob;
/external/skqp/tests/
DTextBlobTest.cpp109 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
116 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
123 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
130 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
143 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
148 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
168 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
209 sk_sp<SkTextBlob> blob(builder.make()); in TestPaintProps()
240 sk_sp<SkTextBlob> blob(builder.make()); in RunBuilderTest()
333 sk_sp<SkTextBlob> blob(textBlobBuilder.make()); in DEF_TEST()
[all …]
/external/skqp/gm/
Dtexteffects.cpp43 sk_sp<SkTextBlob> MakeFancyBlob(const SkPaint& paint, const SkFont& font, const char* text) { in MakeFancyBlob()
115 sk_sp<SkTextBlob> blob = MakeFancyBlob(paint, skFont, test);
143 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text()
144 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
148 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh()
155 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh()
159 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos()
166 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos()
196 static void draw_blob_adorned(SkCanvas* canvas, sk_sp<SkTextBlob> blob) { in draw_blob_adorned()
/external/skia/gm/
Dtexteffects.cpp52 sk_sp<SkTextBlob> MakeFancyBlob(const SkPaint& paint, const SkFont& font, const char* text) { in MakeFancyBlob()
123 sk_sp<SkTextBlob> blob = MakeFancyBlob(paint, skFont, test);
151 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text()
152 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
156 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh()
163 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh()
167 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos()
174 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos()
204 static void draw_blob_adorned(SkCanvas* canvas, sk_sp<SkTextBlob> blob) { in draw_blob_adorned()
Dfontregen.cpp41 static sk_sp<SkTextBlob> make_blob(const SkString& text, const SkFont& font) { in make_blob()
48 return SkTextBlob::MakeFromPosTextH(text.c_str(), len, pos.get(), 0, font); in make_blob()
112 sk_sp<SkTextBlob> fBlobs[3];
156 sk_sp<SkTextBlob> fBlobs[3];

123456789