Home
last modified time | relevance | path

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

123456

/third_party/skia/src/core/
DSkTextBlob.cpp43 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize()
44 SkTextBlob::GlyphPositioning positioning, in StorageSize()
52 auto size = sizeof(SkTextBlob::RunRecord); in StorageSize()
65 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::First(const SkTextBlob* blob) { in First()
71 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::Next(const RunRecord* run) { in Next()
85 void SkTextBlob::RunRecord::validate(const uint8_t* storageTop) const { in validate()
98 static_assert(sizeof(SkTextBlob::RunRecord) == sizeof(RunRecordStorageEquivalent), in validate()
102 const SkTextBlob::RunRecord* SkTextBlob::RunRecord::NextUnchecked(const RunRecord* run) { in NextUnchecked()
111 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount()
112 SkTextBlob::GlyphPositioning positioning, in PosCount()
[all …]
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);
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;
DSkPictureData.h29 class SkTextBlob; variable
126 const SkTextBlob* getTextBlob(SkReadBuffer* reader) const { in getTextBlob()
152 SkTArray<sk_sp<const SkTextBlob>> fTextBlobs;
DSkPictureRecord.h46 const SkTArray<sk_sp<const SkTextBlob>>& getTextBlobs() const { in getTextBlobs()
146 void addTextBlob(const SkTextBlob* blob);
174 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
248 SkTArray<sk_sp<const SkTextBlob>> fTextBlobs;
/third_party/skia/include/core/
DSkTextBlob.h29 class SK_API SkTextBlob final : public SkNVRefCnt<SkTextBlob> {
83 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
103 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
123 static sk_sp<SkTextBlob> MakeFromPosTextH(const void* text, size_t byteLength,
138 static sk_sp<SkTextBlob> MakeFromPosText(const void* text, size_t byteLength,
142 static sk_sp<SkTextBlob> MakeFromRSXform(const void* text, size_t byteLength,
194 static sk_sp<SkTextBlob> Deserialize(const void* data, size_t size,
215 Iter(const SkTextBlob&);
243 friend class SkNVRefCnt<SkTextBlob>;
247 explicit SkTextBlob(const SkRect& bounds);
[all …]
/third_party/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()
167 sk_sp<SkTextBlob> blob(builder.make()); in TestBounds()
208 sk_sp<SkTextBlob> blob(builder.make()); in TestPaintProps()
234 sk_sp<SkTextBlob> blob(builder.make()); in RunBuilderTest()
326 sk_sp<SkTextBlob> blob(textBlobBuilder.make()); in DEF_TEST()
[all …]
/third_party/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_MakeFromString.cpp13 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("Hello World", font);
DTextBlob_MakeFromText.cpp13 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromText("Hello World", 11, font);
Dskpaint_blur_mask_filter.cpp9 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, 120)); in draw()
Dskpaint_mix.cpp17 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("SKIA", SkFont(nullptr, 80)); in draw()
/third_party/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;
/third_party/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.cpp39 static sk_sp<SkTextBlob> make_blob(const SkString& text, const SkFont& font) { in make_blob()
46 return SkTextBlob::MakeFromPosTextH(text.c_str(), len, pos.get(), 0, font); in make_blob()
113 sk_sp<SkTextBlob> fBlobs[3];
157 sk_sp<SkTextBlob> fBlobs[3];
Dscaledemoji.cpp26 static sk_sp<SkTextBlob> make_hpos_test_blob_utf8(const char* text, const SkFont& font) { in make_hpos_test_blob_utf8()
128 sk_sp<SkTextBlob> blob = make_hpos_test_blob_utf8(text, font); in onDraw()
179 sk_sp<SkTextBlob> blob = make_hpos_test_blob_utf8(text, font); in onDraw()
Dclip_error.cpp30 static void draw_text(SkCanvas* canvas, sk_sp<SkTextBlob> blob, in draw_text()
66 auto blob = SkTextBlob::MakeFromText(text, strlen(text), font); in onDraw()
/third_party/skia/modules/sksg/src/
DSkSGText.cpp60 fBlob = SkTextBlob::MakeFromText(fText.c_str(), fText.size(), font, SkTextEncoding::kUTF8); in onRevalidate()
89 sk_sp<TextBlob> TextBlob::Make(sk_sp<SkTextBlob> blob) { in Make()
93 TextBlob::TextBlob(sk_sp<SkTextBlob> blob) in TextBlob()
/third_party/skia/modules/skparagraph/src/
DParagraphPainterImpl.h15 …void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaintOrID& paint)…
16 …void drawTextShadow(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, SkColor color, SkScalar…
/third_party/skia/modules/skottie/src/text/
DSkottieShaper.h17 class SkTextBlob; variable
26 sk_sp<SkTextBlob> fBlob;
/third_party/skia/modules/skparagraph/include/
DParagraphPainter.h47 …virtual void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaintOrID…
48 …virtual void drawTextShadow(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, SkColor color, …

123456