Flutter Engine
 
Loading...
Searching...
No Matches
flutter::SaveLayerEntry Class Reference
Inheritance diagram for flutter::SaveLayerEntry:
flutter::BackdropFilterEntry

Public Member Functions

 SaveLayerEntry (const DlRect &bounds, DlBlendMode blend_mode, const LayerStateStack::RenderingAttributes &prev)
 
void apply (LayerStateStack *stack) const override
 
void restore (LayerStateStack *stack) const override
 

Protected Member Functions

 FML_DISALLOW_COPY_ASSIGN_AND_MOVE (SaveLayerEntry)
 

Protected Attributes

const DlRect bounds_
 
const DlBlendMode blend_mode_
 
const LayerStateStack::RenderingAttributes old_attributes_
 

Detailed Description

Definition at line 221 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ SaveLayerEntry()

flutter::SaveLayerEntry::SaveLayerEntry ( const DlRect bounds,
DlBlendMode  blend_mode,
const LayerStateStack::RenderingAttributes &  prev 
)
inline

Definition at line 223 of file layer_state_stack.cc.

226 : bounds_(bounds), blend_mode_(blend_mode), old_attributes_(prev) {}
const LayerStateStack::RenderingAttributes old_attributes_
const DlRect bounds_
const DlBlendMode blend_mode_

Member Function Documentation

◆ apply()

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

Definition at line 228 of file layer_state_stack.cc.

228 {
229 stack->delegate_->saveLayer(bounds_, stack->outstanding_, blend_mode_,
230 nullptr);
231 stack->outstanding_ = {};
232 }

References blend_mode_, and bounds_.

Referenced by flutter::BackdropFilterEntry::reapply().

◆ FML_DISALLOW_COPY_ASSIGN_AND_MOVE()

flutter::SaveLayerEntry::FML_DISALLOW_COPY_ASSIGN_AND_MOVE ( SaveLayerEntry  )
protected

◆ restore()

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

Definition at line 233 of file layer_state_stack.cc.

233 {
234 stack->delegate_->restore();
235 stack->outstanding_ = old_attributes_;
236 }

References old_attributes_.

Member Data Documentation

◆ blend_mode_

const DlBlendMode flutter::SaveLayerEntry::blend_mode_
protected

Definition at line 240 of file layer_state_stack.cc.

Referenced by apply(), and flutter::BackdropFilterEntry::apply().

◆ bounds_

const DlRect flutter::SaveLayerEntry::bounds_
protected

Definition at line 239 of file layer_state_stack.cc.

Referenced by apply(), and flutter::BackdropFilterEntry::apply().

◆ old_attributes_

const LayerStateStack::RenderingAttributes flutter::SaveLayerEntry::old_attributes_
protected

Definition at line 241 of file layer_state_stack.cc.

Referenced by restore().


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