diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-08-17 16:25:30 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-08-17 17:36:11 -0700 |
commit | b7d8e1b710ce418ca1d8b7fc3612740757fd1aec (patch) | |
tree | 55416a00d8e6e3520e68c193c08c73fa41274311 /Source/WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | bd7e9ea6769039d66b97b4286e096416b53bdc4a (diff) | |
download | external_webkit-b7d8e1b710ce418ca1d8b7fc3612740757fd1aec.zip external_webkit-b7d8e1b710ce418ca1d8b7fc3612740757fd1aec.tar.gz external_webkit-b7d8e1b710ce418ca1d8b7fc3612740757fd1aec.tar.bz2 |
Reduce the tiles lookup complexity
bug:5032212
Change-Id: Id3c6ff55de995f1c6b3f9bf36e941f3f499f0bc8
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 9978327..b7da291 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -554,6 +554,9 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect, // the BaseTiles' texture. TilesManager::instance()->transferQueue()->updateDirtyBaseTiles(); + // gather the textures we can use + TilesManager::instance()->gatherLayerTextures(); + if (compositedRoot != m_previouslyUsedRoot) TilesManager::instance()->swapLayersTextures(m_previouslyUsedRoot, compositedRoot); |