diff options
author | Dave Burke <daveburke@google.com> | 2011-02-01 13:26:10 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-02-01 13:26:10 -0800 |
commit | 7652ae4fbfa831031ad67a8154b4f55a1c0d4175 (patch) | |
tree | 8334ca59e8394e7f6e88511e84f95ac8b6155f33 /WebKit/android/jni/WebViewCore.cpp | |
parent | f3ab8cb3150887b52c65ae0aa400f1942dca053b (diff) | |
parent | 19a35bdf5917bdaaab97a77f0dedca79db87a67b (diff) | |
download | external_webkit-7652ae4fbfa831031ad67a8154b4f55a1c0d4175.zip external_webkit-7652ae4fbfa831031ad67a8154b4f55a1c0d4175.tar.gz external_webkit-7652ae4fbfa831031ad67a8154b4f55a1c0d4175.tar.bz2 |
am 19a35bdf: am f09d842c: Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)
* commit '19a35bdf5917bdaaab97a77f0dedca79db87a67b':
Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)
Diffstat (limited to 'WebKit/android/jni/WebViewCore.cpp')
-rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index b329e3b..cda157e 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -108,6 +108,7 @@ #include "SkPicture.h" #include "SkUtils.h" #include "Text.h" +#include "TilesManager.h" #include "TypingCommand.h" #include "WebCoreFrameBridge.h" #include "WebFrameView.h" @@ -4519,6 +4520,15 @@ static void AutoFillForm(JNIEnv* env, jobject obj, jint queryId) #endif } +static void SetExpandedTileBounds(JNIEnv *env, jobject obj, jboolean enabled) +{ + WebViewCore* viewImpl = GET_NATIVE_VIEW(env, obj); + if (!viewImpl) + return; + TilesManager::instance()->setExpandedTileBounds(enabled); +} + + // ---------------------------------------------------------------------------- /* @@ -4626,6 +4636,8 @@ static JNINativeMethod gJavaWebViewCoreMethods[] = { (void*) GetTouchHighlightRects }, { "nativeAutoFillForm", "(I)V", (void*) AutoFillForm }, + { "nativeSetExpandedTileBounds", "(Z)V", + (void*) SetExpandedTileBounds }, }; int registerWebViewCore(JNIEnv* env) |