Index: src/ports/SkFontConfigInterface_direct.cpp |
diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp |
index 3cde837b9eac211ed42ab8e0b935e1b49a4cd9d3..345544724695a1729e1644693199f45f49913148 100644 |
--- a/src/ports/SkFontConfigInterface_direct.cpp |
+++ b/src/ports/SkFontConfigInterface_direct.cpp |
@@ -698,7 +698,7 @@ static bool find_name(const SkTDArray<const char*>& list, const char* str) { |
return false; |
} |
-SkDataTable* SkFontConfigInterfaceDirect::getFamilyNames() { |
+sk_sp<SkDataTable> SkFontConfigInterfaceDirect::getFamilyNames() { |
FCLocker lock; |
FcPattern* pat = FcPatternCreate(); |
@@ -730,6 +730,6 @@ SkDataTable* SkFontConfigInterfaceDirect::getFamilyNames() { |
} |
} |
- return SkDataTable::NewCopyArrays((const void*const*)names.begin(), |
- sizes.begin(), names.count()); |
+ return SkDataTable::MakeCopyArrays((const void*const*)names.begin(), |
+ sizes.begin(), names.count()); |
} |