Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::BackdropFilterEntry Class Reference
Inheritance diagram for flutter::BackdropFilterEntry:
flutter::SaveLayerEntry

Public Member Functions

 BackdropFilterEntry (const SkRect &bounds, const std::shared_ptr< const DlImageFilter > &filter, DlBlendMode blend_mode, const LayerStateStack::RenderingAttributes &prev)
 
 ~BackdropFilterEntry () override=default
 
void apply (LayerStateStack *stack) const override
 
void reapply (LayerStateStack *stack) const override
 
- Public Member Functions inherited from flutter::SaveLayerEntry
 SaveLayerEntry (const SkRect &bounds, DlBlendMode blend_mode, const LayerStateStack::RenderingAttributes &prev)
 
void apply (LayerStateStack *stack) const override
 
void restore (LayerStateStack *stack) const override
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::SaveLayerEntry
 FML_DISALLOW_COPY_ASSIGN_AND_MOVE (SaveLayerEntry)
 
- Protected Attributes inherited from flutter::SaveLayerEntry
const SkRect bounds_
 
const DlBlendMode blend_mode_
 
const LayerStateStack::RenderingAttributes old_attributes_
 

Detailed Description

Definition at line 345 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ BackdropFilterEntry()

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

Definition at line 347 of file layer_state_stack.cc.

351 : SaveLayerEntry(bounds, blend_mode, prev), filter_(filter) {}
static float prev(float f)
SaveLayerEntry(const SkRect &bounds, DlBlendMode blend_mode, const LayerStateStack::RenderingAttributes &prev)

◆ ~BackdropFilterEntry()

flutter::BackdropFilterEntry::~BackdropFilterEntry ( )
overridedefault

Member Function Documentation

◆ apply()

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

Definition at line 354 of file layer_state_stack.cc.

354 {
355 stack->delegate_->saveLayer(bounds_, stack->outstanding_, blend_mode_,
356 filter_.get());
357 stack->outstanding_ = {};
358 }
const DlBlendMode blend_mode_

◆ reapply()

void flutter::BackdropFilterEntry::reapply ( LayerStateStack stack) const
inlineoverride

Definition at line 360 of file layer_state_stack.cc.

360 {
361 // On the reapply for subsequent overlay layers, we do not
362 // want to reapply the backdrop filter, but we do need to
363 // do a saveLayer to encapsulate the contents and match the
364 // restore that will be forthcoming. Note that this is not
365 // perfect if the BlendMode is not associative as we will be
366 // compositing multiple parts of the content in batches.
367 // Luckily the most common SrcOver is associative.
369 }
void apply(LayerStateStack *stack) const override

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