From 4b3a5152a3cdb25d1f19fd3a04b3248f4462e05e Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Tue, 17 Jul 2018 16:10:30 -0400 Subject: MakeAsDrawText for SkTextBlob Change-Id: I04ebca6b318e0654cc1e598aa323cfb9a21e5a5e Reviewed-on: https://skia-review.googlesource.com/141960 Reviewed-by: Mike Reed Reviewed-by: Cary Clark Reviewed-by: Florin Malita Commit-Queue: Herb Derby --- include/core/SkTextBlob.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h index 40d5130907..8dce082512 100644 --- a/include/core/SkTextBlob.h +++ b/include/core/SkTextBlob.h @@ -36,6 +36,9 @@ public: */ uint32_t uniqueID() const { return fUniqueID; } + static sk_sp MakeAsDrawText( + const void* text, size_t byteLength, const SkPaint& paint); + enum GlyphPositioning : uint8_t { kDefault_Positioning = 0, // Default glyph advances -- zero scalars per glyph. kHorizontal_Positioning = 1, // Horizontal positioning -- one scalar per glyph. -- cgit v1.2.3