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(); |
} |