summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GLWebViewState.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-03-22 14:29:12 -0700
committerNicolas Roard <nicolasroard@google.com>2011-03-22 23:56:44 -0700
commit772742124c1e5c700120019397dc8af29ced74c0 (patch)
treeb3a1d15332445f13f7a174d78587bc990dafd699 /WebCore/platform/graphics/android/GLWebViewState.h
parent55c8e9b1b75caff31e804a6f4da404da9f67af93 (diff)
downloadexternal_webkit-772742124c1e5c700120019397dc8af29ced74c0.zip
external_webkit-772742124c1e5c700120019397dc8af29ced74c0.tar.gz
external_webkit-772742124c1e5c700120019397dc8af29ced74c0.tar.bz2
Fix performance problems with layers
We were preventing the layers' positions to be updated while waiting for the base surface to render. This also fix some repainting issues. bug:4136077 Change-Id: I6870faf8296e205c6ee58e80b1cf95833a67814b
Diffstat (limited to 'WebCore/platform/graphics/android/GLWebViewState.h')
-rw-r--r--WebCore/platform/graphics/android/GLWebViewState.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/GLWebViewState.h b/WebCore/platform/graphics/android/GLWebViewState.h
index 854d8cc..091bedc 100644
--- a/WebCore/platform/graphics/android/GLWebViewState.h
+++ b/WebCore/platform/graphics/android/GLWebViewState.h
@@ -226,6 +226,7 @@ public:
void resetFrameworkInval();
void addDirtyArea(const IntRect& rect);
void resetLayersDirtyArea();
+ LayerAndroid* previouslyUsedRoot() { return m_previouslyUsedRoot; }
private:
void inval(const IntRect& rect); // caller must hold m_baseLayerLock
@@ -258,6 +259,8 @@ private:
android::Mutex m_baseLayerLock;
BaseLayerAndroid* m_baseLayer;
BaseLayerAndroid* m_currentBaseLayer;
+ LayerAndroid* m_previouslyUsedRoot;
+
unsigned int m_currentPictureCounter;
bool m_usePageA;
TiledPage* m_tiledPageA;