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

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: Plumb it for WebPagePopup. Created 5 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
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 7c60ee882b92293d22f01df5834ecb26ff44aeaa..db2013e530962ea1910e01612f2825dd577c1072 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -343,6 +343,8 @@ void WebPagePopupImpl::setIsAcceleratedCompositingActive(bool enter)
m_layerTreeView->setVisible(true);
m_isAcceleratedCompositingActive = true;
m_layerTreeView->setDeviceScaleFactor(m_webView->deviceScaleFactor());
+ if (m_page)
dcheng 2015/12/01 01:16:30 Is the m_page test here necessary? It looks asymme
loyso (OOO) 2015/12/01 05:41:03 WebPagePopupImpl tests m_page for nullptr almost e
+ m_page->layerTreeViewInitialized(*m_layerTreeView);
} else {
m_isAcceleratedCompositingActive = false;
}
@@ -360,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;
}

Powered by Google App Engine
This is Rietveld 408576698