From c3bc69f238f5f10d0c2e27068bbcd772ca359d35 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Fri, 27 Jul 2018 16:28:01 -0400 Subject: Rename MakeAsTextDraw to MakeFromText Change-Id: I3fbb4d27b728e5fc5ecec9fc9d9e215dd5a83359 Reviewed-on: https://skia-review.googlesource.com/144123 Commit-Queue: Herb Derby Commit-Queue: Cary Clark Auto-Submit: Herb Derby Reviewed-by: Cary Clark --- include/core/SkTextBlob.h | 2 +- src/core/SkTextBlob.cpp | 2 +- tests/TextBlobTest.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h index 8ed66da2df..3cc486ba49 100644 --- a/include/core/SkTextBlob.h +++ b/include/core/SkTextBlob.h @@ -33,7 +33,7 @@ public: */ uint32_t uniqueID() const { return fUniqueID; } - static sk_sp MakeAsDrawText( + static sk_sp MakeFromText( const void* text, size_t byteLength, const SkPaint& paint); /** diff --git a/src/core/SkTextBlob.cpp b/src/core/SkTextBlob.cpp index 72e7da8011..2a23e3d0b9 100644 --- a/src/core/SkTextBlob.cpp +++ b/src/core/SkTextBlob.cpp @@ -901,7 +901,7 @@ sk_sp SkTextBlobPriv::MakeFromBuffer(SkReadBuffer& reader) { return blobBuilder.make(); } -sk_sp SkTextBlob::MakeAsDrawText( +sk_sp SkTextBlob::MakeFromText( const void* text, size_t byteLength, const SkPaint& paint) { SkGlyphRunBuilder runBuilder; diff --git a/tests/TextBlobTest.cpp b/tests/TextBlobTest.cpp index 2c34a78e51..a3a09bfbfd 100644 --- a/tests/TextBlobTest.cpp +++ b/tests/TextBlobTest.cpp @@ -472,7 +472,7 @@ DEF_TEST(TextBlob_MakeAsDrawText, reporter) { SkPaint paint; paint.setTextEncoding(SkPaint::kUTF8_TextEncoding); const char text[] = "Hello"; - auto blob = SkTextBlob::MakeAsDrawText(text, strlen(text), paint); + auto blob = SkTextBlob::MakeFromText(text, strlen(text), paint); int runs = 0; for(SkTextBlobRunIterator it(blob.get()); !it.done(); it.next()) { -- cgit v1.2.3