Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 219 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 221 of file layer_state_stack.cc.

224 : bounds_(bounds), blend_mode_(blend_mode), old_attributes_(prev) {}
static float prev(float f)
const LayerStateStack::RenderingAttributes old_attributes_
const DlBlendMode blend_mode_

Member Function Documentation

◆ apply()

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

Definition at line 226 of file layer_state_stack.cc.

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

◆ 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 231 of file layer_state_stack.cc.

231 {
232 if (stack->checkerboard_func_) {
233 DlCanvas* canvas = stack->canvas_delegate();
234 if (canvas != nullptr) {
235 (*stack->checkerboard_func_)(canvas, bounds_);
236 }
237 }
238 stack->delegate_->restore();
239 stack->outstanding_ = old_attributes_;
240 }

Member Data Documentation

◆ blend_mode_

const DlBlendMode flutter::SaveLayerEntry::blend_mode_
protected

Definition at line 244 of file layer_state_stack.cc.

◆ bounds_

const SkRect flutter::SaveLayerEntry::bounds_
protected

Definition at line 243 of file layer_state_stack.cc.

◆ old_attributes_

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

Definition at line 245 of file layer_state_stack.cc.


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