Commit 95eb6685 authored by Adam Barth's avatar Adam Barth

Reduce paint time for Stocks drawer animation by 88%

Now we use a forced layer around the reprojected content of the drawer, which
means we don't have to re-record it during the slide animation. This saves 2ms
per frame.

The total main-thread time for the drawer animation is now 2.0ms.
parent ec5b1c1a
......@@ -202,7 +202,9 @@ class _DrawerControllerState extends State<_DrawerController> {
widthFactor: _performance.progress,
child: new SizeObserver(
onSizeChanged: _handleSizeChanged,
child: config.child
child: new ForcedLayer(
child: config.child
)
)
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment