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

Unified Diff: Source/web/WebPagePopupImpl.cpp

Issue 298803009: Remove no-op did(De)activateCompositor calls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 months 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 | « no previous file | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPagePopupImpl.cpp
diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp
index b084bf1d920982bd4c493e9b7c0c8bc501180b60..f957933fa3ebf8204879497ef47b9c1423800640 100644
--- a/Source/web/WebPagePopupImpl.cpp
+++ b/Source/web/WebPagePopupImpl.cpp
@@ -266,10 +266,8 @@ void WebPagePopupImpl::setIsAcceleratedCompositingActive(bool enter)
if (!enter) {
m_isAcceleratedCompositingActive = false;
- m_widgetClient->didDeactivateCompositor();
} else if (m_layerTreeView) {
m_isAcceleratedCompositingActive = true;
- m_widgetClient->didActivateCompositor();
} else {
TRACE_EVENT0("webkit", "WebPagePopupImpl::setIsAcceleratedCompositingActive(true)");
@@ -277,12 +275,10 @@ void WebPagePopupImpl::setIsAcceleratedCompositingActive(bool enter)
m_layerTreeView = m_widgetClient->layerTreeView();
if (m_layerTreeView) {
m_layerTreeView->setVisible(true);
- m_widgetClient->didActivateCompositor();
m_isAcceleratedCompositingActive = true;
m_layerTreeView->setDeviceScaleFactor(m_widgetClient->deviceScaleFactor());
} else {
m_isAcceleratedCompositingActive = false;
- m_widgetClient->didDeactivateCompositor();
}
}
}
« no previous file with comments | « no previous file | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698