aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/filterbitmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/filterbitmap.cpp')
-rw-r--r--gm/filterbitmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/filterbitmap.cpp b/gm/filterbitmap.cpp
index 0d4b4b4a4b..26a1886bf4 100644
--- a/gm/filterbitmap.cpp
+++ b/gm/filterbitmap.cpp
@@ -14,7 +14,7 @@
#include "SkTypeface.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);
}
static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) {