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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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(
18 cc::RenderingStats::Enumerator* enumerator) const {
19 enumerator->AddInt("globalTextureUploadCount", global_texture_upload_count);
20 enumerator->AddTimeDeltaInSecondsF("globalTotalTextureUploadTimeInSeconds",
21 global_total_texture_upload_time);
22 enumerator->AddInt("textureUploadCount", texture_upload_count);
23 enumerator->AddTimeDeltaInSecondsF("totalTextureUploadTimeInSeconds",
24 total_texture_upload_time);
25 enumerator->AddTimeDeltaInSecondsF(
26 "globalTotalProcessingCommandsTimeInSeconds",
27 global_total_processing_commands_time);
28 enumerator->AddTimeDeltaInSecondsF("totalProcessingCommandsTimeInSeconds",
29 total_processing_commands_time);
30 }
31
17 } // namespace content 32 } // namespace content
OLDNEW
« 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