commit | 3401d5eb22f87cc541f520a0b486dbc859ebbf72 | [log] [tgz] |
---|---|---|
author | Herb Derby <herb@google.com> | Thu Mar 18 15:12:45 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Mar 19 14:14:48 2021 +0000 |
tree | 36d9380c635c8bd83b451b260c266b0a1602768e | |
parent | 049f0dfabae4d48e9f88331f828e0cb9ffc4ebd6 [diff] |
improve SkParagraph's bench accuracy Call onDraw in onDelayedSetup to warm up the glyph cache otherwise nanobench will mis-caclulate the loop count. This change also reduces the variability of the benchmark. Change-Id: I5f3f2167cc78b996fcb589644b70622d18af240b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386816 Commit-Queue: Mike Reed <reed@google.com> Auto-Submit: Herb Derby <herb@google.com> Reviewed-by: Mike Reed <reed@google.com>