SceneStrokePathCache class

LRU cache for built Path instances for StrokeNode geometry.

Why: avoid rebuilding long stroke polylines every frame. Invariant: cached path is valid only while the stroke geometry is unchanged. The cache detects unexpected mutation heuristically via (points length, first point, last point). This matches the engine's normal flow where strokes are immutable after gesture commit. Validate: test/render/scene_stroke_path_cache_test.dart.

Constructors

SceneStrokePathCache({int maxEntries = 512})

Properties

debugBuildCount int
no setter
debugEvictCount int
no setter
debugHitCount int
no setter
debugSize int
no setter
hashCode int
The hash code for this object.
no setterinherited
maxEntries int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
getOrBuild(StrokeNode node) Path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited