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

Inherits flutter::LayerStateStack::StateEntry.

Public Member Functions

 ImageFilterEntry (const SkRect &bounds, const std::shared_ptr< const DlImageFilter > &filter, const LayerStateStack::RenderingAttributes &prev)
 
 ~ImageFilterEntry () override=default
 
void apply (LayerStateStack *stack) const override
 
void restore (LayerStateStack *stack) const override
 

Detailed Description

Definition at line 281 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ ImageFilterEntry()

flutter::ImageFilterEntry::ImageFilterEntry ( const SkRect bounds,
const std::shared_ptr< const DlImageFilter > &  filter,
const LayerStateStack::RenderingAttributes &  prev 
)
inline

Definition at line 283 of file layer_state_stack.cc.

286 : bounds_(bounds),
287 filter_(filter),
288 old_filter_(prev.image_filter),
289 old_bounds_(prev.save_layer_bounds) {}
static float prev(float f)

◆ ~ImageFilterEntry()

flutter::ImageFilterEntry::~ImageFilterEntry ( )
overridedefault

Member Function Documentation

◆ apply()

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

Definition at line 292 of file layer_state_stack.cc.

292 {
293 stack->outstanding_.save_layer_bounds = bounds_;
294 stack->outstanding_.image_filter = filter_;
295 }

◆ restore()

void flutter::ImageFilterEntry::restore ( LayerStateStack stack) const
inlineoverride

Definition at line 296 of file layer_state_stack.cc.

296 {
297 stack->outstanding_.save_layer_bounds = old_bounds_;
298 stack->outstanding_.image_filter = old_filter_;
299 }

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