Flutter Engine
The Flutter Engine
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#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_
6#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_
7
9
10namespace impeller {
11
13 public:
14 static std::shared_ptr<TypographerContext> Make();
15
17
19
20 // |TypographerContext|
21 std::shared_ptr<GlyphAtlasContext> CreateGlyphAtlasContext(
22 GlyphAtlas::Type type) const override;
23
24 // |TypographerContext|
25 std::shared_ptr<GlyphAtlas> CreateGlyphAtlas(
26 Context& context,
28 HostBuffer& host_buffer,
29 const std::shared_ptr<GlyphAtlasContext>& atlas_context,
30 const FontGlyphMap& font_glyph_map) const override;
31
32 private:
34
35 TypographerContextSkia& operator=(const TypographerContextSkia&) = delete;
36};
37
38} // namespace impeller
39
40#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_
GLenum type
To do anything rendering related with Impeller, you need a context.
Definition: context.h:45
Type
Describes how the glyphs are represented in the texture.
Definition: glyph_atlas.h:31
std::shared_ptr< GlyphAtlas > CreateGlyphAtlas(Context &context, GlyphAtlas::Type type, HostBuffer &host_buffer, const std::shared_ptr< GlyphAtlasContext > &atlas_context, const FontGlyphMap &font_glyph_map) const override
std::shared_ptr< GlyphAtlasContext > CreateGlyphAtlasContext(GlyphAtlas::Type type) const override
static std::shared_ptr< TypographerContext > Make()
The graphics context necessary to render text.
std::unordered_map< ScaledFont, std::unordered_set< SubpixelGlyph > > FontGlyphMap