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/QueuedOperation.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/QueuedOperation.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/QueuedOperation.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/platform/graphics/android/QueuedOperation.h b/Source/WebCore/platform/graphics/android/QueuedOperation.h index 98f3e2f..a2e49a7 100644 --- a/Source/WebCore/platform/graphics/android/QueuedOperation.h +++ b/Source/WebCore/platform/graphics/android/QueuedOperation.h @@ -31,7 +31,7 @@ namespace WebCore { class QueuedOperation { - public: +public: enum OperationType { Undefined, PaintTile, PaintLayer, DeleteTexture }; QueuedOperation(OperationType type, TiledPage* page) : m_type(type) @@ -42,19 +42,19 @@ class QueuedOperation { virtual int priority() { return -1; } OperationType type() const { return m_type; } TiledPage* page() const { return m_page; } - private: +private: OperationType m_type; TiledPage* m_page; }; class OperationFilter { - public: +public: virtual ~OperationFilter() {} virtual bool check(QueuedOperation* operation) = 0; }; class PageFilter : public OperationFilter { - public: +public: PageFilter(TiledPage* page) : m_page(page) {} virtual bool check(QueuedOperation* operation) { @@ -62,12 +62,12 @@ class PageFilter : public OperationFilter { return true; return false; } - private: +private: TiledPage* m_page; }; class PagePaintFilter : public OperationFilter { - public: +public: PagePaintFilter(TiledPage* page) : m_page(page) {} virtual bool check(QueuedOperation* operation) { @@ -76,7 +76,7 @@ class PagePaintFilter : public OperationFilter { return true; return false; } - private: +private: TiledPage* m_page; }; |