Commit 96126692 authored by Dragoș Tiselice's avatar Dragoș Tiselice Committed by GitHub

Changed progress indicator to use drawArc. (#5828)

Using paths' arcTo was causing performance issues in the Gallery.
This commit uses Skia's optimized drawArc in order to improve
performance, and it rolls the engine to the newest assing build.
Fixes #3599.

Tracking Skia issue:
  https://bugs.chromium.org/p/skia/issues/detail?id=5227
parent 0774a674
a55fa1efb90b83c56004f12ee67673f4836eb33d
67888c599379a79c0b068bdc34a221ec500b2838
......@@ -243,9 +243,7 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
if (value == null) // Indeterminate
paint.strokeCap = StrokeCap.square;
Path path = new Path()
..arcTo(Point.origin & size, arcStart, arcSweep, false);
canvas.drawPath(path, paint);
canvas.drawArc(Point.origin & size, arcStart, arcSweep, false, paint);
}
@override
......
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