summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/TextureOwner.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/TextureOwner.h')
-rw-r--r--WebCore/platform/graphics/android/TextureOwner.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/TextureOwner.h b/WebCore/platform/graphics/android/TextureOwner.h
index 7b0673d..c421e8a 100644
--- a/WebCore/platform/graphics/android/TextureOwner.h
+++ b/WebCore/platform/graphics/android/TextureOwner.h
@@ -26,6 +26,8 @@
#ifndef TextureOwner_h
#define TextureOwner_h
+#include <wtf/HashSet.h>
+
namespace WebCore {
class TiledPage;
@@ -33,9 +35,15 @@ class BackedDoubleBufferedTexture;
class TextureOwner {
public:
- virtual ~TextureOwner() {}
+ virtual ~TextureOwner();
virtual void removeTexture(BackedDoubleBufferedTexture* texture) = 0;
virtual TiledPage* page() = 0;
+
+ void addOwned(BackedDoubleBufferedTexture*);
+ void removeOwned(BackedDoubleBufferedTexture*);
+
+private:
+ WTF::HashSet<BackedDoubleBufferedTexture*> m_ownedTextures;
};
}