aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skdiff
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-04-27 09:50:34 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-27 15:30:27 +0000
commit9fa99614ec4e695f6e7e9fe19508758757543b8c (patch)
tree61df5544302f6f943903dd4b093e7de4bac8c546 /tools/skdiff
parentb4bbc64adee74f99ddfc30ad4e5043f98380bdbb (diff)
In ok thread mode, use wait_util instead of wait_for.
wait_for(delta) is wait_until(steady_clock::now() + delta) under the hood, so using wait_for() like this implies an extra call to now() that we can avoid by using wait_until(). We can hoist that call out and just do it once... the past stays the past. This is not super important. Just noticed while profiling. It's nice to keep the overhead of the ok tool down so the real work can show. :) Change-Id: I89d25a800b63ebcfc229b5b3aa3f2dd621f4e7b4 Reviewed-on: https://skia-review.googlesource.com/14480 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'tools/skdiff')
0 files changed, 0 insertions, 0 deletions