summaryrefslogtreecommitdiffstats
path: root/Source/WebKit
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2012-05-04 04:56:23 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-04 04:56:23 -0700
commit67cb7db03e4f08f46b76d8526aaa62e3725fe79a (patch)
treee0d0a7c9d3b031925fcc7f408440f420796b40e7 /Source/WebKit
parent897f9bc8d6e51ba1d0209f219e4c98c8565927e9 (diff)
parentdf5b35724c74cc8ac3c497d74c9d4dc449b9073f (diff)
downloadexternal_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
Diffstat (limited to 'Source/WebKit')
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp4
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.