Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 538d6ab14254ed28eff770dff035d19e7290a4ab..c2ffb8a8a3f4976b38aabcb490274ebb4924837c 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -1907,12 +1907,6 @@ void WebViewImpl::themeChanged() |
view->invalidateRect(damagedRect); |
} |
-void WebViewImpl::setNeedsRedraw() |
-{ |
- if (m_layerTreeView && isAcceleratedCompositingActive()) |
- m_layerTreeView->setNeedsRedraw(); |
-} |
- |
void WebViewImpl::enterFullScreenForElement(WebCore::Element* element) |
{ |
m_fullscreenController->enterFullScreenForElement(element); |
@@ -3865,7 +3859,7 @@ void WebViewImpl::setRootGraphicsLayer(GraphicsLayer* layer) |
void WebViewImpl::scheduleCompositingLayerSync() |
{ |
- m_layerTreeView->setNeedsRedraw(); |
+ m_layerTreeView->setNeedsAnimate(); |
} |
void WebViewImpl::scrollRootLayerRect(const IntSize&, const IntRect&) |
@@ -3910,7 +3904,7 @@ WebCore::GraphicsLayer* WebViewImpl::rootGraphicsLayer() |
void WebViewImpl::scheduleAnimation() |
{ |
- if (isAcceleratedCompositingActive() && Platform::current()->isThreadedCompositingEnabled()) { |
+ if (isAcceleratedCompositingActive()) { |
ASSERT(m_layerTreeView); |
m_layerTreeView->setNeedsAnimate(); |
return; |