diff options
author | Nicolas Roard <nicolas@android.com> | 2011-01-25 15:51:14 -0800 |
---|---|---|
committer | Nicolas Roard <nicolas@android.com> | 2011-01-25 16:34:46 -0800 |
commit | bc87f888df256a489e174b10c22d270f64903a3e (patch) | |
tree | 539f01b803f95150d59b19bc7101d4212d0065ec /WebCore/platform/graphics/android/LayerTexture.h | |
parent | e5271873d9e1e31a104d4253395c333c67e26ab5 (diff) | |
download | external_webkit-bc87f888df256a489e174b10c22d270f64903a3e.zip external_webkit-bc87f888df256a489e174b10c22d270f64903a3e.tar.gz external_webkit-bc87f888df256a489e174b10c22d270f64903a3e.tar.bz2 |
Implement a workaround for the texture corruption
bug:3332441
Change-Id: Ifd5dfa8a5d7718ad754a8a7984b871bb84147f37
Diffstat (limited to 'WebCore/platform/graphics/android/LayerTexture.h')
-rw-r--r-- | WebCore/platform/graphics/android/LayerTexture.h | 7 |
1 files changed, 1 insertions, 6 deletions
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 |