Flutter Engine
The Flutter Engine
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 862 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 865 of file dl_op_records.h.

871 : src(src),
872 dst(dst),
876 image(image) {}
const bool render_with_attributes
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 885 of file dl_op_records.h.

885 {
886 if (op_needed(ctx)) {
887 ctx.receiver.drawImageRect(image, src, dst, sampling,
889 }
890 }
bool op_needed(const DispatchContext &ctx) const

◆ equals()

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

Definition at line 892 of file dl_op_records.h.

892 {
893 return (src == other->src && dst == other->dst &&
894 sampling == other->sampling &&
895 render_with_attributes == other->render_with_attributes &&
896 constraint == other->constraint && image->Equals(other->image))
899 }

Member Data Documentation

◆ constraint

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

Definition at line 882 of file dl_op_records.h.

◆ dst

const SkRect flutter::DrawImageRectOp::dst

Definition at line 879 of file dl_op_records.h.

◆ image

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

Definition at line 883 of file dl_op_records.h.

◆ kType

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

Definition at line 863 of file dl_op_records.h.

◆ render_with_attributes

const bool flutter::DrawImageRectOp::render_with_attributes

Definition at line 881 of file dl_op_records.h.

◆ sampling

const DlImageSampling flutter::DrawImageRectOp::sampling

Definition at line 880 of file dl_op_records.h.

◆ src

const SkRect flutter::DrawImageRectOp::src

Definition at line 878 of file dl_op_records.h.


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