diff options
author | Derek Sollenberger <djsollen@google.com> | 2010-11-05 12:07:58 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2010-11-05 12:36:23 -0400 |
commit | a1e806ed3b2d9e2727d08cc2a3958fce501f6f33 (patch) | |
tree | 080f1f338514bb7ee83fd8b41007b0f2d7cc689c /WebCore/platform/graphics/android/TileSet.h | |
parent | 1e6843296fbdb863eaaaa99df71c7b333e7b7803 (diff) | |
download | external_webkit-a1e806ed3b2d9e2727d08cc2a3958fce501f6f33.zip external_webkit-a1e806ed3b2d9e2727d08cc2a3958fce501f6f33.tar.gz external_webkit-a1e806ed3b2d9e2727d08cc2a3958fce501f6f33.tar.bz2 |
Support partial invalidation of tiles based on webkit's inval rect.
This CL reverts the rollback of the original CL now that we have
fixed bug #3165953.
This reverts commit 144ccd9c8dba05ffaa0ae598f9b70032050fc20e.
Change-Id: Ibb5254f652ed95aa3b7b71bf24a2578c51e74a70
Diffstat (limited to 'WebCore/platform/graphics/android/TileSet.h')
-rw-r--r-- | WebCore/platform/graphics/android/TileSet.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/WebCore/platform/graphics/android/TileSet.h b/WebCore/platform/graphics/android/TileSet.h index adf6d13..fd65ad7 100644 --- a/WebCore/platform/graphics/android/TileSet.h +++ b/WebCore/platform/graphics/android/TileSet.h @@ -45,11 +45,10 @@ public: #ifdef DEBUG_COUNT static int count(); #endif - TileSet(int id, int firstTileX, int firstTileY, int rows, int cols); + TileSet(TiledPage* tiledPage, int nbRows, int nbCols); ~TileSet(); bool operator==(const TileSet& set); - void reserveTextures(); void paint(); void add(BaseTile* texture) @@ -59,17 +58,13 @@ public: TiledPage* page() { - if (m_tiles.size()) - return m_tiles[0]->page(); - return 0; + return m_tiledPage; } private: Vector<BaseTile*> m_tiles; - int m_id; - int m_firstTileX; - int m_firstTileY; + TiledPage* m_tiledPage; int m_nbRows; int m_nbCols; }; |