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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawPathOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawPathOp (const SkPath &path)
 
void dispatch (DispatchContext &ctx) const
 
DisplayListCompare equals (const DrawPathOp *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

const DlOpReceiver::CacheablePath cached_path
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawPathOp()

flutter::DrawPathOp::DrawPathOp ( const SkPath path)
inlineexplicit

Definition at line 687 of file dl_op_records.h.

687: cached_path(path) {}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57
const DlOpReceiver::CacheablePath cached_path

Member Function Documentation

◆ dispatch()

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

Definition at line 691 of file dl_op_records.h.

691 {
692 if (op_needed(ctx)) {
693 if (ctx.receiver.PrefersImpellerPaths()) {
694 ctx.receiver.drawPath(cached_path);
695 } else {
696 ctx.receiver.drawPath(cached_path.sk_path);
697 }
698 }
699 }
bool op_needed(const DispatchContext &ctx) const

◆ equals()

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

Definition at line 701 of file dl_op_records.h.

Member Data Documentation

◆ cached_path

const DlOpReceiver::CacheablePath flutter::DrawPathOp::cached_path

Definition at line 689 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawPathOp::kType = DisplayListOpType::kDrawPath
staticconstexpr

Definition at line 685 of file dl_op_records.h.


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