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()) {