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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawVerticesOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawVerticesOp (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 DlBlendMode mode
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kDrawVertices
 
- 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 812 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawVerticesOp()

flutter::DrawVerticesOp::DrawVerticesOp ( DlBlendMode  mode)
inlineexplicit

Definition at line 815 of file dl_op_records.h.

815: mode(mode) {}
const DlBlendMode mode

Member Function Documentation

◆ dispatch()

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

Definition at line 819 of file dl_op_records.h.

819 {
820 if (op_needed(ctx)) {
821 const DlVertices* vertices =
822 reinterpret_cast<const DlVertices*>(this + 1);
823 ctx.receiver.drawVertices(vertices, mode);
824 }
825 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ kType

constexpr auto flutter::DrawVerticesOp::kType = DisplayListOpType::kDrawVertices
staticconstexpr

Definition at line 813 of file dl_op_records.h.

◆ mode

const DlBlendMode flutter::DrawVerticesOp::mode

Definition at line 817 of file dl_op_records.h.


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