Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2601)

Unified Diff: tools/viewer/Viewer.h

Issue 2129613002: More accurate render time and continuous fresh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove ms argument of onIdle function Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/viewer/Viewer.h
diff --git a/tools/viewer/Viewer.h b/tools/viewer/Viewer.h
index e140e1b87a395f3894aa482827cf9c3865819972..1ed135d819ac85202c9cc798b6da89af8e0e124b 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;
« no previous file with comments | « platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/StateAdapter.java ('k') | tools/viewer/Viewer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698