summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/GLWebViewState.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2011-08-23 13:36:18 -0700
committerChris Craik <ccraik@google.com>2011-08-25 15:08:33 -0700
commitf51a51f6ea307f4311a04aa865a42b233269540b (patch)
tree62856bffa8b6e82f229a76cc324b28c4286496ee /Source/WebCore/platform/graphics/android/GLWebViewState.h
parent5a1bad665e3c27495e4ccb9a73996ce3a84b0a26 (diff)
downloadexternal_webkit-f51a51f6ea307f4311a04aa865a42b233269540b.zip
external_webkit-f51a51f6ea307f4311a04aa865a42b233269540b.tar.gz
external_webkit-f51a51f6ea307f4311a04aa865a42b233269540b.tar.bz2
better locking while scrolling, but disables double buffering
don't detect scrolling, query from java removes double buffering depends on CL in frameworks/base: https://android-git.corp.google.com/g/#/c/130213/ bug:5106313 Change-Id: Ibfa7f305874f4209fed001c030bb94e752d479b9
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.h')
-rw-r--r--Source/WebCore/platform/graphics/android/GLWebViewState.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.h b/Source/WebCore/platform/graphics/android/GLWebViewState.h
index 9182af3..9bda481 100644
--- a/Source/WebCore/platform/graphics/android/GLWebViewState.h
+++ b/Source/WebCore/platform/graphics/android/GLWebViewState.h
@@ -203,16 +203,8 @@ public:
void lockBaseLayerUpdate() { m_baseLayerUpdate = false; }
void unlockBaseLayerUpdate();
- bool moving() {
- // This will only works if we are not zooming -- we check
- // for this in BaseLayerAndroid::drawBasePictureInGL()
- if ((m_viewport.fLeft != m_previousViewport.fLeft ||
- m_viewport.fTop != m_previousViewport.fTop) &&
- m_viewport.width() == m_previousViewport.width() &&
- m_viewport.height() == m_previousViewport.height())
- return true;
- return false;
- }
+ void setIsScrolling(bool isScrolling) { m_isScrolling = isScrolling; }
+ bool isScrolling() { return m_isScrolling; }
double setupDrawing(IntRect& rect, SkRect& viewport, IntRect& webViewRect,
int titleBarHeight, IntRect& screenClip,
@@ -248,7 +240,6 @@ private:
ZoomManager m_zoomManager;
android::Mutex m_tiledPageLock;
SkRect m_viewport;
- SkRect m_previousViewport;
SkIRect m_viewportTileBounds;
SkIRect m_futureViewportTileBounds;
SkIRect m_preZoomBounds;
@@ -282,6 +273,7 @@ private:
bool m_ringsIsPressed;
int m_focusRingTexture;
+ bool m_isScrolling;
bool m_goingDown;
bool m_goingLeft;