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

Constructor & Destructor Documentation

◆ DrawVerticesOp()

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

Definition at line 789 of file dl_op_records.h.

789: mode(mode) {}
const DlBlendMode mode

Member Function Documentation

◆ dispatch()

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

Definition at line 793 of file dl_op_records.h.

793 {
794 if (op_needed(ctx)) {
795 const DlVertices* vertices =
796 reinterpret_cast<const DlVertices*>(this + 1);
797 ctx.receiver.drawVertices(vertices, mode);
798 }
799 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ kType

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

Definition at line 787 of file dl_op_records.h.

◆ mode

const DlBlendMode flutter::DrawVerticesOp::mode

Definition at line 791 of file dl_op_records.h.


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