Fix windows SkParagraph compilation (flutter/engine#19073)

This commit is contained in:
Gary Qian
2020-06-17 02:14:34 -07:00
committed by GitHub
parent b9ab8658ef
commit 85c98bef38
2 changed files with 3 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ void ParagraphBuilderSkia::AddPlaceholder(PlaceholderRun& span) {
}
std::unique_ptr<Paragraph> ParagraphBuilderSkia::Build() {
return std::make_unique<ParagraphSkia>(builder_->Build());
return std::unique_ptr<Paragraph>(new ParagraphSkia(builder_->Build()));
}
} // namespace txt

View File

@@ -17,6 +17,8 @@
#ifndef LIB_TXT_SRC_PARAGRAPH_SKIA_H_
#define LIB_TXT_SRC_PARAGRAPH_SKIA_H_
#include <optional>
#include "txt/paragraph.h"
#include "third_party/skia/modules/skparagraph/include/Paragraph.h"