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

Unified Diff: cc/resources/resource_provider.cc

Issue 1265183002: Add memory tracking to TexturePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@textures3
Patch Set: review feedback Created 5 years, 4 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
« cc/resources/resource_pool.cc ('K') | « cc/resources/resource_pool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 46492b4b0436aef73365db216520c6dc8f37af6f..f759532b21c4238360b15d24fbd2d2e1263f0c9a 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1973,6 +1973,7 @@ bool ResourceProvider::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
for (const auto& resource_entry : resources_) {
const auto& resource = resource_entry.second;
+ // TODO(ericrk): Add per-compositor ID in name.
reveman 2015/08/05 01:26:59 A simple way to solve this is to replace ResourceP
std::string dump_name = base::StringPrintf("cc/resource_memory/resource_%d",
resource_entry.first);
base::trace_event::MemoryAllocatorDump* dump =
« cc/resources/resource_pool.cc ('K') | « cc/resources/resource_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698