summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BaseTile.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2011-01-31 16:02:42 -0800
committerNicolas Roard <nicolas@android.com>2011-01-31 23:16:39 -0800
commit7e3773d591be20a4ddb1ef7df2709fd7655b7917 (patch)
treea95c6e0074c7d24749a8ad5a853a885b20180b46 /WebCore/platform/graphics/android/BaseTile.h
parent968791c5f1c465f0633c618fda279246ba213fdf (diff)
downloadexternal_webkit-7e3773d591be20a4ddb1ef7df2709fd7655b7917.zip
external_webkit-7e3773d591be20a4ddb1ef7df2709fd7655b7917.tar.gz
external_webkit-7e3773d591be20a4ddb1ef7df2709fd7655b7917.tar.bz2
Implement dynamic allocation of base tiles.
This way, a webview will only consume as much GPU memory as needed, depending on its size, to a maximum of 256 tiles per TiledPage. bug:3376517 Change-Id: Icc1e47623297cf1c01d40aa9e123c1a05373e7e5
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.h')
-rw-r--r--WebCore/platform/graphics/android/BaseTile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.h b/WebCore/platform/graphics/android/BaseTile.h
index d22849d..0527fcd 100644
--- a/WebCore/platform/graphics/android/BaseTile.h
+++ b/WebCore/platform/graphics/android/BaseTile.h
@@ -75,6 +75,9 @@ public:
// the only thread-safe function called by the background thread
void paintBitmap();
+ void drawTileInfo(SkCanvas* canvas,
+ BackedDoubleBufferedTexture* texture,
+ int x, int y, float scale);
void markAsDirty(const unsigned int pictureCount);
bool isDirty();