diff options
author | Herb Derby <herb@google.com> | 2018-07-27 16:28:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-27 21:03:26 +0000 |
commit | c3bc69f238f5f10d0c2e27068bbcd772ca359d35 (patch) | |
tree | d3fc7c1fc58a764eb9ead8a58ab9abb016e8add0 | |
parent | 46dbfbb528305fc7c7bd4f8cca56dc4321761511 (diff) |
Rename MakeAsTextDraw to MakeFromText
Change-Id: I3fbb4d27b728e5fc5ecec9fc9d9e215dd5a83359
Reviewed-on: https://skia-review.googlesource.com/144123
Commit-Queue: Herb Derby <herb@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Auto-Submit: Herb Derby <herb@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
-rw-r--r-- | include/core/SkTextBlob.h | 2 | ||||
-rw-r--r-- | src/core/SkTextBlob.cpp | 2 | ||||
-rw-r--r-- | 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<SkTextBlob> MakeAsDrawText( + static sk_sp<SkTextBlob> 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<SkTextBlob> SkTextBlobPriv::MakeFromBuffer(SkReadBuffer& reader) { return blobBuilder.make(); } -sk_sp<SkTextBlob> SkTextBlob::MakeAsDrawText( +sk_sp<SkTextBlob> 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()) { |