Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::ClipRectEntry Class Reference

Inherits flutter::LayerStateStack::StateEntry.

Public Member Functions

 ClipRectEntry (const SkRect &clip_rect, bool is_aa)
 
void apply (LayerStateStack *stack) const override
 
void update_mutators (MutatorsStack *mutators_stack) const override
 

Detailed Description

Definition at line 437 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ ClipRectEntry()

flutter::ClipRectEntry::ClipRectEntry ( const SkRect clip_rect,
bool  is_aa 
)
inline

Definition at line 439 of file layer_state_stack.cc.

440 : clip_rect_(clip_rect), is_aa_(is_aa) {}

Member Function Documentation

◆ apply()

void flutter::ClipRectEntry::apply ( LayerStateStack stack) const
inlineoverride

Definition at line 442 of file layer_state_stack.cc.

442 {
443 stack->delegate_->clipRect(clip_rect_, DlCanvas::ClipOp::kIntersect,
444 is_aa_);
445 }

◆ update_mutators()

void flutter::ClipRectEntry::update_mutators ( MutatorsStack mutators_stack) const
inlineoverride

Definition at line 446 of file layer_state_stack.cc.

446 {
447 mutators_stack->PushClipRect(clip_rect_);
448 }

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