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

347 : SaveLayerEntry(bounds, blend_mode, prev), filter_(filter) {}
static float prev(float f)
SaveLayerEntry(const SkRect &bounds, DlBlendMode blend_mode, const LayerStateStack::RenderingAttributes &prev)
Optional< SkRect > bounds
Definition: SkRecords.h:189

◆ ~BackdropFilterEntry()

flutter::BackdropFilterEntry::~BackdropFilterEntry ( )
overridedefault

Member Function Documentation

◆ apply()

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

Definition at line 350 of file layer_state_stack.cc.

350 {
351 stack->delegate_->saveLayer(bounds_, stack->outstanding_, blend_mode_,
352 filter_.get());
353 stack->outstanding_ = {};
354 }
const DlBlendMode blend_mode_

◆ reapply()

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

Definition at line 356 of file layer_state_stack.cc.

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

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