Refactor font resolution out of font iterator;
few minor bug fixes

Change-Id: Ibc60e972480f3503965af873f36001ed233382ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/221544
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
diff --git a/modules/skparagraph/src/ParagraphBuilderImpl.cpp b/modules/skparagraph/src/ParagraphBuilderImpl.cpp
index 9ef730d..ec8ef46 100644
--- a/modules/skparagraph/src/ParagraphBuilderImpl.cpp
+++ b/modules/skparagraph/src/ParagraphBuilderImpl.cpp
@@ -10,9 +10,9 @@
 namespace skia {
 namespace textlayout {
 
-std::shared_ptr<ParagraphBuilder> ParagraphBuilder::make(
+std::unique_ptr<ParagraphBuilder> ParagraphBuilder::make(
         ParagraphStyle style, sk_sp<FontCollection> fontCollection) {
-    return std::make_shared<ParagraphBuilderImpl>(style, fontCollection);
+    return skstd::make_unique<ParagraphBuilderImpl>(style, fontCollection);
 }
 
 ParagraphBuilderImpl::ParagraphBuilderImpl(