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

Unified Diff: tools/viewer/sk_app/android/main_android.cpp

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
« no previous file with comments | « tools/viewer/sk_app/Application.h ('k') | tools/viewer/sk_app/android/surface_glue_android.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/android/main_android.cpp
diff --git a/tools/viewer/sk_app/android/main_android.cpp b/tools/viewer/sk_app/android/main_android.cpp
index 9334f0ccd3bc4fff068b2d40e0868d36bdacd7e6..ee2dab570df62a5af8d854baf40be4848433060b 100644
--- a/tools/viewer/sk_app/android/main_android.cpp
+++ b/tools/viewer/sk_app/android/main_android.cpp
@@ -13,8 +13,6 @@
#include "../Application.h"
#include "Timer.h"
-static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
-
using sk_app::Application;
/**
@@ -36,9 +34,6 @@ void android_main(struct android_app* state) {
const_cast<char**>(gCmdLine),
state));
- double currentTime = 0.0;
- double previousTime = 0.0;
-
// loop waiting for stuff to do.
while (1) {
// Read all pending events.
@@ -60,9 +55,7 @@ void android_main(struct android_app* state) {
return;
}
- previousTime = currentTime;
- currentTime = now_ms();
- vkApp->onIdle(currentTime - previousTime);
+ vkApp->onIdle();
}
}
}
« no previous file with comments | « tools/viewer/sk_app/Application.h ('k') | tools/viewer/sk_app/android/surface_glue_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698