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"