diff options
author | Chris Craik <ccraik@google.com> | 2011-08-22 15:49:32 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2011-08-22 15:49:32 -0700 |
commit | 4a59c354560ed255d45ad00dbdbed13f045c557e (patch) | |
tree | ef6cdca0c39334697e149dd411ce464847f9fcc5 /Source/WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | 77e5b594dd717e27b1a8be2b521f738cf5941ae1 (diff) | |
download | external_webkit-4a59c354560ed255d45ad00dbdbed13f045c557e.zip external_webkit-4a59c354560ed255d45ad00dbdbed13f045c557e.tar.gz external_webkit-4a59c354560ed255d45ad00dbdbed13f045c557e.tar.bz2 |
Re-enable tile prefetching, correct and adjust max tile allocation logic
bug:5168261
Change-Id: I37ec223da4ac1555cd925b08f105f9ed571cb2d9
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index e600b04..a4953a3 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -395,8 +395,8 @@ void GLWebViewState::setViewport(SkRect& viewport, float scale) static_cast<int>(ceilf(viewport.fRight * invTileContentWidth)), static_cast<int>(ceilf(viewport.fBottom * invTileContentHeight))); - int maxTextureCount = (m_viewportTileBounds.width() + TILE_PREFETCH_DISTANCE * 2 + 1) * - (m_viewportTileBounds.height() + TILE_PREFETCH_DISTANCE * 2 + 1) * 2; + int maxTextureCount = (m_viewportTileBounds.width() + TILE_PREFETCH_DISTANCE * 2) * + (m_viewportTileBounds.height() + TILE_PREFETCH_DISTANCE * 2) * 2; TilesManager::instance()->setMaxTextureCount(maxTextureCount); m_tiledPageA->updateBaseTileSize(); m_tiledPageB->updateBaseTileSize(); |