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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawDisplayListOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawDisplayListOp (const sk_sp< DisplayList > &display_list, SkScalar opacity)
 
void dispatch (DispatchContext &ctx) const
 
DisplayListCompare equals (const DrawDisplayListOp *other) 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

SkScalar opacity
 
const sk_sp< DisplayListdisplay_list
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawDisplayListOp()

flutter::DrawDisplayListOp::DrawDisplayListOp ( const sk_sp< DisplayList > &  display_list,
SkScalar  opacity 
)
inlineexplicit

Definition at line 1072 of file dl_op_records.h.

Member Function Documentation

◆ dispatch()

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

Definition at line 1079 of file dl_op_records.h.

1079 {
1080 if (op_needed(ctx)) {
1081 ctx.receiver.drawDisplayList(display_list, opacity);
1082 }
1083 }
bool op_needed(const DispatchContext &ctx) const

◆ equals()

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

Definition at line 1085 of file dl_op_records.h.

1085 {
1086 return (opacity == other->opacity &&
1087 display_list->Equals(other->display_list))
1090 }

Member Data Documentation

◆ display_list

const sk_sp<DisplayList> flutter::DrawDisplayListOp::display_list

Definition at line 1077 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawDisplayListOp::kType = DisplayListOpType::kDrawDisplayList
staticconstexpr

Definition at line 1070 of file dl_op_records.h.

◆ opacity

SkScalar flutter::DrawDisplayListOp::opacity

Definition at line 1076 of file dl_op_records.h.


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