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

Unified Diff: tools/viewer/sk_app/unix/main_unix.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/android/surface_glue_android.cpp ('k') | tools/viewer/sk_app/win/main_win.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/unix/main_unix.cpp
diff --git a/tools/viewer/sk_app/unix/main_unix.cpp b/tools/viewer/sk_app/unix/main_unix.cpp
index d5953791746a39a5b9f0d51b1c431313895a1463..5e6b7fe3ee475b5e5201ace000e725b525c2f64b 100644
--- a/tools/viewer/sk_app/unix/main_unix.cpp
+++ b/tools/viewer/sk_app/unix/main_unix.cpp
@@ -13,8 +13,6 @@
using sk_app::Application;
-static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
-
void finishWindow(sk_app::Window_unix* win) {
win->finishResize();
win->finishPaint();
@@ -26,9 +24,6 @@ int main(int argc, char**argv) {
Application* app = Application::Create(argc, argv, (void*)display);
- double currentTime = 0.0;
- double previousTime = 0.0;
-
// Get the file descriptor for the X display
int x11_fd = ConnectionNumber(display);
fd_set in_fds;
@@ -75,9 +70,7 @@ int main(int argc, char**argv) {
pendingWindows.foreach(finishWindow);
if (pendingWindows.count() > 0) {
- previousTime = currentTime;
- currentTime = now_ms();
- app->onIdle(currentTime - previousTime);
+ app->onIdle();
}
pendingWindows.reset();
}
« no previous file with comments | « tools/viewer/sk_app/android/surface_glue_android.cpp ('k') | tools/viewer/sk_app/win/main_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698