Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
 
- 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 377 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 380 of file dl_op_records.h.

383 : 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 387 of file dl_op_records.h.

387 {
388 if (save_needed(ctx)) {
389 ctx.receiver.saveLayer(rect, options, total_content_depth,
390 backdrop.get());
391 }
392 }
bool save_needed(DispatchContext &ctx) const

◆ equals()

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

Definition at line 394 of file dl_op_records.h.

394 {
395 return (options == other->options && rect == other->rect &&
396 Equals(backdrop, other->backdrop))
399 }
bool Equals(const T *a, const T *b)

Member Data Documentation

◆ backdrop

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

Definition at line 385 of file dl_op_records.h.

◆ kType

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

Definition at line 378 of file dl_op_records.h.


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