diff options
| author | Bo Liu <boliu@google.com> | 2014-07-28 20:09:27 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-28 18:28:56 +0000 |
| commit | c15fbba494b79e197ccc88e6f160103c9aedbc5a (patch) | |
| tree | 3203c37423c4e33be9479d4b4bf4589578997fd0 /core/java/android/webkit | |
| parent | 38ff6a25c823ae94567f1edcfe427e6e57c09194 (diff) | |
| parent | 9f3ed850b6521bec8a946a54bb8a15565b4aa67e (diff) | |
Merge "Add WebView.enableSlowWholeDocumentDraw" into lmp-dev
Diffstat (limited to 'core/java/android/webkit')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 10 | ||||
| -rw-r--r-- | core/java/android/webkit/WebViewFactoryProvider.java | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 92703abb548d..e07a6e3d9081 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1624,6 +1624,16 @@ public class WebView extends AbsoluteLayout } /** + * Enable drawing the entire HTML document at a significant performance + * cost. Call this to enable drawing and capturing HTML content outside of + * the WebView's viewport. This should be called before any WebViews are + * created. + */ + public static void enableSlowWholeDocumentDraw() { + getFactory().getStatics().enableSlowWholeDocumentDraw(); + } + + /** * Clears the highlighting surrounding text matches created by * {@link #findAllAsync}. */ diff --git a/core/java/android/webkit/WebViewFactoryProvider.java b/core/java/android/webkit/WebViewFactoryProvider.java index 5ff265568380..48f3ca370454 100644 --- a/core/java/android/webkit/WebViewFactoryProvider.java +++ b/core/java/android/webkit/WebViewFactoryProvider.java @@ -64,6 +64,12 @@ public interface WebViewFactoryProvider { * {@link android.webkit.WebView#optOutDataReductionProxy() } */ void optOutDataReductionProxy(); + + /** + * Implements the API method: + * {@link android.webkit.WebView#setSlowWholeDocumentDrawEnabled(boolean) } + */ + void enableSlowWholeDocumentDraw(); } Statics getStatics(); |
