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

#include <dl_op_records.h>

Inheritance diagram for flutter::TranslateOp:
flutter::TransformClipOpBase flutter::DLOp

Public Member Functions

 TranslateOp (SkScalar tx, SkScalar ty)
 
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 tx
 
const SkScalar ty
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ TranslateOp()

flutter::TranslateOp::TranslateOp ( SkScalar  tx,
SkScalar  ty 
)
inline

Definition at line 432 of file dl_op_records.h.

432: tx(tx), ty(ty) {}

Member Function Documentation

◆ dispatch()

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

Definition at line 437 of file dl_op_records.h.

437 {
438 if (op_needed(ctx)) {
439 ctx.receiver.translate(tx, ty);
440 }
441 }
bool op_needed(const DispatchContext &context) const

Member Data Documentation

◆ kType

constexpr auto flutter::TranslateOp::kType = DisplayListOpType::kTranslate
staticconstexpr

Definition at line 430 of file dl_op_records.h.

◆ tx

const SkScalar flutter::TranslateOp::tx

Definition at line 434 of file dl_op_records.h.

◆ ty

const SkScalar flutter::TranslateOp::ty

Definition at line 435 of file dl_op_records.h.


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