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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawImageRectOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawImageRectOp (const sk_sp< DlImage > &image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, DlCanvas::SrcRectConstraint constraint)
 
void dispatch (DispatchContext &ctx) const
 
DisplayListCompare equals (const DrawImageRectOp *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 SkRect src
 
const SkRect dst
 
const DlImageSampling sampling
 
const bool render_with_attributes
 
const DlCanvas::SrcRectConstraint constraint
 
const sk_sp< DlImageimage
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawImageRectOp()

flutter::DrawImageRectOp::DrawImageRectOp ( const sk_sp< DlImage > &  image,
const SkRect src,
const SkRect dst,
DlImageSampling  sampling,
bool  render_with_attributes,
DlCanvas::SrcRectConstraint  constraint 
)
inline

Definition at line 839 of file dl_op_records.h.

845 : src(src),
846 dst(dst),
850 image(image) {}
const sk_sp< DlImage > image
const DlImageSampling sampling
const DlCanvas::SrcRectConstraint constraint

Member Function Documentation

◆ dispatch()

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

Definition at line 859 of file dl_op_records.h.

859 {
860 if (op_needed(ctx)) {
861 ctx.receiver.drawImageRect(image, src, dst, sampling,
863 }
864 }
bool op_needed(const DispatchContext &ctx) const

◆ equals()

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

Definition at line 866 of file dl_op_records.h.

866 {
867 return (src == other->src && dst == other->dst &&
868 sampling == other->sampling &&
869 render_with_attributes == other->render_with_attributes &&
870 constraint == other->constraint && image->Equals(other->image))
873 }

Member Data Documentation

◆ constraint

const DlCanvas::SrcRectConstraint flutter::DrawImageRectOp::constraint

Definition at line 856 of file dl_op_records.h.

◆ dst

const SkRect flutter::DrawImageRectOp::dst

Definition at line 853 of file dl_op_records.h.

◆ image

const sk_sp<DlImage> flutter::DrawImageRectOp::image

Definition at line 857 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawImageRectOp::kType = DisplayListOpType::kDrawImageRect
staticconstexpr

Definition at line 837 of file dl_op_records.h.

◆ render_with_attributes

const bool flutter::DrawImageRectOp::render_with_attributes

Definition at line 855 of file dl_op_records.h.

◆ sampling

const DlImageSampling flutter::DrawImageRectOp::sampling

Definition at line 854 of file dl_op_records.h.

◆ src

const SkRect flutter::DrawImageRectOp::src

Definition at line 852 of file dl_op_records.h.


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