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

Unified Diff: content/common/gpu/gpu_rendering_stats.cc

Issue 11280210: Move RenderStats enumeration out of gpu_benchmarking_extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « content/common/gpu/gpu_rendering_stats.h ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_rendering_stats.cc
diff --git a/content/common/gpu/gpu_rendering_stats.cc b/content/common/gpu/gpu_rendering_stats.cc
index 18e9ec702bff86f03c60c15db78ac7f81e5e95f6..97a24350f081abcb4c3bceebd68ed67665dc9310 100644
--- a/content/common/gpu/gpu_rendering_stats.cc
+++ b/content/common/gpu/gpu_rendering_stats.cc
@@ -14,4 +14,19 @@ GpuRenderingStats::GpuRenderingStats()
GpuRenderingStats::~GpuRenderingStats() {
}
+void GpuRenderingStats::EnumerateFields(
+ cc::RenderingStats::Enumerator* enumerator) const {
+ enumerator->AddInt("globalTextureUploadCount", global_texture_upload_count);
+ enumerator->AddTimeDeltaInSecondsF("globalTotalTextureUploadTimeInSeconds",
+ global_total_texture_upload_time);
+ enumerator->AddInt("textureUploadCount", texture_upload_count);
+ enumerator->AddTimeDeltaInSecondsF("totalTextureUploadTimeInSeconds",
+ total_texture_upload_time);
+ enumerator->AddTimeDeltaInSecondsF(
+ "globalTotalProcessingCommandsTimeInSeconds",
+ global_total_processing_commands_time);
+ enumerator->AddTimeDeltaInSecondsF("totalProcessingCommandsTimeInSeconds",
+ total_processing_commands_time);
+}
+
} // namespace content
« no previous file with comments | « content/common/gpu/gpu_rendering_stats.h ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698