summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-03-23 15:46:41 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-23 15:46:41 -0700
commit6fd1c35298bb73147bb585e01b86d5b7c1c8f640 (patch)
tree18b23352122a8aa070481d70ab5d0f54c632b666 /WebCore/platform/graphics/android/BaseLayerAndroid.cpp
parent28b632cb7811e88493697f19a1be5d989651633f (diff)
parent5bdfd148249f6196a184550910f1cd8cb138fe8c (diff)
downloadexternal_webkit-6fd1c35298bb73147bb585e01b86d5b7c1c8f640.zip
external_webkit-6fd1c35298bb73147bb585e01b86d5b7c1c8f640.tar.gz
external_webkit-6fd1c35298bb73147bb585e01b86d5b7c1c8f640.tar.bz2
am 5bdfd148: Merge "Regression fix from bug:4136077 Plus animations improvement bug:3389597" into honeycomb-mr1
* commit '5bdfd148249f6196a184550910f1cd8cb138fe8c': Regression fix from bug:4136077 Plus animations improvement bug:3389597
Diffstat (limited to 'WebCore/platform/graphics/android/BaseLayerAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/BaseLayerAndroid.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
index 5c63117..7a08e94 100644
--- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
@@ -345,16 +345,21 @@ bool BaseLayerAndroid::drawGL(LayerAndroid* compositedRoot,
// Now that we marked the textures being used, we delete
// the unnecessary ones to make space...
TilesManager::instance()->cleanupLayersTextures(compositedRoot);
- // Finally do another pass to create new textures and schedule
- // repaints if needed
- compositedRoot->createGLTextures();
}
+ // Finally do another pass to create new textures and schedule
+ // repaints if needed
+ compositedRoot->createGLTextures();
if (compositedRoot->drawGL(m_glWebViewState, matrix))
needsRedraw = true;
else if (!animsRunning)
m_glWebViewState->resetLayersDirtyArea();
+ if (animsRunning) {
+ m_glWebViewState->resetLayersDirtyArea();
+ m_glWebViewState->resetFrameworkInval();
+ }
+
} else {
TilesManager::instance()->cleanupLayersTextures(0);
}