Index: tests/PaintTest.cpp |
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp |
index 253ce86769dad008226c5d2b656c77b94ffbf558..d10f77ffe10fc77e8683cb7df2c18906e672ea68 100644 |
--- a/tests/PaintTest.cpp |
+++ b/tests/PaintTest.cpp |
@@ -80,7 +80,7 @@ DEF_TEST(Paint_cmap, reporter) { |
SkRandom rand; |
SkPaint paint; |
- paint.setTypeface(SkTypeface::RefDefault())->unref(); |
+ paint.setTypeface(SkTypeface::MakeDefault()); |
SkTypeface* face = paint.getTypeface(); |
for (int i = 0; i < 1000; ++i) { |
@@ -329,7 +329,7 @@ DEF_TEST(Paint_getHash, r) { |
REPORTER_ASSERT(r, paint.getHash() == defaultHash); |
// SkTypeface is the first field we hash, so test it specially. |
- paint.setTypeface(SkTypeface::RefDefault())->unref(); |
+ paint.setTypeface(SkTypeface::MakeDefault()); |
REPORTER_ASSERT(r, paint.getHash() != defaultHash); |
paint.setTypeface(nullptr); |
REPORTER_ASSERT(r, paint.getHash() == defaultHash); |