Inherits flutter::LayerStateStack::StateEntry.
Definition at line 313 of file layer_state_stack.cc.
◆ 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 |
◆ apply()
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()
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: