From 85c98bef38d6ddb9abd632ac96882c25584e15f7 Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Wed, 17 Jun 2020 02:14:34 -0700 Subject: [PATCH] Fix windows SkParagraph compilation (flutter/engine#19073) --- .../flutter/third_party/txt/src/skia/paragraph_builder_skia.cc | 2 +- engine/src/flutter/third_party/txt/src/skia/paragraph_skia.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/third_party/txt/src/skia/paragraph_builder_skia.cc b/engine/src/flutter/third_party/txt/src/skia/paragraph_builder_skia.cc index d619697de6..f7169f1b03 100644 --- a/engine/src/flutter/third_party/txt/src/skia/paragraph_builder_skia.cc +++ b/engine/src/flutter/third_party/txt/src/skia/paragraph_builder_skia.cc @@ -176,7 +176,7 @@ void ParagraphBuilderSkia::AddPlaceholder(PlaceholderRun& span) { } std::unique_ptr ParagraphBuilderSkia::Build() { - return std::make_unique(builder_->Build()); + return std::unique_ptr(new ParagraphSkia(builder_->Build())); } } // namespace txt diff --git a/engine/src/flutter/third_party/txt/src/skia/paragraph_skia.h b/engine/src/flutter/third_party/txt/src/skia/paragraph_skia.h index 3a356f0a1d..286fbe47ca 100644 --- a/engine/src/flutter/third_party/txt/src/skia/paragraph_skia.h +++ b/engine/src/flutter/third_party/txt/src/skia/paragraph_skia.h @@ -17,6 +17,8 @@ #ifndef LIB_TXT_SRC_PARAGRAPH_SKIA_H_ #define LIB_TXT_SRC_PARAGRAPH_SKIA_H_ +#include + #include "txt/paragraph.h" #include "third_party/skia/modules/skparagraph/include/Paragraph.h"