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

Unified Diff: samplecode/SampleApp.h

Issue 1288473002: Add high resolution WallTimer to SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.h
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index 97854fcb972170caaf43208a75701e8053f8e3ac..c0f845d32c339e6050a1ce5b87a7a03910315f99 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -16,6 +16,7 @@
#include "SkTDArray.h"
#include "SkTouchGesture.h"
#include "SkWindow.h"
+#include "timer/Timer.h"
class GrContext;
class GrRenderTarget;
@@ -183,8 +184,8 @@ private:
bool fPerspAnim;
bool fRequestGrabImage;
bool fMeasureFPS;
- SkMSec fMeasureFPS_Time;
- SkMSec fMeasureFPS_StartTime;
+ WallTimer fTimer;
+ double fMeasureFPS_Time;
bool fMagnify;
int fTilingMode;
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698