summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/GLWebViewState.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2011-08-01 13:44:44 -0700
committerChris Craik <ccraik@google.com>2011-08-02 16:48:44 -0700
commitaf33356e96e56310c66b47b6db913e1a61981ca3 (patch)
treec9f98c22fc76dd567deb3b96726eddf8fa44ef65 /Source/WebCore/platform/graphics/android/GLWebViewState.h
parentd4f990572c3485cdc15cff48c3bedc6e7cad809b (diff)
downloadexternal_webkit-af33356e96e56310c66b47b6db913e1a61981ca3.zip
external_webkit-af33356e96e56310c66b47b6db913e1a61981ca3.tar.gz
external_webkit-af33356e96e56310c66b47b6db913e1a61981ca3.tar.bz2
Support registering page swap callback, content inval
bug:5062896 Depends on the following frameworks/base change: https://android-git.corp.google.com/g/#change,124879 a WebView may now register a page swap callback and content invalidate to benchmark tile rendering performance Change-Id: I97f6ed05cff12b11266a472163aab1f3b3ddc87e
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.h')
-rw-r--r--Source/WebCore/platform/graphics/android/GLWebViewState.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.h b/Source/WebCore/platform/graphics/android/GLWebViewState.h
index 4f8d4fe..82b6f12 100644
--- a/Source/WebCore/platform/graphics/android/GLWebViewState.h
+++ b/Source/WebCore/platform/graphics/android/GLWebViewState.h
@@ -129,6 +129,12 @@ class LayerAndroid;
// paint the tile and the second id (B) represents the pictureSet in which the
// tile was invalidated by webkit. Thus, if A < B then tile is dirty.
//
+// Since invalidates can occur faster than a full tiled page update, the tiled
+// page is protected by a 'lock' (m_baseLayerUpdate) that is set to true to
+// defer updates to the background layer, giving the foreground time to render
+// content instead of constantly flushing with invalidates. See
+// lockBaseLayerUpdate() & unlockBaseLayerUpdate().
+//
// Painting scheduling
// -------------------
//