diff options
author | Derek Sollenberger <djsollen@google.com> | 2012-05-04 04:56:23 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-04 04:56:23 -0700 |
commit | 67cb7db03e4f08f46b76d8526aaa62e3725fe79a (patch) | |
tree | e0d0a7c9d3b031925fcc7f408440f420796b40e7 | |
parent | 897f9bc8d6e51ba1d0209f219e4c98c8565927e9 (diff) | |
parent | df5b35724c74cc8ac3c497d74c9d4dc449b9073f (diff) | |
download | external_webkit-67cb7db03e4f08f46b76d8526aaa62e3725fe79a.zip external_webkit-67cb7db03e4f08f46b76d8526aaa62e3725fe79a.tar.gz external_webkit-67cb7db03e4f08f46b76d8526aaa62e3725fe79a.tar.bz2 |
Merge "Bump WebView font cache size to 1.5MB for better performance." into jb-dev
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index 34740a8..2818ba8 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -119,6 +119,7 @@ #include "SkTDArray.h" #include "SkTypes.h" #include "SkCanvas.h" +#include "SkGraphics.h" #include "SkPicture.h" #include "SkUtils.h" #include "Text.h" @@ -529,6 +530,9 @@ WebViewCore::WebViewCore(JNIEnv* env, jobject javaWebViewCore, WebCore::Frame* m AndroidNetworkLibraryImpl::InitWithApplicationContext(env, 0); + // increase the font cache size beyond the standard system setting + SkGraphics::SetFontCacheLimit(1572864); // 1572864 bytes == 1.5 MB + // Static initialisation of certain important V8 static data gets performed at system startup when // libwebcore gets loaded. We now need to associate the WebCore thread with V8 to complete // initialisation. |