#include <container_layer.h>
Public Member Functions | |
| 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 | |
| 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 |
Definition at line 14 of file container_layer.h.
| flutter::ContainerLayer::ContainerLayer | ( | ) |
Definition at line 11 of file container_layer.cc.
|
virtual |
Definition at line 106 of file container_layer.cc.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 33 of file container_layer.h.
|
inline |
Definition at line 35 of file container_layer.h.
Referenced by flutter::ImageFilterLayer::Paint(), flutter::OpacityLayer::Paint(), PaintChildren(), flutter::BackdropFilterLayer::Preroll(), flutter::ClipShapeLayer< T >::Preroll(), Preroll(), flutter::TransformLayer::Preroll(), and PrerollChildren().
|
inline |
Definition at line 40 of file container_layer.h.
Referenced by PaintChildren().
|
overridevirtual |
Reimplemented from flutter::Layer.
Reimplemented in flutter::ImageFilterLayer, flutter::OpacityLayer, flutter::ShaderMaskLayer, and flutter::TransformLayer.
Definition at line 13 of file container_layer.cc.
References flutter::DiffContext::CurrentSubtreeRegion(), DiffChildren(), and flutter::DiffContext::SetLayerPaintRegion().
Referenced by flutter::testing::DiffContextTest::DiffLayerTree(), and flutter::testing::TEST_F().
|
virtual |
Definition at line 27 of file container_layer.cc.
References flutter::DiffContext::AddDamage(), flutter::DiffContext::AddExistingPaintRegion(), FML_DCHECK, flutter::DiffContext::GetOldLayerPaintRegion(), i, flutter::Layer::IsReplacing(), flutter::DiffContext::IsSubtreeDirty(), and flutter::DiffContext::MarkSubtreeDirty().
Referenced by flutter::BackdropFilterLayer::Diff(), flutter::ClipShapeLayer< T >::Diff(), flutter::ColorFilterLayer::Diff(), Diff(), flutter::ImageFilterLayer::Diff(), flutter::OpacityLayer::Diff(), flutter::ShaderMaskLayer::Diff(), and flutter::TransformLayer::Diff().
|
inline |
Definition at line 26 of file container_layer.h.
Referenced by flutter::RasterCacheKeyID::LayerChildrenIds(), and flutter::TEST_F().
|
overridevirtual |
Implements flutter::Layer.
Reimplemented in flutter::ImageFilterLayer, flutter::OpacityLayer, flutter::ShaderMaskLayer, and flutter::TransformLayer.
Definition at line 116 of file container_layer.cc.
References FML_DCHECK, flutter::Layer::needs_painting(), and PaintChildren().
|
overridevirtual |
Reimplemented from flutter::Layer.
Definition at line 169 of file container_layer.cc.
References flutter::LayerStateStack::applyState(), child_paint_bounds(), children_renderable_state_flags(), and flutter::PaintContext::state_stack.
Referenced by flutter::BackdropFilterLayer::Paint(), flutter::ClipShapeLayer< T >::Paint(), flutter::ColorFilterLayer::Paint(), Paint(), flutter::ImageFilterLayer::Paint(), flutter::OpacityLayer::Paint(), flutter::ShaderMaskLayer::Paint(), and flutter::TransformLayer::Paint().
|
overridevirtual |
Implements flutter::Layer.
Reimplemented in flutter::ImageFilterLayer, flutter::OpacityLayer, flutter::ShaderMaskLayer, flutter::TransformLayer, and flutter::testing::MockCacheableContainerLayer.
Definition at line 110 of file container_layer.cc.
References child_paint_bounds(), PrerollChildren(), and flutter::Layer::set_paint_bounds().
Referenced by flutter::ColorFilterLayer::Preroll(), flutter::OpacityLayer::Preroll(), flutter::ShaderMaskLayer::Preroll(), and flutter::testing::MockCacheableContainerLayer::Preroll().
|
protected |
Definition at line 122 of file container_layer.cc.
References child_paint_bounds(), FML_DCHECK, flutter::PrerollContext::has_platform_view, flutter::PrerollContext::has_texture_layer, impeller::TRect< T >::IntersectsWithRect(), flutter::LayerStateStack::kCallerCanApplyAnything, flutter::PrerollContext::renderable_state_flags, set_child_paint_bounds(), set_children_renderable_state_flags(), flutter::Layer::set_subtree_has_platform_view(), and impeller::TRect< T >::Union().
Referenced by flutter::BackdropFilterLayer::Preroll(), flutter::ClipShapeLayer< T >::Preroll(), Preroll(), flutter::ImageFilterLayer::Preroll(), and flutter::TransformLayer::Preroll().
|
overridevirtual |
Reimplemented from flutter::Layer.
Definition at line 20 of file container_layer.cc.
References flutter::Layer::PreservePaintRegion().
|
inline |
Definition at line 36 of file container_layer.h.
Referenced by PrerollChildren().
|
inline |
Definition at line 43 of file container_layer.h.
Referenced by PrerollChildren().