Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::PrerollDelegate Class Reference

Inherits flutter::LayerStateStack::Delegate.

Public Member Functions

 PrerollDelegate (const SkRect &cull_rect, const SkMatrix &matrix)
 
void decommission () override
 
SkM44 matrix_4x4 () const override
 
SkMatrix matrix_3x3 () const override
 
SkRect local_cull_rect () const override
 
SkRect device_cull_rect () const override
 
bool content_culled (const SkRect &content_bounds) const override
 
void save () override
 
void saveLayer (const SkRect &bounds, LayerStateStack::RenderingAttributes &attributes, DlBlendMode blend, const DlImageFilter *backdrop) override
 
void restore () override
 
void translate (SkScalar tx, SkScalar ty) override
 
void transform (const SkM44 &m44) override
 
void transform (const SkMatrix &matrix) override
 
void integralTransform () override
 
void clipRect (const SkRect &rect, ClipOp op, bool is_aa) override
 
void clipRRect (const SkRRect &rrect, ClipOp op, bool is_aa) override
 
void clipPath (const SkPath &path, ClipOp op, bool is_aa) override
 

Detailed Description

Definition at line 138 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ PrerollDelegate()

flutter::PrerollDelegate::PrerollDelegate ( const SkRect cull_rect,
const SkMatrix matrix 
)
inline

Definition at line 140 of file layer_state_stack.cc.

140 {
141 save_stack_.emplace_back(cull_rect, matrix);
142 }
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

Member Function Documentation

◆ clipPath()

void flutter::PrerollDelegate::clipPath ( const SkPath path,
ClipOp  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 SkPath &path, ClipOp 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: switches.h:57

◆ clipRect()

void flutter::PrerollDelegate::clipRect ( const SkRect rect,
ClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 186 of file layer_state_stack.cc.

186 {
187 state().clipRect(rect, op, is_aa);
188 }
void clipRect(const DlRect &rect, ClipOp op, bool is_aa)
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

◆ clipRRect()

void flutter::PrerollDelegate::clipRRect ( const SkRRect rrect,
ClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 189 of file layer_state_stack.cc.

189 {
190 state().clipRRect(rrect, op, is_aa);
191 }
void clipRRect(const SkRRect &rrect, ClipOp op, bool is_aa)
SkRRect rrect
Definition: SkRecords.h:232

◆ content_culled()

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

Definition at line 152 of file layer_state_stack.cc.

152 {
153 return state().content_culled(content_bounds);
154 }
bool content_culled(const DlRect &content_bounds) const

◆ decommission()

void flutter::PrerollDelegate::decommission ( )
inlineoverride

Definition at line 144 of file layer_state_stack.cc.

144{}

◆ device_cull_rect()

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

Definition at line 149 of file layer_state_stack.cc.

149 {
150 return state().device_cull_rect();
151 }

◆ integralTransform()

void flutter::PrerollDelegate::integralTransform ( )
inlineoverride

Definition at line 170 of file layer_state_stack.cc.

170 {
171 if (state().using_4x4_matrix()) {
172 SkM44 integral;
174 &integral)) {
175 state().setTransform(integral);
176 }
177 } else {
178 SkMatrix integral;
180 &integral)) {
181 state().setTransform(integral);
182 }
183 }
184 }
Definition: SkM44.h:150
void setTransform(const DlMatrix &matrix)
SkMatrix matrix_3x3() const override
SkM44 matrix_4x4() const override
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|.

◆ local_cull_rect()

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

Definition at line 148 of file layer_state_stack.cc.

148{ return state().local_cull_rect(); }

◆ matrix_3x3()

SkMatrix flutter::PrerollDelegate::matrix_3x3 ( ) const
inlineoverride

Definition at line 147 of file layer_state_stack.cc.

147{ return state().matrix_3x3(); }

◆ matrix_4x4()

SkM44 flutter::PrerollDelegate::matrix_4x4 ( ) const
inlineoverride

Definition at line 146 of file layer_state_stack.cc.

146{ return state().matrix_4x4(); }

◆ restore()

void flutter::PrerollDelegate::restore ( )
inlineoverride

Definition at line 163 of file layer_state_stack.cc.

163{ save_stack_.pop_back(); }

◆ save()

void flutter::PrerollDelegate::save ( )
inlineoverride

Definition at line 156 of file layer_state_stack.cc.

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

◆ saveLayer()

void flutter::PrerollDelegate::saveLayer ( const SkRect bounds,
LayerStateStack::RenderingAttributes &  attributes,
DlBlendMode  blend,
const DlImageFilter backdrop 
)
inlineoverride

Definition at line 157 of file layer_state_stack.cc.

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

◆ transform() [1/2]

void flutter::PrerollDelegate::transform ( const SkM44 m44)
inlineoverride

Definition at line 168 of file layer_state_stack.cc.

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

◆ transform() [2/2]

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

Definition at line 169 of file layer_state_stack.cc.

169{ state().transform(matrix); }

◆ translate()

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

Definition at line 165 of file layer_state_stack.cc.

165 {
166 state().translate(tx, ty);
167 }
void translate(SkScalar tx, SkScalar ty)

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