#include <clip_shape_layer.h>
Public Types | |
| using | ClipShape = T |
Public Member Functions | |
| ClipShapeLayer (const ClipShape &clip_shape, Clip clip_behavior) | |
| void | Diff (DiffContext *context, const Layer *old_layer) override |
| void | Preroll (PrerollContext *context) override |
| void | Paint (PaintContext &context) const override |
| bool | UsesSaveLayer () const |
Public Member Functions inherited from flutter::CacheableContainerLayer | |
| CacheableContainerLayer (int layer_cached_threshold=RasterCacheUtil::kMinimumRendersBeforeCachingFilterLayer, bool can_cache_children=false) | |
| const LayerRasterCacheItem * | raster_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 ContainerLayer * | as_container_layer () const override |
| const DlRect & | child_paint_bounds () const |
| void | set_child_paint_bounds (const DlRect &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 |
| bool | subtree_has_platform_view () const |
| void | set_subtree_has_platform_view (bool value) |
| const DlRect & | paint_bounds () const |
| void | set_paint_bounds (const DlRect &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 DisplayListLayer * | as_display_list_layer () const |
| virtual const TextureLayer * | as_texture_layer () const |
| virtual const PerformanceOverlayLayer * | as_performance_overlay_layer () const |
| virtual const testing::MockLayer * | as_mock_layer () const |
Protected Member Functions | |
| virtual const DlRect | clip_shape_bounds () const =0 |
| virtual void | ApplyClip (LayerStateStack::MutatorContext &mutator) const =0 |
| virtual | ~ClipShapeLayer ()=default |
| const ClipShape & | clip_shape () const |
| Clip | clip_behavior () const |
Protected Member Functions inherited from flutter::ContainerLayer | |
| void | PrerollChildren (PrerollContext *context, DlRect *child_paint_bounds) |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::Layer | |
| static constexpr int | kSaveLayerRenderFlags |
| static constexpr int | kRasterCacheRenderFlags |
Protected Attributes inherited from flutter::CacheableContainerLayer | |
| std::unique_ptr< LayerRasterCacheItem > | layer_raster_cache_item_ |
Definition at line 15 of file clip_shape_layer.h.
| using flutter::ClipShapeLayer< T >::ClipShape = T |
Definition at line 17 of file clip_shape_layer.h.
|
inline |
Definition at line 18 of file clip_shape_layer.h.
References flutter::ClipShapeLayer< T >::clip_behavior(), FML_DCHECK, and flutter::kNone.
|
protectedvirtualdefault |
|
protectedpure virtual |
Implemented in flutter::ClipPathLayer, flutter::ClipRectLayer, flutter::ClipRRectLayer, and flutter::ClipRSuperellipseLayer.
Referenced by flutter::ClipShapeLayer< T >::Paint(), and flutter::ClipShapeLayer< T >::Preroll().
|
inlineprotected |
Definition at line 113 of file clip_shape_layer.h.
Referenced by flutter::ClipShapeLayer< T >::ClipShapeLayer().
|
inlineprotected |
Definition at line 112 of file clip_shape_layer.h.
|
protectedpure virtual |
Implemented in flutter::ClipPathLayer, flutter::ClipRectLayer, flutter::ClipRRectLayer, and flutter::ClipRSuperellipseLayer.
Referenced by flutter::ClipShapeLayer< T >::Diff(), and flutter::ClipShapeLayer< T >::Preroll().
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 25 of file clip_shape_layer.h.
References flutter::ClipShapeLayer< T >::clip_shape_bounds(), flutter::DiffContext::CurrentSubtreeRegion(), flutter::ContainerLayer::DiffChildren(), FML_DCHECK, flutter::DiffContext::GetOldLayerPaintRegion(), flutter::DiffContext::has_raster_cache(), flutter::DiffContext::IsSubtreeDirty(), flutter::DiffContext::MarkSubtreeDirty(), flutter::DiffContext::PushCullRect(), flutter::DiffContext::SetLayerPaintRegion(), flutter::ClipShapeLayer< T >::UsesSaveLayer(), and flutter::DiffContext::WillPaintWithIntegralTransform().
|
inlineoverridevirtual |
Implements flutter::Layer.
Definition at line 74 of file clip_shape_layer.h.
References flutter::ClipShapeLayer< T >::ApplyClip(), flutter::LayerStateStack::applyState(), flutter::LayerStateStack::fill(), FML_DCHECK, flutter::LayerStateStack::kCallerCanApplyOpacity, flutter::CacheableContainerLayer::layer_raster_cache_item_, flutter::Layer::needs_painting(), flutter::Layer::paint_bounds(), flutter::ContainerLayer::PaintChildren(), flutter::LayerStateStack::save(), flutter::PaintContext::state_stack, and flutter::ClipShapeLayer< T >::UsesSaveLayer().
|
inlineoverridevirtual |
Implements flutter::Layer.
Definition at line 44 of file clip_shape_layer.h.
References flutter::ClipShapeLayer< T >::ApplyClip(), flutter::ContainerLayer::child_paint_bounds(), flutter::ClipShapeLayer< T >::clip_shape_bounds(), flutter::Layer::AutoPrerollSaveLayerState::Create(), impeller::TRect< T >::IntersectionOrEmpty(), flutter::Layer::kSaveLayerRenderFlags, flutter::CacheableContainerLayer::layer_raster_cache_item_, flutter::LayerStateStack::matrix(), flutter::ContainerLayer::PrerollChildren(), flutter::PrerollContext::renderable_state_flags, flutter::LayerStateStack::save(), flutter::Layer::set_paint_bounds(), flutter::PrerollContext::state_stack, and flutter::ClipShapeLayer< T >::UsesSaveLayer().
|
inline |
Definition at line 103 of file clip_shape_layer.h.
References flutter::kAntiAliasWithSaveLayer.
Referenced by flutter::ClipShapeLayer< T >::Diff(), flutter::ClipShapeLayer< T >::Paint(), and flutter::ClipShapeLayer< T >::Preroll().