Flutter Engine
The Flutter Engine
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 277 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 279 of file layer_state_stack.cc.

282 : bounds_(bounds),
283 filter_(filter),
284 old_filter_(prev.image_filter),
285 old_bounds_(prev.save_layer_bounds) {}
static float prev(float f)
Optional< SkRect > bounds
Definition: SkRecords.h:189

◆ ~ImageFilterEntry()

flutter::ImageFilterEntry::~ImageFilterEntry ( )
overridedefault

Member Function Documentation

◆ apply()

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

Definition at line 288 of file layer_state_stack.cc.

288 {
289 stack->outstanding_.save_layer_bounds = bounds_;
290 stack->outstanding_.image_filter = filter_;
291 }

◆ restore()

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

Definition at line 292 of file layer_state_stack.cc.

292 {
293 stack->outstanding_.save_layer_bounds = old_bounds_;
294 stack->outstanding_.image_filter = old_filter_;
295 }

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