diff --git a/impeller/typographer/backends/skia/text_render_context_skia.cc b/impeller/typographer/backends/skia/text_render_context_skia.cc index 48e640f0f5df2..313a7d8b456c2 100644 --- a/impeller/typographer/backends/skia/text_render_context_skia.cc +++ b/impeller/typographer/backends/skia/text_render_context_skia.cc @@ -22,6 +22,12 @@ namespace impeller { +std::unique_ptr TextRenderContext::Create( + std::shared_ptr context) { + // There is only one backend today. + return std::make_unique(std::move(context)); +} + // TODO(bdero): We might be able to remove this per-glyph padding if we fix // the underlying causes of the overlap. // https://github.com/flutter/flutter/issues/114563 diff --git a/impeller/typographer/text_render_context.cc b/impeller/typographer/text_render_context.cc index 072e33ab882d0..8cc8dbf00a02e 100644 --- a/impeller/typographer/text_render_context.cc +++ b/impeller/typographer/text_render_context.cc @@ -6,16 +6,8 @@ #include -#include "impeller/typographer/backends/skia/text_render_context_skia.h" - namespace impeller { -std::unique_ptr TextRenderContext::Create( - std::shared_ptr context) { - // There is only one backend today. - return std::make_unique(std::move(context)); -} - TextRenderContext::TextRenderContext(std::shared_ptr context) : context_(std::move(context)) { if (!context_ || !context_->IsValid()) {