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

Unified Diff: third_party/WebKit/Source/web/WebPagePopupImpl.cpp

Issue 1459023002: Compositor Animation Timelines: Fix frame swapping tests in WebFrameTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check if m_page is null in WebPagePopupImpl. Created 5 years 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 | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
index 98c5aaf2f45a3f8c26ec9f019765d2f684258801..d7846576519c393b17648b1d29cc3d8fcede23c6 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -344,6 +344,7 @@ void WebPagePopupImpl::setIsAcceleratedCompositingActive(bool enter)
m_layerTreeView->setVisible(true);
m_isAcceleratedCompositingActive = true;
m_layerTreeView->setDeviceScaleFactor(m_webView->deviceScaleFactor());
+ m_page->layerTreeViewInitialized(*m_layerTreeView);
} else {
m_isAcceleratedCompositingActive = false;
}
@@ -361,6 +362,9 @@ void WebPagePopupImpl::beginFrame(double lastFrameTimeMonotonic)
void WebPagePopupImpl::willCloseLayerTreeView()
{
+ if (m_page && m_layerTreeView)
+ m_page->willCloseLayerTreeView(*m_layerTreeView);
+
setIsAcceleratedCompositingActive(false);
m_layerTreeView = 0;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698