commit | 6e6333fba4d3d8e16c2db5fccbd09072eea157a7 | [log] [tgz] |
---|---|---|
author | Julia Lavrova <jlavrova@google.com> | Mon Jun 17 10:34:10 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 18 19:23:33 2019 +0000 |
tree | 7c642e0af181bd7517e37fae51ce5fa7db7fa22c | |
parent | 66a46033a6c021c5c4b6c06feceedb6d677685be [diff] [blame] |
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(