Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::DrawAtlasCulledOp Struct Referencefinal

#include <dl_op_records.h>

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

Public Member Functions

 DrawAtlasCulledOp (const sk_sp< DlImage > &atlas, int count, DlBlendMode mode, DlImageSampling sampling, bool has_colors, const SkRect &cull_rect, bool render_with_attributes)
 
void dispatch (DispatchContext &ctx) const
 
DisplayListCompare equals (const DrawAtlasCulledOp *other) const
 
- Public Member Functions inherited from flutter::DrawAtlasBaseOp
 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 SkRect cull_rect
 
- Public Attributes inherited from flutter::DrawAtlasBaseOp
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
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kDrawAtlasCulled
 
- 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 1025 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawAtlasCulledOp()

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

Definition at line 1028 of file dl_op_records.h.

1036 count,
1037 mode,
1038 sampling,
1039 has_colors,
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
DrawAtlasBaseOp(const sk_sp< DlImage > &atlas, int count, DlBlendMode mode, DlImageSampling sampling, bool has_colors, bool render_with_attributes)
const uint8_t render_with_attributes
const DlImageSampling sampling

Member Function Documentation

◆ dispatch()

void flutter::DrawAtlasCulledOp::dispatch ( DispatchContext ctx) const
inline

Definition at line 1045 of file dl_op_records.h.

1045 {
1046 if (op_needed(ctx)) {
1047 const SkRSXform* xform = reinterpret_cast<const SkRSXform*>(this + 1);
1048 const SkRect* tex = reinterpret_cast<const SkRect*>(xform + count);
1049 const DlColor* colors =
1050 has_colors ? reinterpret_cast<const DlColor*>(tex + count) : nullptr;
1051 const DlBlendMode mode = static_cast<DlBlendMode>(mode_index);
1052 ctx.receiver.drawAtlas(atlas, xform, tex, colors, count, mode, sampling,
1054 }
1055 }
PODArray< SkColor > colors
Definition: SkRecords.h:276
flutter::DlColor DlColor
const uint16_t mode_index
bool op_needed(const DispatchContext &ctx) const

◆ equals()

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

Definition at line 1057 of file dl_op_records.h.

1057 {
1058 const void* pod_this = reinterpret_cast<const void*>(this + 1);
1059 const void* pod_other = reinterpret_cast<const void*>(other + 1);
1060 return (cull_rect == other->cull_rect &&
1061 DrawAtlasBaseOp::equals(other, pod_this, pod_other))
1064 }
bool equals(const DrawAtlasBaseOp *other, const void *pod_this, const void *pod_other) const

Member Data Documentation

◆ cull_rect

const SkRect flutter::DrawAtlasCulledOp::cull_rect

Definition at line 1043 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawAtlasCulledOp::kType = DisplayListOpType::kDrawAtlasCulled
staticconstexpr

Definition at line 1026 of file dl_op_records.h.


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