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

Unified Diff: cc/thread_proxy.cc

Issue 11637022: Send memory management policies to the tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang build Created 7 years, 12 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 | « cc/managed_memory_policy.cc ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index b7e0e7c405e9c5518d600b6b875f37ab72fbabca..bb84ac423eaca91d893e6e7298286eb30e2f2756 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -397,6 +397,12 @@ void ThreadProxy::sendManagedMemoryStats()
if (!m_layerTreeHost->contentsTextureManager())
return;
+ // If we are using impl-side painting, then sendManagedMemoryStats is called
+ // directly after the tile manager's manage function, and doesn't need to
+ // interact with main thread's layer tree.
+ if (m_layerTreeHost->settings().implSidePainting)
+ return;
+
m_layerTreeHostImpl->sendManagedMemoryStats(
m_layerTreeHost->contentsTextureManager()->memoryVisibleBytes(),
m_layerTreeHost->contentsTextureManager()->memoryVisibleAndNearbyBytes(),
« no previous file with comments | « cc/managed_memory_policy.cc ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698