Add cumulative fps to SampleApp
authorYuqian Li <liyuqian@google.com>
Wed, 24 May 2017 13:58:07 +0000 (09:58 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 24 May 2017 15:38:17 +0000 (15:38 +0000)
commit5458cf8ec62c548480d5bb142afa71e4269ddac9
tree1e27246cd9035f608e17194b5d99d92de5da40a5
parent3b840e930493d260bf4945af03920c01400ee6cc
Add cumulative fps to SampleApp

In some samples (whose frame time is really really small),
the fps number jumps so fast that I can hardly see even
the first digit of the number. This problem will become
more severe for threaded backend which substantially lowers
the frame time. Taking an average over  a long time would
give me a much more stable fps number.

Bug: skia:
Change-Id: Ie6052b4735d9410d5e644331bf025b5bf9f40323
Reviewed-on: https://skia-review.googlesource.com/17823
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
samplecode/SampleApp.cpp
samplecode/SampleApp.h