diff options
author | liyuqian <liyuqian@google.com> | 2016-07-06 14:11:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-06 14:11:32 -0700 |
commit | 2edb0f4a02fd1dbb8d6cb628b84048bcc875f72f (patch) | |
tree | a5e2e0c234f592a617eda847cf1cf47f4a2c8661 /tools/viewer/Viewer.h | |
parent | 5b794fad18344e8dbb840be49d1bc66ebe754b31 (diff) |
More accurate render time and continuous fresh
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2129613002
Review-Url: https://codereview.chromium.org/2129613002
Diffstat (limited to 'tools/viewer/Viewer.h')
-rw-r--r-- | tools/viewer/Viewer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/viewer/Viewer.h b/tools/viewer/Viewer.h index e140e1b87a..1ed135d819 100644 --- a/tools/viewer/Viewer.h +++ b/tools/viewer/Viewer.h @@ -24,7 +24,7 @@ public: ~Viewer() override; void onPaint(SkCanvas* canvas); - void onIdle(double ms) override; + void onIdle() override; bool onTouch(intptr_t owner, sk_app::Window::InputState state, float x, float y); void onUIStateChanged(const SkString& stateName, const SkString& stateValue); @@ -52,6 +52,7 @@ private: int fCurrentSlide; bool fDisplayStats; + bool fRefresh; // whether to continuously refresh for measuring render time // whether to split the screen and draw two copies of the slide, one with sRGB and one without bool fSplitScreen; |