PerformanceOverlayLayer class

A layer that indicates to the compositor that it should display certain performance statistics within it.

Performance overlay layers are always leaves in the layer tree.

Inheritance

Constructors

PerformanceOverlayLayer({@required Rect overlayRect, @required int optionsMask, @required int rasterizerThreshold, @required bool checkerboardRasterCacheImages, @required bool checkerboardOffscreenLayers })
Creates a layer that displays a performance overlay.

Properties

checkerboardOffscreenLayers → bool
Whether the compositor should checkerboard layers that are rendered to offscreen bitmaps. This can be useful for debugging rendering performance. [...]
final
checkerboardRasterCacheImages → bool
Whether the raster cache should checkerboard cached entries. [...]
final
optionsMask → int
The mask is created by shifting 1 by the index of the specific PerformanceOverlayOption to enable.
final
overlayRect Rect
The rectangle in this layer's coordinate system that the overlay should occupy. [...]
read / write
rasterizerThreshold → int
The rasterizer threshold is an integer specifying the number of frame intervals that the rasterizer must miss before it decides that the frame is suitable for capturing an SkPicture trace for further analysis.
final
attached → bool
Whether this node is in a tree whose root is attached to something. [...]
read-only, inherited
debugCreator ↔ dynamic
The object responsible for creating this layer. [...]
read / write, inherited
depth → int
The depth of this node in the tree. [...]
read-only, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
nextSibling Layer
This layer's next sibling in the parent layer's child list.
read-only, inherited
owner → Object
The owner for this node (null if unattached). [...]
read-only, inherited
parent ContainerLayer
This layer's parent in the layer tree. [...]
read-only, inherited
previousSibling Layer
This layer's previous sibling in the parent layer's child list.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addToScene(SceneBuilder builder, Offset layerOffset) → void
Override this method to upload this layer to the engine. [...]
find<S>(Offset regionOffset) → S
Returns the value of S that corresponds to the point described by regionOffset. [...]
adoptChild(AbstractNode child) → void
Mark the given node as being a child of this node. [...]
@mustCallSuper, @protected, inherited
attach(Object owner) → void
Mark this node as attached to the given owner. [...]
@mustCallSuper, inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
inherited
detach() → void
Mark this node as detached. [...]
@mustCallSuper, inherited
dropChild(AbstractNode child) → void
Disconnect the given node from this node. [...]
@mustCallSuper, @protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
redepthChild(AbstractNode child) → void
Adjust the depth of the given child to be greater than this node's own depth. [...]
@protected, inherited
redepthChildren() → void
Adjust the depth of this node's children, if any. [...]
inherited
remove() → void
Removes this layer from its parent layer's child list. [...]
@mustCallSuper, inherited
replaceWith(Layer newLayer) → void
Replaces this layer with the given layer in the parent layer's child list.
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() → String
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited