Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::GlyphAtlasContextSkia Class Reference

A container for caching a glyph atlas across frames. More...

#include <glyph_atlas_context_skia.h>

Inheritance diagram for impeller::GlyphAtlasContextSkia:
impeller::GlyphAtlasContext impeller::BackendCast< GlyphAtlasContextSkia, GlyphAtlasContext >

Public Member Functions

 GlyphAtlasContextSkia ()
 
 ~GlyphAtlasContextSkia () override
 
std::shared_ptr< SkBitmapGetBitmap () const
 Retrieve the previous (if any) SkBitmap instance.
 
void UpdateBitmap (std::shared_ptr< SkBitmap > bitmap)
 
- Public Member Functions inherited from impeller::GlyphAtlasContext
virtual ~GlyphAtlasContext ()
 
std::shared_ptr< GlyphAtlasGetGlyphAtlas () const
 Retrieve the current glyph atlas.
 
const ISizeGetAtlasSize () const
 Retrieve the size of the current glyph atlas.
 
std::shared_ptr< RectanglePackerGetRectPacker () const
 Retrieve the previous (if any) rect packer.
 
void UpdateGlyphAtlas (std::shared_ptr< GlyphAtlas > atlas, ISize size)
 Update the context with a newly constructed glyph atlas.
 
void UpdateRectPacker (std::shared_ptr< RectanglePacker > rect_packer)
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::BackendCast< GlyphAtlasContextSkia, GlyphAtlasContext >
static GlyphAtlasContextSkiaCast (GlyphAtlasContext &base)
 
static const GlyphAtlasContextSkiaCast (const GlyphAtlasContext &base)
 
static GlyphAtlasContextSkiaCast (GlyphAtlasContext *base)
 
static const GlyphAtlasContextSkiaCast (const GlyphAtlasContext *base)
 
- Protected Member Functions inherited from impeller::GlyphAtlasContext
 GlyphAtlasContext ()
 

Detailed Description

A container for caching a glyph atlas across frames.

Definition at line 18 of file glyph_atlas_context_skia.h.

Constructor & Destructor Documentation

◆ GlyphAtlasContextSkia()

impeller::GlyphAtlasContextSkia::GlyphAtlasContextSkia ( )
default

◆ ~GlyphAtlasContextSkia()

impeller::GlyphAtlasContextSkia::~GlyphAtlasContextSkia ( )
overridedefault

Member Function Documentation

◆ GetBitmap()

std::shared_ptr< SkBitmap > impeller::GlyphAtlasContextSkia::GetBitmap ( ) const

Retrieve the previous (if any) SkBitmap instance.

Definition at line 15 of file glyph_atlas_context_skia.cc.

15 {
16 return bitmap_;
17}

◆ UpdateBitmap()

void impeller::GlyphAtlasContextSkia::UpdateBitmap ( std::shared_ptr< SkBitmap bitmap)

Definition at line 19 of file glyph_atlas_context_skia.cc.

19 {
20 bitmap_ = std::move(bitmap);
21}

The documentation for this class was generated from the following files: