Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.

141 : tracker_(cull_rect, matrix) {}

Member Function Documentation

◆ clipPath()

void flutter::PrerollDelegate::clipPath ( const SkPath path,
ClipOp  op,
bool  is_aa 
)
inlineoverride

Definition at line 193 of file layer_state_stack.cc.

193 {
194 tracker_.clipPath(path, op, is_aa);
195 }
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 187 of file layer_state_stack.cc.

187 {
188 tracker_.clipRect(rect, op, is_aa);
189 }
void clipRect(const DlRect &rect, ClipOp op, bool is_aa)

◆ clipRRect()

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

Definition at line 190 of file layer_state_stack.cc.

190 {
191 tracker_.clipRRect(rrect, op, is_aa);
192 }
void clipRRect(const SkRRect &rrect, ClipOp op, bool is_aa)

◆ content_culled()

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

Definition at line 151 of file layer_state_stack.cc.

151 {
152 return tracker_.content_culled(content_bounds);
153 }
bool content_culled(const SkRect &content_bounds) const

◆ decommission()

void flutter::PrerollDelegate::decommission ( )
inlineoverride

Definition at line 143 of file layer_state_stack.cc.

143{}

◆ device_cull_rect()

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

Definition at line 148 of file layer_state_stack.cc.

148 {
149 return tracker_.device_cull_rect();
150 }

◆ integralTransform()

void flutter::PrerollDelegate::integralTransform ( )
inlineoverride

Definition at line 171 of file layer_state_stack.cc.

171 {
172 if (tracker_.using_4x4_matrix()) {
173 SkM44 integral;
175 &integral)) {
176 tracker_.setTransform(integral);
177 }
178 } else {
179 SkMatrix integral;
181 &integral)) {
182 tracker_.setTransform(integral);
183 }
184 }
185 }
Definition SkM44.h:150
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 147 of file layer_state_stack.cc.

147{ return tracker_.local_cull_rect(); }

◆ matrix_3x3()

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

Definition at line 146 of file layer_state_stack.cc.

146{ return tracker_.matrix_3x3(); }

◆ matrix_4x4()

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

Definition at line 145 of file layer_state_stack.cc.

145{ return tracker_.matrix_4x4(); }

◆ restore()

void flutter::PrerollDelegate::restore ( )
inlineoverride

Definition at line 162 of file layer_state_stack.cc.

◆ save()

void flutter::PrerollDelegate::save ( )
inlineoverride

Definition at line 155 of file layer_state_stack.cc.

◆ saveLayer()

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

Definition at line 156 of file layer_state_stack.cc.

159 {
160 tracker_.save();
161 }

◆ transform() [1/2]

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

Definition at line 167 of file layer_state_stack.cc.

167{ tracker_.transform(m44); }

◆ transform() [2/2]

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

Definition at line 168 of file layer_state_stack.cc.

168 {
169 tracker_.transform(matrix);
170 }

◆ translate()

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

Definition at line 164 of file layer_state_stack.cc.

164 {
165 tracker_.translate(tx, ty);
166 }
void translate(SkScalar tx, SkScalar ty)

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