#include <lazy_glyph_atlas.h>
Public Member Functions | |
LazyGlyphAtlas (std::shared_ptr< TypographerContext > typographer_context) | |
~LazyGlyphAtlas () | |
void | AddTextFrame (const std::shared_ptr< TextFrame > &frame, Rational scale, Point offset, const Matrix &transform, std::optional< GlyphProperties > properties) |
void | ResetTextFrames () |
const std::shared_ptr< GlyphAtlas > & | CreateOrGetGlyphAtlas (Context &context, HostBuffer &host_buffer, GlyphAtlas::Type type) const |
Definition at line 16 of file lazy_glyph_atlas.h.
|
explicit |
Definition at line 20 of file lazy_glyph_atlas.cc.
|
default |
void impeller::LazyGlyphAtlas::AddTextFrame | ( | const std::shared_ptr< TextFrame > & | frame, |
Rational | scale, | ||
Point | offset, | ||
const Matrix & | transform, | ||
std::optional< GlyphProperties > | properties | ||
) |
Definition at line 34 of file lazy_glyph_atlas.cc.
References impeller::GlyphAtlas::kAlphaBitmap, and transform.
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 55 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 48 of file lazy_glyph_atlas.cc.