aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PictureTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r--tests/PictureTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 0dc3bfe7b6..d407fc0848 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -848,8 +848,7 @@ static void test_typeface(skiatest::Reporter* reporter) {
SkPictureRecorder recorder;
SkCanvas* canvas = recorder.beginRecording(10, 10);
SkPaint paint;
- paint.setTypeface(SkTypeface::MakeFromName("Arial",
- SkFontStyle::FromOldStyle(SkTypeface::kItalic)));
+ paint.setTypeface(SkTypeface::MakeFromName("Arial", SkFontStyle::Italic()));
canvas->drawString("Q", 0, 10, paint);
sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture());
SkDynamicMemoryWStream stream;