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

Inherits flutter::LayerStateStack::StateEntry.

Public Member Functions

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

Detailed Description

Definition at line 313 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ ColorFilterEntry()

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

Definition at line 315 of file layer_state_stack.cc.

318 : bounds_(bounds),
319 filter_(filter),
320 old_filter_(prev.color_filter),
321 old_bounds_(prev.save_layer_bounds) {}
static float prev(float f)

◆ ~ColorFilterEntry()

flutter::ColorFilterEntry::~ColorFilterEntry ( )
overridedefault

Member Function Documentation

◆ apply()

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

Definition at line 324 of file layer_state_stack.cc.

324 {
325 stack->outstanding_.save_layer_bounds = bounds_;
326 stack->outstanding_.color_filter = filter_;
327 }

◆ restore()

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

Definition at line 328 of file layer_state_stack.cc.

328 {
329 stack->outstanding_.save_layer_bounds = old_bounds_;
330 stack->outstanding_.color_filter = old_filter_;
331 }

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