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

Unified Diff: cc/single_thread_proxy.cc

Issue 11470024: Don't spam the GPU process with memory usage stats (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
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/single_thread_proxy.cc
diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
index d3787bc4731fa6a64c62947184b470595263173a..911f90db098d999c09cbb2d0cff3b7bc390aee7a 100644
--- a/cc/single_thread_proxy.cc
+++ b/cc/single_thread_proxy.cc
@@ -297,12 +297,10 @@ void SingleThreadProxy::sendManagedMemoryStats()
DCHECK(Proxy::isImplThread());
if (!m_layerTreeHostImpl.get())
return;
- if (!m_layerTreeHostImpl->renderer())
- return;
if (!m_layerTreeHost->contentsTextureManager())
return;
- m_layerTreeHostImpl->renderer()->sendManagedMemoryStats(
+ m_layerTreeHostImpl->sendManagedMemoryStats(
m_layerTreeHost->contentsTextureManager()->memoryVisibleBytes(),
m_layerTreeHost->contentsTextureManager()->memoryVisibleAndNearbyBytes(),
m_layerTreeHost->contentsTextureManager()->memoryUseBytes());
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698