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

#include <dl_op_records.h>

Inheritance diagram for flutter::RotateOp:
flutter::TransformClipOpBase flutter::DLOp

Public Member Functions

 RotateOp (SkScalar degrees)
 
void dispatch (DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::TransformClipOpBase
bool op_needed (const DispatchContext &context) const
 
- Public Member Functions inherited from flutter::DLOp
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const SkScalar degrees
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kRotate
 
- Static Public Attributes inherited from flutter::TransformClipOpBase
static constexpr uint32_t kDepthInc = 0
 
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 460 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ RotateOp()

flutter::RotateOp::RotateOp ( SkScalar  degrees)
inlineexplicit

Definition at line 463 of file dl_op_records.h.

463: degrees(degrees) {}
const SkScalar degrees

Member Function Documentation

◆ dispatch()

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

Definition at line 467 of file dl_op_records.h.

467 {
468 if (op_needed(ctx)) {
469 ctx.receiver.rotate(degrees);
470 }
471 }
bool op_needed(const DispatchContext &context) const

Member Data Documentation

◆ degrees

const SkScalar flutter::RotateOp::degrees

Definition at line 465 of file dl_op_records.h.

◆ kType

constexpr auto flutter::RotateOp::kType = DisplayListOpType::kRotate
staticconstexpr

Definition at line 461 of file dl_op_records.h.


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