#include <lazy_glyph_atlas.h>
Public Member Functions | |
| LazyGlyphAtlas (std::shared_ptr< TypographerContext > typographer_context) | |
| ~LazyGlyphAtlas () | |
| void | AddTextFrame (const TextFrame &frame, Scalar scale, Point offset, const GlyphProperties &properties) |
| void | ResetTextFrames () |
| const std::shared_ptr< GlyphAtlas > & | CreateOrGetGlyphAtlas (Context &context, HostBuffer &host_buffer, GlyphAtlas::Type type) const |
Definition at line 15 of file lazy_glyph_atlas.h.
|
explicit |
Definition at line 19 of file lazy_glyph_atlas.cc.
|
default |
| void impeller::LazyGlyphAtlas::AddTextFrame | ( | const TextFrame & | frame, |
| Scalar | scale, | ||
| Point | offset, | ||
| const GlyphProperties & | properties | ||
| ) |
Definition at line 33 of file lazy_glyph_atlas.cc.
References impeller::TextFrame::CollectUniqueFontGlyphPairs(), impeller::TextFrame::GetAtlasType(), impeller::GlyphAtlas::kAlphaBitmap, offset, and scale.
Referenced by impeller::testing::TEST_P().
| const std::shared_ptr< GlyphAtlas > & impeller::LazyGlyphAtlas::CreateOrGetGlyphAtlas | ( | Context & | context, |
| HostBuffer & | host_buffer, | ||
| GlyphAtlas::Type | type | ||
| ) | const |
Definition at line 54 of file lazy_glyph_atlas.cc.
References impeller::GlyphAtlas::kAlphaBitmap, impeller::GlyphAtlas::kColorBitmap, impeller::kNullGlyphAtlas, type, and VALIDATION_LOG.
Referenced by impeller::testing::TEST_P().
| void impeller::LazyGlyphAtlas::ResetTextFrames | ( | ) |
Definition at line 47 of file lazy_glyph_atlas.cc.