OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/gpu_rendering_stats.h" | 5 #include "content/common/gpu/gpu_rendering_stats.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 GpuRenderingStats::GpuRenderingStats() | 9 GpuRenderingStats::GpuRenderingStats() |
10 : global_texture_upload_count(0), | 10 : global_texture_upload_count(0), |
11 texture_upload_count(0) { | 11 texture_upload_count(0) { |
12 } | 12 } |
13 | 13 |
14 GpuRenderingStats::~GpuRenderingStats() { | 14 GpuRenderingStats::~GpuRenderingStats() { |
15 } | 15 } |
16 | 16 |
| 17 void GpuRenderingStats::enumerateFields(Enumerator* enumerator) const { |
| 18 enumerator->addInt("globalTextureUploadCount", global_texture_upload_count); |
| 19 enumerator->addTimeDeltaInSecondsF("globalTotalTextureUploadTimeInSeconds", |
| 20 global_total_texture_upload_time); |
| 21 enumerator->addInt("textureUploadCount", texture_upload_count); |
| 22 enumerator->addTimeDeltaInSecondsF("totalTextureUploadTimeInSeconds", |
| 23 total_texture_upload_time); |
| 24 enumerator->addTimeDeltaInSecondsF( |
| 25 "globalTotalProcessingCommandsTimeInSeconds", |
| 26 global_total_processing_commands_time); |
| 27 enumerator->addTimeDeltaInSecondsF("totalProcessingCommandsTimeInSeconds", |
| 28 total_processing_commands_time); |
| 29 } |
| 30 |
17 } // namespace content | 31 } // namespace content |
OLD | NEW |