diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-06-21 16:21:55 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-07-14 18:16:39 -0700 |
commit | 3c131605fca8e29a88fdc4923d86bdc3f40adb2b (patch) | |
tree | 440bd04fb01b43ed995348f579e70d668fe52a85 /Source/WebCore/platform/graphics/android/TiledPage.h | |
parent | 5dcd286d3e3e60f6a090f775a1fdceb40f578b75 (diff) | |
download | external_webkit-3c131605fca8e29a88fdc4923d86bdc3f40adb2b.zip external_webkit-3c131605fca8e29a88fdc4923d86bdc3f40adb2b.tar.gz external_webkit-3c131605fca8e29a88fdc4923d86bdc3f40adb2b.tar.bz2 |
Implements tiled layers. We remove all the existing code in LayerAndroid
related to the old texture management and introduce two new classes:
- PaintedSurface, used as a placeholder ui-side for the regularly
changing LayerAndroid
- TiledTexture, implementing the tiling of PaintedSurface using a set
of BaseTile
bug:4580444 bug:3392331
Change-Id: I0daa079d2acce49f3baa8c312ea0b0dd457ccd5c
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TiledPage.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/TiledPage.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/TiledPage.h b/Source/WebCore/platform/graphics/android/TiledPage.h index 1aa3e61..078ce48 100644 --- a/Source/WebCore/platform/graphics/android/TiledPage.h +++ b/Source/WebCore/platform/graphics/android/TiledPage.h @@ -32,6 +32,8 @@ #include "SkCanvas.h" #include "SkRegion.h" +#include "TilePainter.h" + namespace WebCore { class GLWebViewState; @@ -47,7 +49,7 @@ class IntRect; * background TilePage at the new scale factor. When the background TilePage is * ready, we swap it with the currently displaying TiledPage. */ -class TiledPage { +class TiledPage : public TilePainter { public: TiledPage(int id, GLWebViewState* state); ~TiledPage(); @@ -62,8 +64,11 @@ public: // draw the page on the screen void draw(float transparency, const SkIRect& tileBounds); + // TilePainter implementation // used by individual tiles to generate the bitmap for their tile - unsigned int paintBaseLayerContent(SkCanvas*); + bool paint(BaseTile*, SkCanvas*, unsigned int*); + void paintExtra(SkCanvas*); + // used by individual tiles to get the information about the current picture GLWebViewState* glWebViewState() { return m_glWebViewState; } |