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

#include <clip_rrect_layer.h>

Inheritance diagram for flutter::ClipRRectLayer:
flutter::ClipShapeLayer< SkRRect > flutter::CacheableContainerLayer flutter::ContainerLayer flutter::Layer

Public Member Functions

 ClipRRectLayer (const SkRRect &clip_rrect, Clip clip_behavior)
 
- Public Member Functions inherited from flutter::ClipShapeLayer< SkRRect >
 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 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
 
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 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 Member Functions

const SkRectclip_shape_bounds () const override
 
void ApplyClip (LayerStateStack::MutatorContext &mutator) const override
 
- Protected Member Functions inherited from flutter::ClipShapeLayer< SkRRect >
virtual ~ClipShapeLayer ()=default
 
const ClipShapeclip_shape () const
 
Clip clip_behavior () const
 
- Protected Member Functions inherited from flutter::ContainerLayer
void PrerollChildren (PrerollContext *context, SkRect *child_paint_bounds)
 

Additional Inherited Members

- Public Types inherited from flutter::ClipShapeLayer< SkRRect >
using ClipShape = SkRRect
 
- Static Public Attributes inherited from flutter::Layer
static constexpr int kSaveLayerRenderFlags
 
static constexpr int kRasterCacheRenderFlags
 
- Protected Attributes inherited from flutter::CacheableContainerLayer
std::unique_ptr< LayerRasterCacheItemlayer_raster_cache_item_
 

Detailed Description

Definition at line 12 of file clip_rrect_layer.h.

Constructor & Destructor Documentation

◆ ClipRRectLayer()

flutter::ClipRRectLayer::ClipRRectLayer ( const SkRRect clip_rrect,
Clip  clip_behavior 
)

Definition at line 9 of file clip_rrect_layer.cc.

10 : ClipShapeLayer(clip_rrect, clip_behavior) {}
ClipShapeLayer(const ClipShape &clip_shape, Clip clip_behavior)

Member Function Documentation

◆ ApplyClip()

void flutter::ClipRRectLayer::ApplyClip ( LayerStateStack::MutatorContext mutator) const
overrideprotectedvirtual

Implements flutter::ClipShapeLayer< SkRRect >.

Definition at line 16 of file clip_rrect_layer.cc.

16 {
17 mutator.clipRRect(clip_shape(), clip_behavior() != Clip::kHardEdge);
18}
const ClipShape & clip_shape() const
@ kHardEdge
Definition layer.h:52

◆ clip_shape_bounds()

const SkRect & flutter::ClipRRectLayer::clip_shape_bounds ( ) const
overrideprotectedvirtual

Implements flutter::ClipShapeLayer< SkRRect >.

Definition at line 12 of file clip_rrect_layer.cc.

12 {
13 return clip_shape().getBounds();
14}
const SkRect & getBounds() const
Definition SkRRect.h:279

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