Flutter Engine
The Flutter Engine
|
#include <mock_layer.h>
Public Member Functions | |
LayerRasterCacheItem (Layer *layer, int layer_cached_threshold=1, bool can_cache_children=false) | |
Public Member Functions inherited from flutter::LayerRasterCacheItem | |
LayerRasterCacheItem (Layer *layer, int layer_cached_threshold=1, bool can_cache_children=false) | |
std::optional< RasterCacheKeyID > | GetId () const override |
void | PrerollSetup (PrerollContext *context, const SkMatrix &matrix) override |
void | PrerollFinalize (PrerollContext *context, const SkMatrix &matrix) override |
bool | Draw (const PaintContext &context, const DlPaint *paint) const override |
bool | Draw (const PaintContext &context, DlCanvas *canvas, const DlPaint *paint) const override |
bool | TryToPrepareRasterCache (const PaintContext &context, bool parent_cached=false) const override |
void | MarkCacheChildren () |
void | MarkNotCacheChildren () |
bool | IsCacheChildren () const |
Public Member Functions inherited from flutter::RasterCacheItem | |
RasterCacheItem (RasterCacheKeyID key_id, CacheState cache_state=CacheState::kNone, unsigned child_entries=0) | |
virtual void | PrerollSetup (PrerollContext *context, const SkMatrix &matrix)=0 |
virtual void | PrerollFinalize (PrerollContext *context, const SkMatrix &matrix)=0 |
virtual bool | Draw (const PaintContext &context, const DlPaint *paint) const =0 |
virtual bool | Draw (const PaintContext &context, DlCanvas *canvas, const DlPaint *paint) const =0 |
virtual std::optional< RasterCacheKeyID > | GetId () const |
virtual bool | TryToPrepareRasterCache (const PaintContext &context, bool parent_cached=false) const =0 |
unsigned | child_items () const |
void | set_matrix (const SkMatrix &matrix) |
CacheState | cache_state () const |
bool | need_caching () const |
virtual | ~RasterCacheItem ()=default |
Additional Inherited Members | |
Public Types inherited from flutter::RasterCacheItem | |
enum | CacheState { kNone = 0 , kCurrent , kChildren } |
Static Public Member Functions inherited from flutter::LayerRasterCacheItem | |
static std::unique_ptr< LayerRasterCacheItem > | Make (Layer *, int layer_cache_threshold, bool can_cache_children=false) |
Create a LayerRasterCacheItem, connect a layer and manage the Layer's raster cache. More... | |
Protected Member Functions inherited from flutter::LayerRasterCacheItem | |
const SkRect * | GetPaintBoundsFromLayer () const |
Protected Attributes inherited from flutter::LayerRasterCacheItem | |
Layer * | layer_ |
std::optional< RasterCacheKeyID > | layer_children_id_ |
int | layer_cached_threshold_ = 1 |
bool | can_cache_children_ = false |
int | num_cache_attempts_ = 1 |
Protected Attributes inherited from flutter::RasterCacheItem | |
RasterCacheKeyID | key_id_ |
CacheState | cache_state_ = CacheState::kNone |
SkMatrix | matrix_ |
unsigned | child_items_ |
Definition at line 150 of file mock_layer.h.
|
explicit |
Definition at line 19 of file layer_raster_cache_item.cc.