SkFontData to use smart pointers.

The SkFontData type is not exposed externally, so any method which uses
it can be updated to use smart pointers without affecting external
users. Updating this first will make updating the public API much
easier.

This also updates SkStreamAsset* SkStream::NewFromFile(const char*) to
std::unique_ptr<SkStreamAsset> SkStream::MakeFromFile(const char*). It
appears that no one outside Skia is currently using SkStream::NewfromFile
so this is a good time to update it as well.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2339273002

Review-Url: https://codereview.chromium.org/2339273002
diff --git a/samplecode/SampleAnimator.cpp b/samplecode/SampleAnimator.cpp
index d4a4cdd..a3ec83a 100644
--- a/samplecode/SampleAnimator.cpp
+++ b/samplecode/SampleAnimator.cpp
@@ -12,6 +12,8 @@
 #include "SkStream.h"
 #include "SkDOM.h"
 
+#include <memory>
+
 ///////////////////////////////////////////////////////////////////////////////
 
 class SkAnimatorView : public SkView {
@@ -50,8 +52,8 @@
 }
 
 bool SkAnimatorView::decodeFile(const char path[]) {
-    SkAutoTDelete<SkStream> is(SkStream::NewFromFile(path));
-    return is.get() != nullptr && this->decodeStream(is);
+    std::unique_ptr<SkStream> is = SkStream::MakeFromFile(path);
+    return is && this->decodeStream(is.get());
 }
 
 bool SkAnimatorView::decodeMemory(const void* buffer, size_t size) {