diff options
Diffstat (limited to 'WebCore/platform/graphics/android/LayerTexture.h')
-rw-r--r-- | WebCore/platform/graphics/android/LayerTexture.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/LayerTexture.h b/WebCore/platform/graphics/android/LayerTexture.h index 0632abb..d323d6f 100644 --- a/WebCore/platform/graphics/android/LayerTexture.h +++ b/WebCore/platform/graphics/android/LayerTexture.h @@ -27,6 +27,7 @@ #define LayerTexture_h #include "BackedDoubleBufferedTexture.h" +#include "ClassTracker.h" #include "IntRect.h" namespace WebCore { @@ -40,8 +41,17 @@ class LayerTexture : public BackedDoubleBufferedTexture { , m_scale(1) , m_pictureUsed(0) , m_ready(false) - {} - virtual ~LayerTexture() {}; + { +#ifdef DEBUG_COUNT + ClassTracker::instance()->increment("LayerTexture"); +#endif + } + virtual ~LayerTexture() + { +#ifdef DEBUG_COUNT + ClassTracker::instance()->decrement("LayerTexture"); +#endif + }; int id() { return m_id; } void setId(int id) { m_id = id; } |