diff options
Diffstat (limited to 'WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/GLWebViewState.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/GLWebViewState.cpp b/WebCore/platform/graphics/android/GLWebViewState.cpp index 444ff17..62eab0f 100644 --- a/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -111,13 +111,17 @@ GLWebViewState::~GLWebViewState() } void GLWebViewState::setBaseLayer(BaseLayerAndroid* layer, const SkRegion& inval, - bool showVisualIndicator) + bool showVisualIndicator, bool isPictureAfterFirstLayout) { android::Mutex::Autolock lock(m_baseLayerLock); - if (!layer) { + if (!layer || isPictureAfterFirstLayout) { m_tiledPageA->setUsable(false); m_tiledPageB->setUsable(false); } + if (isPictureAfterFirstLayout) { + m_baseLayerUpdate = true; + m_invalidateRegion.setEmpty(); + } if (m_baseLayer && layer) m_baseLayer->swapExtra(layer); m_baseLayer = layer; |