From ca1e910446353672503d5251c28cc7384018932a Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 6 Apr 2012 17:59:28 -0700 Subject: disable expanded bounds when highEndGfx=false also make prefetch bounds only additionally expand in the Y direction bug:6273774 bug:6299994 Change-Id: I65d981a9e01adb605deff403c338deebcbf5e8ec --- Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/WebCore') 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); -- cgit v1.1