Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
flutter::CacheableContainerLayer Class Reference

#include <cacheable_layer.h>

Inheritance diagram for flutter::CacheableContainerLayer:
flutter::ContainerLayer flutter::Layer flutter::ClipShapeLayer< SkPath > flutter::ClipShapeLayer< SkRRect > flutter::ClipShapeLayer< SkRect > flutter::ClipShapeLayer< T > flutter::ColorFilterLayer flutter::ImageFilterLayer flutter::OpacityLayer flutter::ShaderMaskLayer flutter::testing::MockCacheableContainerLayer

Public Member Functions

 CacheableContainerLayer (int layer_cached_threshold=RasterCacheUtil::kMinimumRendersBeforeCachingFilterLayer, bool can_cache_children=false)
 
const LayerRasterCacheItemraster_cache_item () const
 
- Public Member Functions inherited from flutter::ContainerLayer
 ContainerLayer ()
 
void Diff (DiffContext *context, const Layer *old_layer) override
 
void PreservePaintRegion (DiffContext *context) override
 
virtual void Add (std::shared_ptr< Layer > layer)
 
void Preroll (PrerollContext *context) override
 
void Paint (PaintContext &context) const override
 
const std::vector< std::shared_ptr< Layer > > & layers () const
 
virtual void DiffChildren (DiffContext *context, const ContainerLayer *old_layer)
 
void PaintChildren (PaintContext &context) const override
 
const ContainerLayeras_container_layer () const override
 
const SkRectchild_paint_bounds () const
 
void set_child_paint_bounds (const SkRect &bounds)
 
int children_renderable_state_flags () const
 
void set_children_renderable_state_flags (int flags)
 
- Public Member Functions inherited from flutter::Layer
 Layer ()
 
virtual ~Layer ()
 
void AssignOldLayer (Layer *old_layer)
 
virtual bool IsReplacing (DiffContext *context, const Layer *old_layer) const
 
virtual void Diff (DiffContext *context, const Layer *old_layer)
 
virtual void PreservePaintRegion (DiffContext *context)
 
virtual void Preroll (PrerollContext *context)=0
 
virtual void Paint (PaintContext &context) const =0
 
virtual void PaintChildren (PaintContext &context) const
 
bool subtree_has_platform_view () const
 
void set_subtree_has_platform_view (bool value)
 
const SkRectpaint_bounds () const
 
void set_paint_bounds (const SkRect &paint_bounds)
 
bool is_empty () const
 
bool needs_painting (PaintContext &context) const
 
uint64_t original_layer_id () const
 
uint64_t unique_id () const
 
virtual RasterCacheKeyID caching_key_id () const
 
virtual const ContainerLayeras_container_layer () const
 
virtual const DisplayListLayeras_display_list_layer () const
 
virtual const TextureLayeras_texture_layer () const
 
virtual const PerformanceOverlayLayeras_performance_overlay_layer () const
 
virtual const testing::MockLayeras_mock_layer () const
 

Protected Attributes

std::unique_ptr< LayerRasterCacheItemlayer_raster_cache_item_
 

Additional Inherited Members

- Static Public Attributes inherited from flutter::Layer
static constexpr int kSaveLayerRenderFlags
 
static constexpr int kRasterCacheRenderFlags
 
- Protected Member Functions inherited from flutter::ContainerLayer
void PrerollChildren (PrerollContext *context, SkRect *child_paint_bounds)
 

Detailed Description

Definition at line 33 of file cacheable_layer.h.

Constructor & Destructor Documentation

◆ CacheableContainerLayer()

flutter::CacheableContainerLayer::CacheableContainerLayer ( int  layer_cached_threshold = RasterCacheUtil::kMinimumRendersBeforeCachingFilterLayer,
bool  can_cache_children = false 
)
explicit

Definition at line 38 of file cacheable_layer.cc.

39 {
40#if !SLIMPELLER
42 this, layer_cached_threshold, can_cache_children);
43#endif // !SLIMPELLER
44}
std::unique_ptr< LayerRasterCacheItem > layer_raster_cache_item_
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.

Member Function Documentation

◆ raster_cache_item()

const LayerRasterCacheItem * flutter::CacheableContainerLayer::raster_cache_item ( ) const
inline

Definition at line 41 of file cacheable_layer.h.

41 {
42 return layer_raster_cache_item_.get();
43 }

Member Data Documentation

◆ layer_raster_cache_item_

std::unique_ptr<LayerRasterCacheItem> flutter::CacheableContainerLayer::layer_raster_cache_item_
protected

Definition at line 46 of file cacheable_layer.h.


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