Commit d6d7e351 authored by enrica@apple.com's avatar enrica@apple.com
Browse files

Fixed broken build on Windows.

Added contditional compilation for accelerated compositing.

* WebView.cpp:
(WebView::deleteBackingStore):
(WebView::addToDirtyRegion):
(WebView::updateBackingStore):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e7bfed76
2010-03-12 Enrica Casucci <enrica@apple.com>
Fixed broken build on Windows.
Added contditional compilation for accelerated compositing.
* WebView.cpp:
(WebView::deleteBackingStore):
(WebView::addToDirtyRegion):
(WebView::updateBackingStore):
2010-03-12 Beth Dakin <bdakin@apple.com>
Reviewed by Simon Fraser.
......
......@@ -736,8 +736,10 @@ void WebView::deleteBackingStore()
}
m_backingStoreBitmap.clear();
m_backingStoreDirtyRegion.clear();
#if USE(ACCELERATED_COMPOSITING)
if (m_layerRenderer)
m_layerRenderer->setBackingStoreDirty(false);
#endif
m_backingStoreSize.cx = m_backingStoreSize.cy = 0;
}
......@@ -786,8 +788,10 @@ void WebView::addToDirtyRegion(HRGN newRegion)
} else
m_backingStoreDirtyRegion.set(newRegion);
#if USE(ACCELERATED_COMPOSITING)
if (m_layerRenderer)
m_layerRenderer->setBackingStoreDirty(true);
#endif
if (m_uiDelegatePrivate)
m_uiDelegatePrivate->webViewDidInvalidate(this);
......@@ -915,8 +919,10 @@ void WebView::updateBackingStore(FrameView* frameView, HDC dc, bool backingStore
m_uiDelegatePrivate->webViewPainted(this);
m_backingStoreDirtyRegion.clear();
#if USE(ACCELERATED_COMPOSITING)
if (m_layerRenderer)
m_layerRenderer->setBackingStoreDirty(false);
#endif
}
if (!dc) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment