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

Unified Diff: content/public/common/gpu_rendering_stats.h

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add surface_id to GpuChannelMsg_CollectRenderingStats and collect both global and surface specific … Created 8 years, 4 months 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/public/common/gpu_rendering_stats.h
diff --git a/content/public/common/gpu_rendering_stats.h b/content/public/common/gpu_rendering_stats.h
new file mode 100644
index 0000000000000000000000000000000000000000..389f8acdb721c31a590a55f4e39d365cad5a0610
--- /dev/null
+++ b/content/public/common/gpu_rendering_stats.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_RENDERING_STATS_H_
+#define CONTENT_PUBLIC_COMMON_RENDERING_STATS_H_
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+struct CONTENT_EXPORT GpuRenderingStats {
+ GpuRenderingStats()
+ : globalTextureUploadCount(0),
+ globalTotalTextureUploadTimeInSeconds(0.f),
+ textureUploadCount(0),
+ totalTextureUploadTimeInSeconds(0.f) {}
+
+ int globalTextureUploadCount;
apatrick_chromium 2012/08/28 20:07:06 Google style is global_texture_upload_count.
+ float globalTotalTextureUploadTimeInSeconds;
nduca 2012/08/28 19:45:10 Can we use base::TimeTicks instead and convert to
+ int textureUploadCount;
+ float totalTextureUploadTimeInSeconds;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_RENDERING_STATS_H_

Powered by Google App Engine
This is Rietveld 408576698