Index: src/core/SkFontDescriptor.cpp |
diff --git a/src/core/SkFontDescriptor.cpp b/src/core/SkFontDescriptor.cpp |
index f477a2d69546efc15a52ecc7805b8163f209cf08..69fdc154326936a56d46b1b1dc00e78f9990d3de 100644 |
--- a/src/core/SkFontDescriptor.cpp |
+++ b/src/core/SkFontDescriptor.cpp |
@@ -96,7 +96,7 @@ bool SkFontDescriptor::Deserialize(SkStream* stream, SkFontDescriptor* result) { |
size_t length = stream->readPackedUInt(); |
if (length > 0) { |
- SkAutoTUnref<SkData> data(SkData::NewUninitialized(length)); |
+ sk_sp<SkData> data(SkData::MakeUninitialized(length)); |
if (stream->read(data->writable_data(), length) == length) { |
result->fFontData.reset(new SkFontData(new SkMemoryStream(data), |
index, axis, axisCount)); |