Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index 107878abf2a9750ffbc8f1fbdcf4cac5e29e5b78..ba6c6c4daf366bdd2a347419513eef581b10b3a7 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -4269,8 +4269,13 @@ void WebViewImpl::initializeLayerTreeView() |
devTools->layerTreeViewChanged(m_layerTreeView); |
m_page->settings().setAcceleratedCompositingEnabled(m_layerTreeView); |
- if (m_layerTreeView) |
+ if (m_layerTreeView) { |
m_page->layerTreeViewInitialized(*m_layerTreeView); |
+ // We don't yet have a page loaded at this point of the initialization of WebViewImpl. |
+ // Suppress commits until Blink generates invalidations so we don't |
+ // attempt to paint too early in the next page load. |
+ m_layerTreeView->setDeferCommits(true); |
+ } |
// FIXME: only unittests, click to play, Android printing, and printing (for headers and footers) |
// make this assert necessary. We should make them not hit this code and then delete allowsBrokenNullLayerTreeView. |