From e00e8a78374cdcf01a25bd6327d2b94944b2bc3f Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Sun, 11 Sep 2011 17:48:42 -0700 Subject: Pause WebKit drawing when WebView loses window focus. This prevents animations and other live page content from consuming too many resources while the user is interacting with a popup window. Bug 5300522 Change-Id: I40fb6d16d56b540c431172052a1ae7fead7109be --- core/java/android/webkit/WebSettings.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/java/android/webkit/WebSettings.java') diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 77f67765c44f..9c44138f03e5 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -643,10 +643,10 @@ public class WebSettings { /** * Set whether the WebView will enable smooth transition while panning or - * zooming. If it is true, WebView will choose a solution to maximize the - * performance. e.g. the WebView's content may not be updated during the - * transition. If it is false, WebView will keep its fidelity. The default - * value is false. + * zooming or while the window hosting the WebView does not have focus. + * If it is true, WebView will choose a solution to maximize the performance. + * e.g. the WebView's content may not be updated during the transition. + * If it is false, WebView will keep its fidelity. The default value is false. */ public void setEnableSmoothTransition(boolean enable) { mEnableSmoothTransition = enable; -- cgit v1.2.3