Index: gm/downsamplebitmap.cpp |
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp |
index f24c92b6e5a759428ee727a7858aee5e46623fcc..4cde4bda718a4b30b14d174a759c083cbde0636b 100644 |
--- a/gm/downsamplebitmap.cpp |
+++ b/gm/downsamplebitmap.cpp |
@@ -15,7 +15,7 @@ |
#include "SkPaint.h" |
static void setTypeface(SkPaint* paint, const char name[], SkTypeface::Style style) { |
- SkSafeUnref(paint->setTypeface(SkTypeface::CreateFromName(name, style))); |
+ sk_tool_utils::set_portable_typeface(paint, name, style); |
} |
class DownsampleBitmapGM : public skiagm::GM { |