Flutter Engine
 
Loading...
Searching...
No Matches
flutter::PrerollDelegate Class Reference

Inherits flutter::LayerStateStack::Delegate.

Public Member Functions

 PrerollDelegate (const DlRect &cull_rect, const DlMatrix &matrix)
 
void decommission () override
 
DlMatrix matrix () const override
 
DlRect local_cull_rect () const override
 
DlRect device_cull_rect () const override
 
bool content_culled (const DlRect &content_bounds) const override
 
void save () override
 
void saveLayer (const DlRect &bounds, LayerStateStack::RenderingAttributes &attributes, DlBlendMode blend, const DlImageFilter *backdrop, std::optional< int64_t > backdrop_id) override
 
void restore () override
 
void translate (DlScalar tx, DlScalar ty) override
 
void transform (const DlMatrix &matrix) override
 
void integralTransform () override
 
void clipRect (const DlRect &rect, DlClipOp op, bool is_aa) override
 
void clipRRect (const DlRoundRect &rrect, DlClipOp op, bool is_aa) override
 
void clipRSuperellipse (const DlRoundSuperellipse &rse, DlClipOp op, bool is_aa) override
 
void clipPath (const DlPath &path, DlClipOp op, bool is_aa) override
 

Detailed Description

Definition at line 141 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ PrerollDelegate()

flutter::PrerollDelegate::PrerollDelegate ( const DlRect cull_rect,
const DlMatrix matrix 
)
inline

Definition at line 143 of file layer_state_stack.cc.

143 {
144 save_stack_.emplace_back(cull_rect, matrix);
145 }
DlMatrix matrix() const override

References matrix().

Member Function Documentation

◆ clipPath()

void flutter::PrerollDelegate::clipPath ( const DlPath path,
DlClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 192 of file layer_state_stack.cc.

192 {
193 state().clipPath(path, op, is_aa);
194 }
void clipPath(const DlPath &path, DlClipOp op, bool is_aa)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switch_defs.h:52

References flutter::DisplayListMatrixClipState::clipPath(), and flutter::path.

◆ clipRect()

void flutter::PrerollDelegate::clipRect ( const DlRect rect,
DlClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 181 of file layer_state_stack.cc.

181 {
182 state().clipRect(rect, op, is_aa);
183 }
void clipRect(const DlRect &rect, DlClipOp op, bool is_aa)

References flutter::DisplayListMatrixClipState::clipRect().

◆ clipRRect()

void flutter::PrerollDelegate::clipRRect ( const DlRoundRect rrect,
DlClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 184 of file layer_state_stack.cc.

184 {
185 state().clipRRect(rrect, op, is_aa);
186 }
void clipRRect(const DlRoundRect &rrect, DlClipOp op, bool is_aa)

References flutter::DisplayListMatrixClipState::clipRRect().

◆ clipRSuperellipse()

void flutter::PrerollDelegate::clipRSuperellipse ( const DlRoundSuperellipse rse,
DlClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 187 of file layer_state_stack.cc.

189 {
190 state().clipRSuperellipse(rse, op, is_aa);
191 }
void clipRSuperellipse(const DlRoundSuperellipse &rse, DlClipOp op, bool is_aa)

References flutter::DisplayListMatrixClipState::clipRSuperellipse().

◆ content_culled()

bool flutter::PrerollDelegate::content_culled ( const DlRect content_bounds) const
inlineoverride

Definition at line 156 of file layer_state_stack.cc.

156 {
157 return state().content_culled(content_bounds);
158 }
bool content_culled(const DlRect &content_bounds) const

References flutter::DisplayListMatrixClipState::content_culled().

◆ decommission()

void flutter::PrerollDelegate::decommission ( )
inlineoverride

Definition at line 147 of file layer_state_stack.cc.

147{}

◆ device_cull_rect()

DlRect flutter::PrerollDelegate::device_cull_rect ( ) const
inlineoverride

Definition at line 153 of file layer_state_stack.cc.

153 {
154 return state().GetDeviceCullCoverage();
155 }

References flutter::DisplayListMatrixClipState::GetDeviceCullCoverage().

◆ integralTransform()

void flutter::PrerollDelegate::integralTransform ( )
inlineoverride

Definition at line 174 of file layer_state_stack.cc.

174 {
175 DlMatrix integral;
176 if (RasterCacheUtil::ComputeIntegralTransCTM(state().matrix(), &integral)) {
177 state().setTransform(integral);
178 }
179 }
void setTransform(const DlMatrix &matrix)
impeller::Matrix DlMatrix
static bool ComputeIntegralTransCTM(const SkMatrix &in, SkMatrix *out)
Snap the translation components of the |in| matrix to integers and store the snapped matrix in |out|.

References flutter::RasterCacheUtil::ComputeIntegralTransCTM(), matrix(), and flutter::DisplayListMatrixClipState::setTransform().

◆ local_cull_rect()

DlRect flutter::PrerollDelegate::local_cull_rect ( ) const
inlineoverride

Definition at line 150 of file layer_state_stack.cc.

150 {
151 return state().GetLocalCullCoverage();
152 }

References flutter::DisplayListMatrixClipState::GetLocalCullCoverage().

◆ matrix()

DlMatrix flutter::PrerollDelegate::matrix ( ) const
inlineoverride

Definition at line 149 of file layer_state_stack.cc.

149{ return state().matrix(); }

References flutter::DisplayListMatrixClipState::matrix().

Referenced by integralTransform(), PrerollDelegate(), and transform().

◆ restore()

void flutter::PrerollDelegate::restore ( )
inlineoverride

Definition at line 168 of file layer_state_stack.cc.

168{ save_stack_.pop_back(); }

◆ save()

void flutter::PrerollDelegate::save ( )
inlineoverride

Definition at line 160 of file layer_state_stack.cc.

160{ save_stack_.emplace_back(state()); }

◆ saveLayer()

void flutter::PrerollDelegate::saveLayer ( const DlRect bounds,
LayerStateStack::RenderingAttributes &  attributes,
DlBlendMode  blend,
const DlImageFilter backdrop,
std::optional< int64_t >  backdrop_id 
)
inlineoverride

Definition at line 161 of file layer_state_stack.cc.

165 {
166 save_stack_.emplace_back(state());
167 }

◆ transform()

void flutter::PrerollDelegate::transform ( const DlMatrix matrix)
inlineoverride

Definition at line 173 of file layer_state_stack.cc.

173{ state().transform(matrix); }
void transform(const DlMatrix &matrix)

References matrix(), and flutter::DisplayListMatrixClipState::transform().

◆ translate()

void flutter::PrerollDelegate::translate ( DlScalar  tx,
DlScalar  ty 
)
inlineoverride

Definition at line 170 of file layer_state_stack.cc.

170 {
171 state().translate(tx, ty);
172 }
void translate(DlScalar tx, DlScalar ty)

References flutter::DisplayListMatrixClipState::translate().


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