Flutter Engine
The Flutter Engine
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 647 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawColorOp()

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

Definition at line 650 of file dl_op_records.h.

650: color(color), mode(mode) {}
const DlColor color
const DlBlendMode mode

Member Function Documentation

◆ dispatch()

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

Definition at line 655 of file dl_op_records.h.

655 {
656 if (op_needed(ctx)) {
657 ctx.receiver.drawColor(color, mode);
658 }
659 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ color

const DlColor flutter::DrawColorOp::color

Definition at line 652 of file dl_op_records.h.

◆ kType

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

Definition at line 648 of file dl_op_records.h.

◆ mode

const DlBlendMode flutter::DrawColorOp::mode

Definition at line 653 of file dl_op_records.h.


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