| 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 #ifndef CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 class CONTENT_EXPORT GpuPerformanceStats { | 11 class CONTENT_EXPORT GpuPerformanceStats { |
| 12 public: | 12 public: |
| 13 GpuPerformanceStats() : graphics(0.f), gaming(0.f), overall(0.f) { | 13 GpuPerformanceStats() : graphics(0.f), gaming(0.f), overall(0.f) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 static GpuPerformanceStats RetrieveGpuPerformanceStats(); | 16 static GpuPerformanceStats RetrieveGpuPerformanceStats(); |
| 17 | 17 |
| 18 base::Value* ToValue() const; | 18 base::Value* ToValue() const; |
| 19 | 19 |
| 20 float graphics; | 20 float graphics; |
| 21 float gaming; | 21 float gaming; |
| 22 float overall; | 22 float overall; |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 | 25 |
| 26 #endif // CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ | 26 #endif // CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_ |
| OLD | NEW |