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

Side by Side Diff: content/browser/gpu/gpu_data_manager.h

Issue 9963094: Revert 130258 - 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, 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
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/gpu/gpu_data_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/observer_list_threadsafe.h" 15 #include "base/observer_list_threadsafe.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/browser/gpu/gpu_performance_stats.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "content/common/gpu/gpu_feature_flags.h" 20 #include "content/common/gpu/gpu_feature_flags.h"
20 #include "content/public/common/gpu_info.h" 21 #include "content/public/common/gpu_info.h"
21 22
22 class CommandLine; 23 class CommandLine;
23 class GpuBlacklist; 24 class GpuBlacklist;
24 25
25 class CONTENT_EXPORT GpuDataManager { 26 class CONTENT_EXPORT GpuDataManager {
26 public: 27 public:
27 // Observers can register themselves via GpuDataManager::AddObserver, and 28 // Observers can register themselves via GpuDataManager::AddObserver, and
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Each problems has: 74 // Each problems has:
74 // { 75 // {
75 // "description": "Your GPU is too old", 76 // "description": "Your GPU is too old",
76 // "crBugs": [1234], 77 // "crBugs": [1234],
77 // "webkitBugs": [] 78 // "webkitBugs": []
78 // } 79 // }
79 // 80 //
80 // Caller is responsible for deleting the returned value. 81 // Caller is responsible for deleting the returned value.
81 Value* GetFeatureStatus(); 82 Value* GetFeatureStatus();
82 83
84 GpuPerformanceStats GetPerformanceStats() const;
85
83 std::string GetBlacklistVersion() const; 86 std::string GetBlacklistVersion() const;
84 87
85 void AddLogMessage(Value* msg); 88 void AddLogMessage(Value* msg);
86 89
87 const ListValue& log_messages() const; 90 const ListValue& log_messages() const;
88 91
89 // Can be called on any thread. 92 // Can be called on any thread.
90 GpuFeatureFlags GetGpuFeatureFlags(); 93 GpuFeatureFlags GetGpuFeatureFlags();
91 94
92 // This indicator might change because we could collect more GPU info or 95 // This indicator might change because we could collect more GPU info or
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 255
253 ListValue log_messages_; 256 ListValue log_messages_;
254 bool software_rendering_; 257 bool software_rendering_;
255 258
256 FilePath swiftshader_path_; 259 FilePath swiftshader_path_;
257 260
258 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 261 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
259 }; 262 };
260 263
261 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 264 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/gpu/gpu_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698