mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-02 12:17:15 +01:00
Increase Windows cefclient timer speed so that CefDoMessageLoopWork() is called more frequently in single-threaded message loop mode (issue #189).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@193 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
6ca5cff06c
commit
7684d7442e
@ -368,8 +368,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
static_cast<CefRefPtr<CefHandler> >(g_handler),
|
||||
"http://www.google.com");
|
||||
|
||||
// Start the timer that will be used to update child window state
|
||||
SetTimer(hWnd, 1, 250, NULL);
|
||||
// Start the timer that will be used to update child window state. The
|
||||
// timer is also necessary in single-threaded message loop mode so that
|
||||
// CefDoMessageLoopWork() is called frequently enough for things like
|
||||
// smooth JavaScript animation.
|
||||
SetTimer(hWnd, 1, USER_TIMER_MINIMUM, NULL);
|
||||
}
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user