From bc87f888df256a489e174b10c22d270f64903a3e Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Tue, 25 Jan 2011 15:51:14 -0800 Subject: Implement a workaround for the texture corruption bug:3332441 Change-Id: Ifd5dfa8a5d7718ad754a8a7984b871bb84147f37 --- WebCore/platform/graphics/android/LayerTexture.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'WebCore/platform/graphics/android/LayerTexture.h') diff --git a/WebCore/platform/graphics/android/LayerTexture.h b/WebCore/platform/graphics/android/LayerTexture.h index 3654476..fb1b9fb 100644 --- a/WebCore/platform/graphics/android/LayerTexture.h +++ b/WebCore/platform/graphics/android/LayerTexture.h @@ -38,8 +38,7 @@ class LayerTexture : public BackedDoubleBufferedTexture { : BackedDoubleBufferedTexture(w, h, config) , m_id(0) , m_scale(1) - , m_pictureUsed(0) - , m_textureUpdates(0) + , m_pictureUsed(-1) {} virtual ~LayerTexture() {}; @@ -48,21 +47,17 @@ class LayerTexture : public BackedDoubleBufferedTexture { unsigned int pictureUsed() { return m_pictureUsed; } void setPictureUsed(unsigned pictureUsed) { m_pictureUsed = pictureUsed; } - bool isReady(); - virtual void producerUpdate(TextureInfo* textureInfo); void setRect(const IntRect& r) { m_rect = r; } IntRect& rect() { return m_rect; } float scale() { return m_scale; } void setScale(float scale) { m_scale = scale; } private: - void update(); int m_id; IntRect m_rect; float m_scale; unsigned int m_pictureUsed; - unsigned int m_textureUpdates; }; } // namespace WebCore -- cgit v1.1