summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-03-16 14:51:23 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-16 14:51:23 -0700
commit9a9d0c75ef977f314ec58567a97006a94cb55e68 (patch)
tree4c908609a230214bb19001a05ec1b4acf001a233 /WebKit/android
parent27a40e51c2f89179da13bb869db998838229eb0d (diff)
parent2322a2c93ef52b0b74f95103d0fc590a3b01d3ef (diff)
downloadexternal_webkit-9a9d0c75ef977f314ec58567a97006a94cb55e68.zip
external_webkit-9a9d0c75ef977f314ec58567a97006a94cb55e68.tar.gz
external_webkit-9a9d0c75ef977f314ec58567a97006a94cb55e68.tar.bz2
am 2322a2c9: am 6a3bd3f2: For first layout, reset current textures and update base layer.
* commit '2322a2c93ef52b0b74f95103d0fc590a3b01d3ef': For first layout, reset current textures and update base layer.
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/nav/WebView.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 69a2c9b..baf59b9 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -448,7 +448,7 @@ bool drawGL(WebCore::IntRect& viewRect, float scale, int extras)
SkIRect rect;
rect.set(0, 0, m_baseLayer->content()->width(), m_baseLayer->content()->height());
region.setRect(rect);
- m_glWebViewState->setBaseLayer(m_baseLayer, region, false);
+ m_glWebViewState->setBaseLayer(m_baseLayer, region, false, false);
}
}
@@ -1393,11 +1393,13 @@ static void copyScrollPositionRecursive(const LayerAndroid* from,
}
#endif
-void setBaseLayer(BaseLayerAndroid* layer, SkRegion& inval, bool showVisualIndicator)
+void setBaseLayer(BaseLayerAndroid* layer, SkRegion& inval, bool showVisualIndicator,
+ bool isPictureAfterFirstLayout)
{
#if USE(ACCELERATED_COMPOSITING)
if (m_glWebViewState)
- m_glWebViewState->setBaseLayer(layer, inval, showVisualIndicator);
+ m_glWebViewState->setBaseLayer(layer, inval, showVisualIndicator,
+ isPictureAfterFirstLayout);
#endif
#if ENABLE(ANDROID_OVERFLOW_SCROLL)
@@ -1812,13 +1814,15 @@ static bool nativeEvaluateLayersAnimations(JNIEnv *env, jobject obj)
}
static void nativeSetBaseLayer(JNIEnv *env, jobject obj, jint layer, jobject inval,
- jboolean showVisualIndicator)
+ jboolean showVisualIndicator,
+ jboolean isPictureAfterFirstLayout)
{
BaseLayerAndroid* layerImpl = reinterpret_cast<BaseLayerAndroid*>(layer);
SkRegion invalRegion;
if (inval)
invalRegion = *GraphicsJNI::getNativeRegion(env, inval);
- GET_NATIVE_VIEW(env, obj)->setBaseLayer(layerImpl, invalRegion, showVisualIndicator);
+ GET_NATIVE_VIEW(env, obj)->setBaseLayer(layerImpl, invalRegion, showVisualIndicator,
+ isPictureAfterFirstLayout);
}
static void nativeReplaceBaseContent(JNIEnv *env, jobject obj, jint content)
@@ -2610,7 +2614,7 @@ static JNINativeMethod gJavaWebViewMethods[] = {
(void*) nativeSetFindIsUp },
{ "nativeSetHeightCanMeasure", "(Z)V",
(void*) nativeSetHeightCanMeasure },
- { "nativeSetBaseLayer", "(ILandroid/graphics/Region;Z)V",
+ { "nativeSetBaseLayer", "(ILandroid/graphics/Region;ZZ)V",
(void*) nativeSetBaseLayer },
{ "nativeReplaceBaseContent", "(I)V",
(void*) nativeReplaceBaseContent },