Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Merge "Take scale into account when greedily prefetching an entire la…
Browse files Browse the repository at this point in the history
…yer" into ics-mr0
  • Loading branch information
ChrisCraik authored and Android (Google) Code Review committed Oct 25, 2011
2 parents bee2599 + 4d0ea4e commit 0d4258e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebCore/platform/graphics/android/PaintedSurface.cpp
Expand Up @@ -214,8 +214,8 @@ void PaintedSurface::computeVisibleArea() {
if (!m_visibleArea.isEmpty()) {
float tileWidth = TilesManager::instance()->layerTileWidth();
float tileHeight = TilesManager::instance()->layerTileHeight();
int w = ceilf(m_area.width() / tileWidth);
int h = ceilf(m_area.height() / tileHeight);
int w = ceilf(m_area.width() * m_scale / tileWidth);
int h = ceilf(m_area.height() * m_scale / tileHeight);
if (w * h < MAX_UNCLIPPED_AREA)
m_visibleArea = m_area;
}
Expand Down

0 comments on commit 0d4258e

Please sign in to comment.