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:
parent
46dbfbb528
commit
c3bc69f238
@ -33,7 +33,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
uint32_t uniqueID() const { return fUniqueID; }
|
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);
|
const void* text, size_t byteLength, const SkPaint& paint);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -901,7 +901,7 @@ sk_sp<SkTextBlob> SkTextBlobPriv::MakeFromBuffer(SkReadBuffer& reader) {
|
|||||||
return blobBuilder.make();
|
return blobBuilder.make();
|
||||||
}
|
}
|
||||||
|
|
||||||
sk_sp<SkTextBlob> SkTextBlob::MakeAsDrawText(
|
sk_sp<SkTextBlob> SkTextBlob::MakeFromText(
|
||||||
const void* text, size_t byteLength, const SkPaint& paint) {
|
const void* text, size_t byteLength, const SkPaint& paint) {
|
||||||
SkGlyphRunBuilder runBuilder;
|
SkGlyphRunBuilder runBuilder;
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ DEF_TEST(TextBlob_MakeAsDrawText, reporter) {
|
|||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
paint.setTextEncoding(SkPaint::kUTF8_TextEncoding);
|
paint.setTextEncoding(SkPaint::kUTF8_TextEncoding);
|
||||||
const char text[] = "Hello";
|
const char text[] = "Hello";
|
||||||
auto blob = SkTextBlob::MakeAsDrawText(text, strlen(text), paint);
|
auto blob = SkTextBlob::MakeFromText(text, strlen(text), paint);
|
||||||
|
|
||||||
int runs = 0;
|
int runs = 0;
|
||||||
for(SkTextBlobRunIterator it(blob.get()); !it.done(); it.next()) {
|
for(SkTextBlobRunIterator it(blob.get()); !it.done(); it.next()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user