Flutter Engine
 
Loading...
Searching...
No Matches
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 DlRect &cull_rect, bool render_with_attributes)
 
void dispatch (DlOpReceiver &receiver) const
 
DisplayListCompare equals (const DrawAtlasCulledOp *other) const
 
- Public Member Functions inherited from flutter::DrawAtlasBaseOp
 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 DlRect 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
const DisplayListOpType type
 

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 935 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 DlRect cull_rect,
bool  render_with_attributes 
)
inline

Definition at line 938 of file dl_op_records.h.

946 atlas,
947 count,
948 mode,
949 sampling,
DrawAtlasBaseOp(DisplayListOpType type, const sk_sp< DlImage > &atlas, int count, DlBlendMode mode, DlImageSampling sampling, bool has_colors, bool render_with_attributes)
const sk_sp< DlImage > atlas
const uint8_t render_with_attributes
const DlImageSampling sampling
static constexpr auto kType

References flutter::mode.

Member Function Documentation

◆ dispatch()

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

Definition at line 956 of file dl_op_records.h.

956 {
957 const DlRSTransform* xform =
958 reinterpret_cast<const DlRSTransform*>(this + 1);
959 const DlRect* tex = reinterpret_cast<const DlRect*>(xform + count);
960 const DlColor* colors =
961 has_colors ? reinterpret_cast<const DlColor*>(tex + count) : nullptr;
962 const DlBlendMode mode = static_cast<DlBlendMode>(mode_index);
963 receiver.drawAtlas(atlas, xform, tex, colors, count, mode, sampling,
965 }
impeller::RSTransform DlRSTransform
impeller::Rect DlRect
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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
impeller::BlendMode DlBlendMode
flutter::DlColor DlColor

References flutter::DrawAtlasBaseOp::atlas, flutter::DrawAtlasBaseOp::count, cull_rect, flutter::DlOpReceiver::drawAtlas(), flutter::DrawAtlasBaseOp::has_colors, flutter::mode, flutter::DrawAtlasBaseOp::mode_index, flutter::DrawAtlasBaseOp::render_with_attributes, and flutter::DrawAtlasBaseOp::sampling.

◆ equals()

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

Definition at line 967 of file dl_op_records.h.

967 {
968 const void* pod_this = reinterpret_cast<const void*>(this + 1);
969 const void* pod_other = reinterpret_cast<const void*>(other + 1);
970 return (cull_rect == other->cull_rect &&
971 DrawAtlasBaseOp::equals(other, pod_this, pod_other))
974 }
bool equals(const DrawAtlasBaseOp *other, const void *pod_this, const void *pod_other) const

References cull_rect, flutter::DrawAtlasBaseOp::equals(), flutter::kEqual, and flutter::kNotEqual.

Member Data Documentation

◆ cull_rect

const DlRect flutter::DrawAtlasCulledOp::cull_rect

Definition at line 954 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ kType

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

Definition at line 936 of file dl_op_records.h.


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