Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::SaveLayerBackdropOp Struct Referencefinal

#include <dl_op_records.h>

Inheritance diagram for flutter::SaveLayerBackdropOp:
flutter::SaveLayerOpBase flutter::SaveOpBase flutter::DLOp

Public Member Functions

 SaveLayerBackdropOp (const SaveLayerOptions &options, const SkRect &rect, const DlImageFilter *backdrop)
 
void dispatch (DispatchContext &ctx) const
 
DisplayListCompare equals (const SaveLayerBackdropOp *other) const
 
- Public Member Functions inherited from flutter::SaveLayerOpBase
 SaveLayerOpBase (const SaveLayerOptions &options, const SkRect &rect)
 
- Public Member Functions inherited from flutter::SaveOpBase
 SaveOpBase ()
 
 SaveOpBase (const SaveLayerOptions &options)
 
bool save_needed (DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DLOp
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const std::shared_ptr< DlImageFilterbackdrop
 
- Public Attributes inherited from flutter::SaveLayerOpBase
SkRect rect
 
DlBlendMode max_blend_mode = DlBlendMode::kClear
 
- Public Attributes inherited from flutter::SaveOpBase
SaveLayerOptions options
 
int restore_index
 
uint32_t total_content_depth
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kSaveLayerBackdrop
 
- Static Public Attributes inherited from flutter::SaveOpBase
static constexpr uint32_t kDepthInc = 0
 
static constexpr uint32_t kRenderOpInc = 1
 
- Static Public Attributes inherited from flutter::DLOp
static constexpr uint32_t kDepthInc = 0
 
static constexpr uint32_t kRenderOpInc = 0
 

Detailed Description

Definition at line 381 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ SaveLayerBackdropOp()

flutter::SaveLayerBackdropOp::SaveLayerBackdropOp ( const SaveLayerOptions options,
const SkRect rect,
const DlImageFilter backdrop 
)
inline

Definition at line 384 of file dl_op_records.h.

387 : SaveLayerOpBase(options, rect), backdrop(backdrop->shared()) {}
const std::shared_ptr< DlImageFilter > backdrop
SaveLayerOpBase(const SaveLayerOptions &options, const SkRect &rect)
SaveLayerOptions options

Member Function Documentation

◆ dispatch()

void flutter::SaveLayerBackdropOp::dispatch ( DispatchContext ctx) const
inline

Definition at line 391 of file dl_op_records.h.

391 {
392 if (save_needed(ctx)) {
393 ctx.receiver.saveLayer(rect, options, total_content_depth, max_blend_mode,
394 backdrop.get());
395 }
396 }
uint32_t total_content_depth
bool save_needed(DispatchContext &ctx) const

◆ equals()

DisplayListCompare flutter::SaveLayerBackdropOp::equals ( const SaveLayerBackdropOp other) const
inline

Definition at line 398 of file dl_op_records.h.

398 {
399 return (options == other->options && rect == other->rect &&
400 Equals(backdrop, other->backdrop))
403 }
bool Equals(const T *a, const T *b)
Definition: dl_comparable.h:19

Member Data Documentation

◆ backdrop

const std::shared_ptr<DlImageFilter> flutter::SaveLayerBackdropOp::backdrop

Definition at line 389 of file dl_op_records.h.

◆ kType

constexpr auto flutter::SaveLayerBackdropOp::kType = DisplayListOpType::kSaveLayerBackdrop
staticconstexpr

Definition at line 382 of file dl_op_records.h.


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