Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::testing::MockLayerCacheableItem Class Reference

#include <mock_layer.h>

Inheritance diagram for flutter::testing::MockLayerCacheableItem:
flutter::LayerRasterCacheItem flutter::RasterCacheItem

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< RasterCacheKeyIDGetId () 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)
 
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< LayerRasterCacheItemMake (Layer *, int layer_cache_threshold, bool can_cache_children=false)
 Create a LayerRasterCacheItem, connect a layer and manage the Layer's raster cache.
 
- Protected Member Functions inherited from flutter::LayerRasterCacheItem
const SkRectGetPaintBoundsFromLayer () const
 
- Protected Attributes inherited from flutter::LayerRasterCacheItem
Layerlayer_
 
std::optional< RasterCacheKeyIDlayer_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_
 

Detailed Description

Definition at line 150 of file mock_layer.h.

Member Function Documentation

◆ LayerRasterCacheItem()

flutter::LayerRasterCacheItem::LayerRasterCacheItem ( Layer layer,
int  layer_cached_threshold = 1,
bool  can_cache_children = false 
)
explicit

Definition at line 17 of file layer_raster_cache_item.cc.

17 RasterCacheKeyID(layer->unique_id(), RasterCacheKeyType::kLayer),
18 // The layer raster_cache_item's cache state default value is none.
20 layer_(layer),
21 layer_cached_threshold_(layer_cached_threshold),
22 can_cache_children_(can_cache_children) {}
RasterCacheItem(RasterCacheKeyID key_id, CacheState cache_state=CacheState::kNone, unsigned child_entries=0)

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