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>
This commit is contained in:
Herb Derby 2018-07-27 16:28:01 -04:00 committed by Skia Commit-Bot
parent 46dbfbb528
commit c3bc69f238
3 changed files with 3 additions and 3 deletions

View File

@ -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);
/**

View File

@ -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;

View File

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