21 std::shared_ptr<TypographerContext> typographer_context)
22 : typographer_context_(
std::move(typographer_context)),
23 alpha_data_(typographer_context_
24 ? typographer_context_->CreateGlyphAtlasContext(
27 color_data_(typographer_context_
28 ? typographer_context_->CreateGlyphAtlasContext(
53 AtlasData& data = GetData(
type);
58 if (!typographer_context_) {
59 VALIDATION_LOG <<
"Unable to render text because a TypographerContext has "
63 if (!typographer_context_->IsValid()) {
65 <<
"Unable to render text because the TypographerContext is invalid.";
69 data.atlas = typographer_context_->CreateGlyphAtlas(
70 context,
type, data_host_buffer, data.context, data.renderable_frames);
71 if (!data.atlas || !data.atlas->IsValid()) {
To do anything rendering related with Impeller, you need a context.