Index: tools/Resources.cpp |
diff --git a/tools/Resources.cpp b/tools/Resources.cpp |
index 6d3054ab3346689ac6e7373ced96e2e072add9bb..0117404ac27fda9c7933a085ad405fe8e99ed6fe 100644 |
--- a/tools/Resources.cpp |
+++ b/tools/Resources.cpp |
@@ -49,10 +49,10 @@ |
} |
} |
-sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource) { |
+SkTypeface* GetResourceAsTypeface(const char* resource) { |
SkAutoTDelete<SkStreamAsset> stream(GetResourceAsStream(resource)); |
if (!stream) { |
return nullptr; |
} |
- return SkTypeface::MakeFromStream(stream.release()); |
+ return SkTypeface::CreateFromStream(stream.release()); |
} |