diff options
author | John Reck <jreck@google.com> | 2011-03-23 18:02:27 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-03-25 13:25:16 -0700 |
commit | 417789b7c56928a5fcb610583346d07ffa380900 (patch) | |
tree | 3f8902d06b229fa826b866778bfc57cf852f9742 /WebCore/platform/graphics/android/BaseTile.h | |
parent | 78eb447490d235178fafa5bd046918ffe965003f (diff) | |
download | external_webkit-417789b7c56928a5fcb610583346d07ffa380900.zip external_webkit-417789b7c56928a5fcb610583346d07ffa380900.tar.gz external_webkit-417789b7c56928a5fcb610583346d07ffa380900.tar.bz2 |
My attempt at a smarter tile manager
Removes TileSets and queues tiles individually
Uses a priority queue to determine which tiles to render first
Stops rendering the front tile page if we are prepping the back one
Limits queue spam by tracking which tiles are already in the queue
Change-Id: I2f2c9539e0d8a421ac7f1f4cb80ee831b9894293
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.h')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.h b/WebCore/platform/graphics/android/BaseTile.h index c50f6f5..709e3cf 100644 --- a/WebCore/platform/graphics/android/BaseTile.h +++ b/WebCore/platform/graphics/android/BaseTile.h @@ -72,6 +72,7 @@ public: void reserveTexture(); void setUsedLevel(int); + int usedLevel(); bool isTileReady(); void draw(float transparency, SkRect& rect); @@ -89,6 +90,8 @@ public: void markAsDirty(const unsigned int pictureCount, const SkRegion& dirtyArea); bool isDirty(); + bool isRepaintPending(); + void setRepaintPending(bool pending); void setUsable(bool usable); float scale() const { return m_scale; } void setScale(float scale); @@ -114,6 +117,8 @@ private: float m_scale; // used to signal that the that the tile is out-of-date and needs to be redrawn bool m_dirty; + // used to signal that a repaint is pending + bool m_repaintPending; // used to signal whether or not the draw can use this tile. bool m_usable; // stores the id of the latest picture from webkit that caused this tile to |