Flutter Engine
 
Loading...
Searching...
No Matches
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 DlRect &src, const DlRect &dst, DlImageSampling sampling, bool render_with_attributes, DlSrcRectConstraint constraint)
 
void dispatch (DlOpReceiver &receiver) const
 
DisplayListCompare equals (const DrawImageRectOp *other) const
 
- Public Member Functions inherited from flutter::DrawOpBase
 DrawOpBase (DisplayListOpType type)
 
- Public Member Functions inherited from flutter::DLOp
 DLOp (DisplayListOpType type)
 
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const DlRect src
 
const DlRect dst
 
const DlImageSampling sampling
 
const bool render_with_attributes
 
const DlSrcRectConstraint constraint
 
const sk_sp< DlImageimage
 
- Public Attributes inherited from flutter::DLOp
const DisplayListOpType type
 

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 768 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawImageRectOp()

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

Definition at line 771 of file dl_op_records.h.

777 : DrawOpBase(kType),
778 src(src),
779 dst(dst),
783 image(image) {}
const sk_sp< DlImage > image
static constexpr auto kType
const DlSrcRectConstraint constraint
const DlImageSampling sampling
DrawOpBase(DisplayListOpType type)

Member Function Documentation

◆ dispatch()

void flutter::DrawImageRectOp::dispatch ( DlOpReceiver receiver) const
inline

Definition at line 792 of file dl_op_records.h.

792 {
793 receiver.drawImageRect(image, src, dst, sampling, render_with_attributes,
794 constraint);
795 }

References constraint, flutter::DlOpReceiver::drawImageRect(), dst, image, render_with_attributes, sampling, and src.

◆ equals()

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

Definition at line 797 of file dl_op_records.h.

797 {
798 return (src == other->src && dst == other->dst &&
799 sampling == other->sampling &&
800 render_with_attributes == other->render_with_attributes &&
801 constraint == other->constraint && image->Equals(other->image))
804 }

References constraint, dst, image, flutter::kEqual, flutter::kNotEqual, render_with_attributes, sampling, and src.

Member Data Documentation

◆ constraint

const DlSrcRectConstraint flutter::DrawImageRectOp::constraint

Definition at line 789 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ dst

const DlRect flutter::DrawImageRectOp::dst

Definition at line 786 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ image

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

Definition at line 790 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ kType

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

Definition at line 769 of file dl_op_records.h.

◆ render_with_attributes

const bool flutter::DrawImageRectOp::render_with_attributes

Definition at line 788 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ sampling

const DlImageSampling flutter::DrawImageRectOp::sampling

Definition at line 787 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ src

const DlRect flutter::DrawImageRectOp::src

Definition at line 785 of file dl_op_records.h.

Referenced by dispatch(), and equals().


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