diff options
| author | Chris Craik <ccraik@google.com> | 2012-04-06 17:59:28 -0700 |
|---|---|---|
| committer | Chris Craik <ccraik@google.com> | 2012-04-06 18:01:47 -0700 |
| commit | ca1e910446353672503d5251c28cc7384018932a (patch) | |
| tree | e684b9ac2c7716ce6d46d2074c3dd6154250c29c /Source/WebCore/platform | |
| parent | 2e510fd5b5a30f1315c272d44ae3aa4cba355498 (diff) | |
| download | external_webkit-ca1e910446353672503d5251c28cc7384018932a.zip external_webkit-ca1e910446353672503d5251c28cc7384018932a.tar.gz external_webkit-ca1e910446353672503d5251c28cc7384018932a.tar.bz2 | |
disable expanded bounds when highEndGfx=false
also make prefetch bounds only additionally expand in the Y direction
bug:6273774
bug:6299994
Change-Id: I65d981a9e01adb605deff403c338deebcbf5e8ec
Diffstat (limited to 'Source/WebCore/platform')
| -rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp b/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp index 0e900a9..5ce63bf 100644 --- a/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp @@ -192,10 +192,13 @@ void TileGrid::prepareGL(GLWebViewState* state, float scale, if (useExpandPrefetch) { IntRect fullArea = computeTilesArea(unclippedArea, scale); IntRect expandedArea = m_area; - expandedArea.inflate(EXPANDED_BOUNDS_INFLATE); + + // on systems reporting highEndGfx=true, use expanded high res bounds + if (TilesManager::instance()->highEndGfx()) + expandedArea.inflate(EXPANDED_BOUNDS_INFLATE); if (isLowResPrefetch) - expandedArea.inflate(EXPANDED_PREFETCH_BOUNDS_Y_INFLATE); + expandedArea.inflateY(EXPANDED_PREFETCH_BOUNDS_Y_INFLATE); // clip painting area to content expandedArea.intersect(fullArea); |
