summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/TiledPage.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2011-09-21 11:32:15 -0700
committerChris Craik <ccraik@google.com>2011-09-21 15:46:36 -0700
commit176a19c613e0c025ecd5f82730a24c0ff128edef (patch)
treed3d3d3bafc7cb60c7ec0955eefdbd519e553cb6b /Source/WebCore/platform/graphics/android/TiledPage.h
parentb0d9f9482ecf8cde08d50e4dff6a2f16d2148966 (diff)
downloadexternal_webkit-176a19c613e0c025ecd5f82730a24c0ff128edef.zip
external_webkit-176a19c613e0c025ecd5f82730a24c0ff128edef.tar.gz
external_webkit-176a19c613e0c025ecd5f82730a24c0ff128edef.tar.bz2
Prefetch browser content with tiled page
bug:5262519 Use the tiled page not used by content rendering to render much fewer tiles for the same content, at an inflated scale. These prefetched tiles are prioritized for painting above all others, so that content is (almost) always visible on the base layer. Change-Id: I598b7925cb68beef632f828df3ae522a0b21e2b4
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TiledPage.h')
-rw-r--r--Source/WebCore/platform/graphics/android/TiledPage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/TiledPage.h b/Source/WebCore/platform/graphics/android/TiledPage.h
index 946421c..c903abc 100644
--- a/Source/WebCore/platform/graphics/android/TiledPage.h
+++ b/Source/WebCore/platform/graphics/android/TiledPage.h
@@ -98,6 +98,8 @@ public:
void updateBaseTileSize();
bool scrollingDown() { return m_scrollingDown; }
SkIRect* expandedTileBounds() { return &m_expandedTileBounds; }
+ bool isPrefetchPage() { return m_isPrefetchPage; }
+ void setIsPrefetchPage(bool isPrefetch) { m_isPrefetchPage = isPrefetch; }
private:
void prepareRow(bool goingLeft, int tilesInRow, int firstTileX, int y, const SkIRect& tileBounds);
@@ -127,6 +129,7 @@ private:
bool m_prepare;
bool m_scrollingDown;
SkIRect m_expandedTileBounds;
+ bool m_isPrefetchPage;
};
} // namespace WebCore