summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-07-19 16:38:37 -0700
committerChris Craik <ccraik@google.com>2012-07-19 17:00:59 -0700
commitf762138fb2c8ec33fe3dec8e6bfd47e459f8f6c8 (patch)
tree604c0502e3adfe8ce1c38f9f062e05e825c17e54 /Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h
parent3f669b52cf5578458bd55479634a565c581ca213 (diff)
downloadexternal_webkit-f762138fb2c8ec33fe3dec8e6bfd47e459f8f6c8.zip
external_webkit-f762138fb2c8ec33fe3dec8e6bfd47e459f8f6c8.tar.gz
external_webkit-f762138fb2c8ec33fe3dec8e6bfd47e459f8f6c8.tar.bz2
SurfaceBackings are always zoomable once zoomable
Previously toggling hasText for the content of the SurfaceBacking was enough to cause it to change scale entirely each time the value was changed. Now the allowZoom flag is sticky to avoid unnecessary full-SurfaceBacking repaints. Additionally, changes from allowZoom true->false will not trigger delay. Change-Id: Ie6a13850f86d21f5a12a184c08b940aa2156ef07
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h b/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h
index 5709f2a..06929e1 100644
--- a/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h
+++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.h
@@ -95,6 +95,7 @@ private:
float m_futureScale;
double m_zoomUpdateTime;
bool m_zooming;
+ bool m_hasAllowedZoom;
};
} // namespace WebCore