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

Unified Diff: content/browser/gpu/gpu_performance_stats.cc

Issue 9959085: Make it possible to blacklist gpu's based on the Windows experience index. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 9 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_performance_stats.cc
===================================================================
--- content/browser/gpu/gpu_performance_stats.cc (revision 130192)
+++ content/browser/gpu/gpu_performance_stats.cc (working copy)
@@ -1,32 +0,0 @@
-// 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.
-
-#include "content/browser/gpu/gpu_performance_stats.h"
-
-#include "base/stringprintf.h"
-
-namespace {
-DictionaryValue* NewDescriptionValuePairFromFloat(const std::string& desc,
- float value) {
- DictionaryValue* dict = new DictionaryValue();
- dict->SetString("description", desc);
- dict->SetString("value", base::StringPrintf("%.1f", value));
- return dict;
-}
-} // namespace
-
-#if !defined(OS_WIN)
-// No data for other operating systems yet, just return 0.0s.
-GpuPerformanceStats GpuPerformanceStats::RetrieveGpuPerformanceStats() {
- return GpuPerformanceStats();
-}
-#endif
-
-base::Value* GpuPerformanceStats::ToValue() const {
- ListValue* result = new ListValue();
- result->Append(NewDescriptionValuePairFromFloat("Graphics", graphics));
- result->Append(NewDescriptionValuePairFromFloat("Gaming", gaming));
- result->Append(NewDescriptionValuePairFromFloat("Overall", overall));
- return result;
-}
« 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