| Index: tools/viewer/sk_app/win/main_win.cpp
|
| diff --git a/tools/viewer/sk_app/win/main_win.cpp b/tools/viewer/sk_app/win/main_win.cpp
|
| index ba1629c8376939e869b0e4acbf366b9b1d3ec3eb..4800258973f576a8df7bd636cc6ac30d83ac6c43 100644
|
| --- a/tools/viewer/sk_app/win/main_win.cpp
|
| +++ b/tools/viewer/sk_app/win/main_win.cpp
|
| @@ -27,8 +27,6 @@ static char* tchar_to_utf8(const TCHAR* str) {
|
| #endif
|
| }
|
|
|
| -static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
|
| -
|
| // This file can work with GUI or CONSOLE subsystem types since we define _tWinMain and main().
|
|
|
| static int main_common(HINSTANCE hInstance, int show, int argc, char**argv);
|
| @@ -66,18 +64,13 @@ static int main_common(HINSTANCE hInstance, int show, int argc, char**argv) {
|
|
|
| MSG msg = { 0 };
|
|
|
| - double currentTime = 0.0;
|
| - double previousTime = 0.0;
|
| -
|
| // Main message loop
|
| while (WM_QUIT != msg.message) {
|
| if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE)) {
|
| TranslateMessage(&msg);
|
| DispatchMessage(&msg);
|
| } else {
|
| - previousTime = currentTime;
|
| - currentTime = now_ms();
|
| - app->onIdle(currentTime - previousTime);
|
| + app->onIdle();
|
| }
|
| }
|
|
|
|
|