Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 917 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 918 of file dl_op_records.h.

924 : count(count),
925 mode_index(static_cast<uint16_t>(mode)),
929 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 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 938 of file dl_op_records.h.

940 {
941 bool ret = (count == other->count && mode_index == other->mode_index &&
942 has_colors == other->has_colors &&
943 render_with_attributes == other->render_with_attributes &&
944 sampling == other->sampling && atlas->Equals(other->atlas));
945 if (ret) {
946 size_t bytes = count * (sizeof(SkRSXform) + sizeof(SkRect));
947 if (has_colors) {
948 bytes += count * sizeof(DlColor);
949 }
950 ret = (memcmp(pod_this, pod_other, bytes) == 0);
951 }
952 return ret;
953 }

Member Data Documentation

◆ atlas

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

Definition at line 936 of file dl_op_records.h.

◆ count

const int flutter::DrawAtlasBaseOp::count

Definition at line 931 of file dl_op_records.h.

◆ has_colors

const uint8_t flutter::DrawAtlasBaseOp::has_colors

Definition at line 933 of file dl_op_records.h.

◆ mode_index

const uint16_t flutter::DrawAtlasBaseOp::mode_index

Definition at line 932 of file dl_op_records.h.

◆ render_with_attributes

const uint8_t flutter::DrawAtlasBaseOp::render_with_attributes

Definition at line 934 of file dl_op_records.h.

◆ sampling

const DlImageSampling flutter::DrawAtlasBaseOp::sampling

Definition at line 935 of file dl_op_records.h.


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