From b383bdfd1f06c908b11af43a90e990ac806383cf Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Fri, 3 Jan 2020 18:53:32 +0000 Subject: [PATCH] Initial (#47831) --- packages/flutter/lib/src/painting/shader_warm_up.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/painting/shader_warm_up.dart b/packages/flutter/lib/src/painting/shader_warm_up.dart index a2cbcae94a..608534f1ce 100644 --- a/packages/flutter/lib/src/painting/shader_warm_up.dart +++ b/packages/flutter/lib/src/painting/shader_warm_up.dart @@ -32,8 +32,9 @@ import 'package:flutter/foundation.dart'; /// `CircularRRectOp`) would suggest Xyz draw operations are causing the /// shaders to be compiled. A useful shader warm-up draw operation would /// eliminate such long compilation calls in the animation. To double-check -/// the warm-up, trace with `flutter run --profile --trace-skia --start- -/// paused`. The `GrGLProgramBuilder` with the associated `XyzOp` should +/// the warm-up, trace with +/// `flutter run --profile --trace-skia --start-paused`. +/// The `GrGLProgramBuilder` with the associated `XyzOp` should /// appear during startup rather than in the middle of a later animation. /// @@ -67,8 +68,9 @@ abstract class ShaderWarmUp { /// compilation cache. /// /// To decide which draw operations to be added to your custom warm up - /// process, try capture an skp using `flutter screenshot --observatory- - /// port= --type=skia` and analyze it with https://debugger.skia.org. + /// process, try capture an skp using + /// `flutter screenshot --observatory-uri= --type=skia` + /// and analyze it with https://debugger.skia.org. /// Alternatively, one may run the app with `flutter run --trace-skia` and /// then examine the GPU thread in the observatory timeline to see which /// Skia draw operations are commonly used, and which shader compilations