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

Side by Side Diff: content/browser/gpu/gpu_performance_stats.cc

Issue 9999002: Revert 130299 - Revert 130298 - Revert 130258 - Make it possible to blacklist gpu's based on the Wi… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 8 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 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/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
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 }
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_performance_stats.h ('k') | content/browser/gpu/gpu_performance_stats_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698