summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-07-29 12:34:24 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-29 12:34:24 -0700
commit6cff5909d0c0783e083ebd0f9e56df7d178bbdce (patch)
treed037439d48d99d39e19bf1e34f737e36810a7d34 /Source/WebKit/android/nav
parent40e3b187f192eb3de4f6540cecd522cb767ce97c (diff)
parentc7e578330aece3c556ef205365c24676687223e2 (diff)
downloadexternal_webkit-6cff5909d0c0783e083ebd0f9e56df7d178bbdce.zip
external_webkit-6cff5909d0c0783e083ebd0f9e56df7d178bbdce.tar.gz
external_webkit-6cff5909d0c0783e083ebd0f9e56df7d178bbdce.tar.bz2
Merge "Add features to support Ganesh in the Android browser"
Diffstat (limited to 'Source/WebKit/android/nav')
-rw-r--r--Source/WebKit/android/nav/WebView.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp
index 77ac2ae..69d1ee8 100644
--- a/Source/WebKit/android/nav/WebView.cpp
+++ b/Source/WebKit/android/nav/WebView.cpp
@@ -2606,6 +2606,11 @@ static void nativeSetExpandedTileBounds(JNIEnv*, jobject, jboolean enabled)
TilesManager::instance()->setExpandedTileBounds(enabled);
}
+static void nativeUseHardwareAccelSkia(JNIEnv*, jobject, jboolean enabled)
+{
+ BaseRenderer::setCurrentRendererType(enabled ? BaseRenderer::Ganesh : BaseRenderer::Raster);
+}
+
static int nativeGetBackgroundColor(JNIEnv* env, jobject obj)
{
WebView* view = GET_NATIVE_VIEW(env, obj);
@@ -2815,6 +2820,8 @@ static JNINativeMethod gJavaWebViewMethods[] = {
(void*) nativeScrollLayer },
{ "nativeSetExpandedTileBounds", "(Z)V",
(void*) nativeSetExpandedTileBounds },
+ { "nativeUseHardwareAccelSkia", "(Z)V",
+ (void*) nativeUseHardwareAccelSkia },
{ "nativeGetBackgroundColor", "()I",
(void*) nativeGetBackgroundColor },
{ "nativeSetProperty", "(Ljava/lang/String;Ljava/lang/String;)V",