Flutter Impeller
typographer_context_skia.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include "flutter/fml/macros.h"
9 
10 namespace impeller {
11 
13  public:
14  static std::shared_ptr<TypographerContext> Make();
15 
17 
18  ~TypographerContextSkia() override;
19 
20  // |TypographerContext|
21  std::shared_ptr<GlyphAtlasContext> CreateGlyphAtlasContext() const override;
22 
23  // |TypographerContext|
24  std::shared_ptr<GlyphAtlas> CreateGlyphAtlas(
25  Context& context,
26  GlyphAtlas::Type type,
27  std::shared_ptr<GlyphAtlasContext> atlas_context,
28  const FontGlyphMap& font_glyph_map) const override;
29 
30  private:
31  FML_DISALLOW_COPY_AND_ASSIGN(TypographerContextSkia);
32 };
33 
34 } // namespace impeller
impeller::TypographerContextSkia::CreateGlyphAtlasContext
std::shared_ptr< GlyphAtlasContext > CreateGlyphAtlasContext() const override
Definition: typographer_context_skia.cc:39
impeller::TypographerContext
The graphics context necessary to render text.
Definition: typographer_context.h:22
impeller::FontGlyphMap
std::unordered_map< ScaledFont, std::unordered_set< Glyph > > FontGlyphMap
Definition: font_glyph_pair.h:28
typographer_context.h
impeller::TypographerContextSkia::TypographerContextSkia
TypographerContextSkia()
impeller::GlyphAtlas::Type
Type
Describes how the glyphs are represented in the texture.
Definition: glyph_atlas.h:32
impeller::TypographerContextSkia
Definition: typographer_context_skia.h:12
impeller::Context
To do anything rendering related with Impeller, you need a context.
Definition: context.h:47
impeller::TypographerContextSkia::~TypographerContextSkia
~TypographerContextSkia() override
impeller::TypographerContextSkia::CreateGlyphAtlas
std::shared_ptr< GlyphAtlas > CreateGlyphAtlas(Context &context, GlyphAtlas::Type type, std::shared_ptr< GlyphAtlasContext > atlas_context, const FontGlyphMap &font_glyph_map) const override
Definition: typographer_context_skia.cc:313
impeller
Definition: aiks_context.cc:10
impeller::TypographerContextSkia::Make
static std::shared_ptr< TypographerContext > Make()
Definition: typographer_context_skia.cc:30