Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2268)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 80203002: WebLayerTreeView and WebWidget API cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/platform/WebLayerTreeView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/platform/WebLayerTreeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698