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 |