From ac26ff1e3f26e75d7b21ffb87019984faee4e1cf Mon Sep 17 00:00:00 2001 From: "Shimeng (Simon) Wang" Date: Fri, 19 Nov 2010 17:50:21 -0800 Subject: Clear GL inside clear view. issue: 3215000 Change-Id: I8668a857d840084c363b13c95efffc740a1451db --- WebCore/platform/graphics/android/GLWebViewState.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'WebCore/platform/graphics/android/GLWebViewState.cpp') diff --git a/WebCore/platform/graphics/android/GLWebViewState.cpp b/WebCore/platform/graphics/android/GLWebViewState.cpp index 4080a8a..58c7ab5 100644 --- a/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -239,6 +239,11 @@ void GLWebViewState::setViewport(SkRect& viewport, float scale) static_cast(ceilf(viewport.fBottom * invTileContentHeight))); } +bool GLWebViewState::hasContent() { + android::Mutex::Autolock lock(m_baseLayerLock); + return m_baseLayer; +} + } // namespace WebCore #endif // USE(ACCELERATED_COMPOSITING) -- cgit v1.1