cefclient: Fix frame rate calculation (issue #987).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1257 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
943bfb9103
commit
3f17635d3e
|
@ -162,7 +162,7 @@ void OSRWindow::Invalidate() {
|
|||
render_task_pending_ = true;
|
||||
|
||||
// Render at 30fps.
|
||||
static const int kRenderDelay = 1 / 30;
|
||||
static const int kRenderDelay = 1000 / 30;
|
||||
CefPostDelayedTask(TID_UI, NewCefRunnableMethod(this, &OSRWindow::Render),
|
||||
kRenderDelay);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue