Index: WebKit/chromium/src/WebViewImpl.cpp |
=================================================================== |
--- WebKit/chromium/src/WebViewImpl.cpp (revision 73201) |
+++ WebKit/chromium/src/WebViewImpl.cpp (working copy) |
@@ -2272,17 +2272,15 @@ |
void WebViewImpl::setRootGraphicsLayer(WebCore::PlatformLayer* layer) |
{ |
- bool wasActive = m_isAcceleratedCompositingActive; |
setIsAcceleratedCompositingActive(layer ? true : false); |
if (m_layerRenderer) |
m_layerRenderer->setRootLayer(layer); |
- if (wasActive != m_isAcceleratedCompositingActive) { |
- IntRect damagedRect(0, 0, m_size.width, m_size.height); |
- if (m_isAcceleratedCompositingActive) |
- invalidateRootLayerRect(damagedRect); |
- else |
- m_client->didInvalidateRect(damagedRect); |
- } |
+ |
+ IntRect damagedRect(0, 0, m_size.width, m_size.height); |
+ if (m_isAcceleratedCompositingActive) |
+ invalidateRootLayerRect(damagedRect); |
+ else |
+ m_client->didInvalidateRect(damagedRect); |
} |
void WebViewImpl::setRootLayerNeedsDisplay() |
@@ -2381,7 +2379,8 @@ |
if (!active) { |
m_isAcceleratedCompositingActive = false; |
- m_layerRenderer->finish(); // finish all GL rendering before we hide the window? |
+ if (m_layerRenderer) |
+ m_layerRenderer->finish(); // finish all GL rendering before we hide the window? |
m_client->didActivateAcceleratedCompositing(false); |
return; |
} |
@@ -2518,7 +2517,6 @@ |
m_layerRenderer = layerRenderer; |
// Enable or disable accelerated compositing and request a refresh. |
- m_isAcceleratedCompositingActive = false; |
setRootGraphicsLayer(m_layerRenderer ? m_layerRenderer->rootLayer() : 0); |
} |
#endif |