Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index c71e66309aa71cde7b567276950fdf306c582fba..3dcdcfcf2713f592f831a03d004ae4a2bc748238 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -1116,7 +1116,8 @@ static void test_typeface(skiatest::Reporter* reporter) { |
SkPictureRecorder recorder; |
SkCanvas* canvas = recorder.beginRecording(10, 10); |
SkPaint paint; |
- paint.setTypeface(SkTypeface::MakeFromName("Arial", SkTypeface::kItalic)); |
+ paint.setTypeface(SkTypeface::MakeFromName("Arial", |
+ SkFontStyle::FromOldStyle(SkTypeface::kItalic))); |
canvas->drawText("Q", 1, 0, 10, paint); |
sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); |
SkDynamicMemoryWStream stream; |