Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
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 (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
bool op_needed (const DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DLOp
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
DisplayListOpType type: 8
 
uint32_t size: 24
 

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

Constructor & Destructor Documentation

◆ DrawAtlasBaseOp()

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

Definition at line 944 of file dl_op_records.h.

950 : count(count),
951 mode_index(static_cast<uint16_t>(mode)),
955 atlas(atlas) {}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228
const sk_sp< DlImage > atlas
const uint16_t mode_index
const uint8_t render_with_attributes
const DlImageSampling sampling

Member Function Documentation

◆ equals()

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

Definition at line 964 of file dl_op_records.h.

966 {
967 bool ret = (count == other->count && mode_index == other->mode_index &&
968 has_colors == other->has_colors &&
969 render_with_attributes == other->render_with_attributes &&
970 sampling == other->sampling && atlas->Equals(other->atlas));
971 if (ret) {
972 size_t bytes = count * (sizeof(SkRSXform) + sizeof(SkRect));
973 if (has_colors) {
974 bytes += count * sizeof(DlColor);
975 }
976 ret = (memcmp(pod_this, pod_other, bytes) == 0);
977 }
978 return ret;
979 }
flutter::DlColor DlColor

Member Data Documentation

◆ atlas

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

Definition at line 962 of file dl_op_records.h.

◆ count

const int flutter::DrawAtlasBaseOp::count

Definition at line 957 of file dl_op_records.h.

◆ has_colors

const uint8_t flutter::DrawAtlasBaseOp::has_colors

Definition at line 959 of file dl_op_records.h.

◆ mode_index

const uint16_t flutter::DrawAtlasBaseOp::mode_index

Definition at line 958 of file dl_op_records.h.

◆ render_with_attributes

const uint8_t flutter::DrawAtlasBaseOp::render_with_attributes

Definition at line 960 of file dl_op_records.h.

◆ sampling

const DlImageSampling flutter::DrawAtlasBaseOp::sampling

Definition at line 961 of file dl_op_records.h.


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