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

Unified Diff: cc/resources/tile.cc

Issue 447963004: Add gpu_memory_usage to Tile::AsValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index e2aa503032c2ffa677ec3ce8db1d1759fe4429b0..85ff831ca52dc456ca68167cd10320d8e87f1059 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -87,6 +87,8 @@ void Tile::AsValueInto(base::debug::TracedValue* res) const {
res->EndDictionary();
res->SetBoolean("use_picture_analysis", use_picture_analysis());
+
+ res->SetInteger("gpu_memory_usage", GPUMemoryUsageInBytes());
}
size_t Tile::GPUMemoryUsageInBytes() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698