The graphics context necessary to render text. More...
#include <typographer_context.h>
Public Member Functions | |
virtual | ~TypographerContext () |
virtual bool | IsValid () const |
virtual std::shared_ptr< GlyphAtlasContext > | CreateGlyphAtlasContext (GlyphAtlas::Type type) const =0 |
virtual std::shared_ptr< GlyphAtlas > | CreateGlyphAtlas (Context &context, GlyphAtlas::Type type, HostBuffer &host_buffer, const std::shared_ptr< GlyphAtlasContext > &atlas_context, const std::vector< std::shared_ptr< TextFrame >> &text_frames) const =0 |
Protected Member Functions | |
TypographerContext () | |
Create a new context to render text that talks to an underlying graphics context. More... | |
The graphics context necessary to render text.
This is necessary to create and reference resources related to rendering text on the GPU.
Definition at line 23 of file typographer_context.h.
|
virtualdefault |
|
protected |
Create a new context to render text that talks to an underlying graphics context.
Definition at line 11 of file typographer_context.cc.
|
pure virtual |
Implemented in impeller::TypographerContextSkia.
Referenced by impeller::testing::CreateGlyphAtlas().
|
pure virtual |
Implemented in impeller::TypographerContextSkia.
|
virtual |
Definition at line 17 of file typographer_context.cc.
Referenced by impeller::TypographerContextSkia::CreateGlyphAtlas().