diff options
| author | Mike Reed <reed@google.com> | 2009-06-25 15:50:19 -0400 |
|---|---|---|
| committer | Mike Reed <reed@google.com> | 2009-06-25 15:50:19 -0400 |
| commit | 54d2ace6f6547688c8abf94993097955c550715b (patch) | |
| tree | b8836519f2dbf6682b8a5ed6862c747a18a6fc0d /WebKit | |
| parent | 8e9f67b9834f365c57d100235015643b9dceafa1 (diff) | |
| download | external_webkit-54d2ace6f6547688c8abf94993097955c550715b.zip external_webkit-54d2ace6f6547688c8abf94993097955c550715b.tar.gz external_webkit-54d2ace6f6547688c8abf94993097955c550715b.tar.bz2 | |
throttle plugin draws to 60fps, so we don't swamp the CPU to no visual avail.
Diffstat (limited to 'WebKit')
| -rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 2e545bf..f491ccb 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -1108,7 +1108,7 @@ void WebViewCore::removePlugin(PluginWidgetAndroid* w) void WebViewCore::invalPlugin(PluginWidgetAndroid* w) { - const double PLUGIN_INVAL_DELAY = 0; // should this be non-zero? + const double PLUGIN_INVAL_DELAY = 1.0 / 60; if (!m_pluginInvalTimer.isActive()) { m_pluginInvalTimer.startOneShot(PLUGIN_INVAL_DELAY); |
