| 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/browser/gpu/gpu_performance_stats.h" | 5 #include "content/browser/gpu/gpu_performance_stats.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 DictionaryValue* NewDescriptionValuePairFromFloat(const std::string& desc, | 10 DictionaryValue* NewDescriptionValuePairFromFloat(const std::string& desc, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 base::Value* GpuPerformanceStats::ToValue() const { | 26 base::Value* GpuPerformanceStats::ToValue() const { |
| 27 ListValue* result = new ListValue(); | 27 ListValue* result = new ListValue(); |
| 28 result->Append(NewDescriptionValuePairFromFloat("Graphics", graphics)); | 28 result->Append(NewDescriptionValuePairFromFloat("Graphics", graphics)); |
| 29 result->Append(NewDescriptionValuePairFromFloat("Gaming", gaming)); | 29 result->Append(NewDescriptionValuePairFromFloat("Gaming", gaming)); |
| 30 result->Append(NewDescriptionValuePairFromFloat("Overall", overall)); | 30 result->Append(NewDescriptionValuePairFromFloat("Overall", overall)); |
| 31 return result; | 31 return result; |
| 32 } | 32 } |
| OLD | NEW |