Flutter Engine
 
Loading...
Searching...
No Matches
flutter::DrawAtlasBaseOp Struct Reference

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawAtlasBaseOp:
flutter::DrawOpBase flutter::DLOp flutter::DrawAtlasCulledOp flutter::DrawAtlasOp

Public Member Functions

 DrawAtlasBaseOp (DisplayListOpType type, const sk_sp< DlImage > &atlas, int count, DlBlendMode mode, DlImageSampling sampling, bool has_colors, bool render_with_attributes)
 
bool equals (const DrawAtlasBaseOp *other, const void *pod_this, const void *pod_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 int count
 
const uint16_t mode_index
 
const uint8_t has_colors
 
const uint8_t render_with_attributes
 
const DlImageSampling sampling
 
const sk_sp< DlImageatlas
 
- Public Attributes inherited from flutter::DLOp
const DisplayListOpType type
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ DrawAtlasBaseOp()

flutter::DrawAtlasBaseOp::DrawAtlasBaseOp ( DisplayListOpType  type,
const sk_sp< DlImage > &  atlas,
int  count,
DlBlendMode  mode,
DlImageSampling  sampling,
bool  has_colors,
bool  render_with_attributes 
)
inline

Definition at line 852 of file dl_op_records.h.

859 : DrawOpBase(type),
860 count(count),
861 mode_index(static_cast<uint16_t>(mode)),
865 atlas(atlas) {}
const DisplayListOpType type
const sk_sp< DlImage > atlas
const uint8_t render_with_attributes
const DlImageSampling sampling
DrawOpBase(DisplayListOpType type)

References flutter::mode.

Member Function Documentation

◆ equals()

bool flutter::DrawAtlasBaseOp::equals ( const DrawAtlasBaseOp other,
const void *  pod_this,
const void *  pod_other 
) const
inline

Definition at line 874 of file dl_op_records.h.

876 {
877 bool ret = (count == other->count && mode_index == other->mode_index &&
878 has_colors == other->has_colors &&
879 render_with_attributes == other->render_with_attributes &&
880 sampling == other->sampling && atlas->Equals(other->atlas));
881 if (ret) {
882 size_t bytes = count * (sizeof(DlRSTransform) + sizeof(DlRect));
883 if (has_colors) {
884 bytes += count * sizeof(DlColor);
885 }
886 ret = (memcmp(pod_this, pod_other, bytes) == 0);
887 }
888 return ret;
889 }
impeller::RSTransform DlRSTransform
impeller::Rect DlRect
flutter::DlColor DlColor

References atlas, count, has_colors, mode_index, render_with_attributes, and sampling.

Referenced by flutter::DrawAtlasCulledOp::equals(), and flutter::DrawAtlasOp::equals().

Member Data Documentation

◆ atlas

const sk_sp<DlImage> flutter::DrawAtlasBaseOp::atlas

◆ count

const int flutter::DrawAtlasBaseOp::count

◆ has_colors

const uint8_t flutter::DrawAtlasBaseOp::has_colors

◆ mode_index

const uint16_t flutter::DrawAtlasBaseOp::mode_index

◆ render_with_attributes

const uint8_t flutter::DrawAtlasBaseOp::render_with_attributes

◆ sampling

const DlImageSampling flutter::DrawAtlasBaseOp::sampling

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