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

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: Incorporate review feedback Created 8 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
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index b7e0e7c405e9c5518d600b6b875f37ab72fbabca..d67c434174d5118655a5a8c124bfcb11ed777ed8 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -397,6 +397,11 @@ void ThreadProxy::sendManagedMemoryStats()
if (!m_layerTreeHost->contentsTextureManager())
return;
+ // If we are using impl-side painting, then sendManagedMemoryStats is called
+ // through the tile manager's manage function.
+ if (m_layerTreeHostImpl->tileManager())
nduca 2012/12/28 02:16:03 Shoud we use settings.implSidePainting? I dont hav
ccameron 2012/12/28 19:56:00 Yes, that's the right signal.
+ 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') | cc/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698