summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/LayerTexture.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2011-01-25 19:01:55 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-25 19:01:55 -0800
commit85e27b62cf6f85f2e8d5694b285be78a3a090b22 (patch)
tree9817a3dd85737fa3a4fbf78c02e06e520e4c74eb /WebCore/platform/graphics/android/LayerTexture.h
parent71895be64040f1060c51740c999a3747372d3c35 (diff)
parentbc87f888df256a489e174b10c22d270f64903a3e (diff)
downloadexternal_webkit-85e27b62cf6f85f2e8d5694b285be78a3a090b22.zip
external_webkit-85e27b62cf6f85f2e8d5694b285be78a3a090b22.tar.gz
external_webkit-85e27b62cf6f85f2e8d5694b285be78a3a090b22.tar.bz2
Merge "Implement a workaround for the texture corruption" into honeycomb
Diffstat (limited to 'WebCore/platform/graphics/android/LayerTexture.h')
-rw-r--r--WebCore/platform/graphics/android/LayerTexture.h7
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