Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
flutter::SaveLayerEntry Class Reference
Inheritance diagram for flutter::SaveLayerEntry:
flutter::BackdropFilterEntry

Public Member Functions

 SaveLayerEntry (const SkRect &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 SkRect 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 SkRect 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) {}
static float prev(float f)
const LayerStateStack::RenderingAttributes old_attributes_
const DlBlendMode blend_mode_
Optional< SkRect > bounds
Definition: SkRecords.h:189

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 }

◆ 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 }

Member Data Documentation

◆ blend_mode_

const DlBlendMode flutter::SaveLayerEntry::blend_mode_
protected

Definition at line 240 of file layer_state_stack.cc.

◆ bounds_

const SkRect flutter::SaveLayerEntry::bounds_
protected

Definition at line 239 of file layer_state_stack.cc.

◆ old_attributes_

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

Definition at line 241 of file layer_state_stack.cc.


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