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

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: Updating gpu_rendering_stats. 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
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..decb40786163966e1de2f4f15994d372736b6cc8 100644
--- a/content/common/gpu/gpu_rendering_stats.cc
+++ b/content/common/gpu/gpu_rendering_stats.cc
@@ -14,4 +14,18 @@ GpuRenderingStats::GpuRenderingStats()
GpuRenderingStats::~GpuRenderingStats() {
}
+void GpuRenderingStats::enumerateFields(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

Powered by Google App Engine
This is Rietveld 408576698