summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-25 13:00:43 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-06-25 13:00:43 -0700
commitbdea3628828014f50d540d825722081f9116a837 (patch)
treeb7bdebc86567d722be1015c7982d445c58563ed4 /WebKit
parentd5856be32f59203dd081726ecf7436942ec168cd (diff)
parent54d2ace6f6547688c8abf94993097955c550715b (diff)
downloadexternal_webkit-bdea3628828014f50d540d825722081f9116a837.zip
external_webkit-bdea3628828014f50d540d825722081f9116a837.tar.gz
external_webkit-bdea3628828014f50d540d825722081f9116a837.tar.bz2
Merge change 5393
* changes: 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.cpp2
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);