-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Description
The framework uses RepaintBoundarys to push OffsetLayers to signify an area that should paint independently. This gets turned into a TransformLayer on the engine side, with an SkMatrix that is translate-only.
This may result in multiple pictures that are individually raster cached, but often times a repaint boundary indicates an entire area of multiple pictures that would benefit from raster caching. This is particularly true in scrolling use cases, where repaint boundaries are used to animate the offset of a layer.
It should be possible for flutter::TransformLayers to check if they are a translation only matrix and raster cache using the same heuristics as other layers today. The theory is that this will help with scrolling scenarios. We'll want to monitor impact on memory usage.
/cc @goderbauer @flar