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

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

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, 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
« no previous file with comments | « cc/rendering_stats.cc ('k') | content/common/gpu/gpu_rendering_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_rendering_stats.h
diff --git a/content/common/gpu/gpu_rendering_stats.h b/content/common/gpu/gpu_rendering_stats.h
index e7cad9160439626ba8d05f71e964d1be06cf4539..e2f15f78ef5b548ca6946372413d731affa8f8bf 100644
--- a/content/common/gpu/gpu_rendering_stats.h
+++ b/content/common/gpu/gpu_rendering_stats.h
@@ -6,6 +6,7 @@
#define CONTENT_COMMON_GPU_GPU_RENDERING_STATS_H_
#include "base/time.h"
+#include "cc/rendering_stats.h"
#include "content/common/content_export.h"
namespace content {
@@ -20,6 +21,11 @@ struct CONTENT_EXPORT GpuRenderingStats {
base::TimeDelta total_texture_upload_time;
base::TimeDelta global_total_processing_commands_time;
base::TimeDelta total_processing_commands_time;
+ // Note: when adding new members, please remember to update enumerateFields
+ // in gpu_rendering_stats.cc.
+
+ // Outputs the fields in this structure to the provided enumerator.
+ void EnumerateFields(cc::RenderingStats::Enumerator* enumerator) const;
};
} // namespace content
« no previous file with comments | « cc/rendering_stats.cc ('k') | content/common/gpu/gpu_rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698