drawText Cleanup, part 3
Change-Id: I17bdc317b2f22bb3d4c33785aa2163e8beb3b280
Reviewed-on: https://skia-review.googlesource.com/c/182201
Auto-Submit: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/tests/SerialProcsTest.cpp b/tests/SerialProcsTest.cpp
index 0c1b6d1..6129e0a 100644
--- a/tests/SerialProcsTest.cpp
+++ b/tests/SerialProcsTest.cpp
@@ -182,10 +182,11 @@
SkPictureRecorder rec;
SkCanvas* canvas = rec.beginRecording(100, 100);
SkPaint paint;
- paint.setTypeface(tf0); canvas->drawText("hello", 5, 0, 0, paint);
- paint.setTypeface(tf1); canvas->drawText("hello", 5, 0, 0, paint);
- paint.setTypeface(tf0); canvas->drawText("hello", 5, 0, 0, paint);
- paint.setTypeface(tf1); canvas->drawText("hello", 5, 0, 0, paint);
+ SkFont font;
+ font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint);
+ font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint);
+ font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint);
+ font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint);
return rec.finishRecordingAsPicture();
}