summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-06-08 09:08:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-08 09:08:39 -0700
commit6cb3739279129949876a16e2f0c3175e2e22a015 (patch)
tree8f1b6d7e6f9bf371277b5036b2d9fb959c37f334 /Source
parent92d7c4c42a4d5e64592a6c52c0f6ad1500e20efa (diff)
parentf7142c016687e13068e6954fe82895784ba8e0b2 (diff)
downloadexternal_webkit-6cb3739279129949876a16e2f0c3175e2e22a015.zip
external_webkit-6cb3739279129949876a16e2f0c3175e2e22a015.tar.gz
external_webkit-6cb3739279129949876a16e2f0c3175e2e22a015.tar.bz2
Merge "Make sure we gather the textures before any prepare work" into jb-dev
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/graphics/android/GLWebViewState.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
index d0273cf..55c4eec 100644
--- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
+++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
@@ -342,6 +342,10 @@ int GLWebViewState::drawGL(IntRect& invScreenRect, SkRect& visibleContentRect,
tilesManager->updateTilesIfContextVerified();
+ // gather the textures we can use, make sure this happens before any
+ // texture preparation work.
+ tilesManager->gatherTextures();
+
// Upload any pending ImageTexture
// Return true if we still have some images to upload.
// TODO: upload as many textures as possible within a certain time limit
@@ -354,9 +358,6 @@ int GLWebViewState::drawGL(IntRect& invScreenRect, SkRect& visibleContentRect,
scale = 1.0f; // WORKAROUND for corrupted scale: use 1.0
}
- // gather the textures we can use
- tilesManager->gatherTextures();
-
double currentTime = setupDrawing(invScreenRect, visibleContentRect, screenRect,
titleBarHeight, screenClip, scale);