From 96126692822086542656e57762b690e9b1948fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Mon, 12 Sep 2016 14:42:21 -0700 Subject: [PATCH] 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 --- bin/cache/engine.version | 2 +- packages/flutter/lib/src/material/progress_indicator.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/cache/engine.version b/bin/cache/engine.version index 04c04081a3..e4128a5b90 100644 --- a/bin/cache/engine.version +++ b/bin/cache/engine.version @@ -1 +1 @@ -a55fa1efb90b83c56004f12ee67673f4836eb33d +67888c599379a79c0b068bdc34a221ec500b2838 diff --git a/packages/flutter/lib/src/material/progress_indicator.dart b/packages/flutter/lib/src/material/progress_indicator.dart index cea6528e0a..ac07fc0d93 100644 --- a/packages/flutter/lib/src/material/progress_indicator.dart +++ b/packages/flutter/lib/src/material/progress_indicator.dart @@ -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