Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::DrawColorOp Struct Referencefinal

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawColorOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawColorOp (DlColor color, DlBlendMode mode)
 
void dispatch (DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DrawOpBase
bool op_needed (const DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DLOp
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const DlColor color
 
const DlBlendMode mode
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kDrawColor
 
- Static Public Attributes inherited from flutter::DrawOpBase
static constexpr uint32_t kDepthInc = 1
 
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 643 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawColorOp()

flutter::DrawColorOp::DrawColorOp ( DlColor  color,
DlBlendMode  mode 
)
inline

Definition at line 646 of file dl_op_records.h.

646: color(color), mode(mode) {}
const DlBlendMode mode

Member Function Documentation

◆ dispatch()

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

Definition at line 651 of file dl_op_records.h.

651 {
652 if (op_needed(ctx)) {
653 ctx.receiver.drawColor(color, mode);
654 }
655 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ color

const DlColor flutter::DrawColorOp::color

Definition at line 648 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawColorOp::kType = DisplayListOpType::kDrawColor
staticconstexpr

Definition at line 644 of file dl_op_records.h.

◆ mode

const DlBlendMode flutter::DrawColorOp::mode

Definition at line 649 of file dl_op_records.h.


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