aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/Viewer.h
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-07-06 14:11:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-06 14:11:32 -0700
commit2edb0f4a02fd1dbb8d6cb628b84048bcc875f72f (patch)
treea5e2e0c234f592a617eda847cf1cf47f4a2c8661 /tools/viewer/Viewer.h
parent5b794fad18344e8dbb840be49d1bc66ebe754b31 (diff)
More accurate render time and continuous fresh
Diffstat (limited to 'tools/viewer/Viewer.h')
-rw-r--r--tools/viewer/Viewer.h3
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;