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

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

Issue 9965096: Revert 130298 - Revert 130258 - Make it possible to blacklist gpu's based on the Windows experience… (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"
19 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
20 #include "content/common/gpu/gpu_feature_flags.h" 19 #include "content/common/gpu/gpu_feature_flags.h"
21 #include "content/public/common/gpu_info.h" 20 #include "content/public/common/gpu_info.h"
22 21
23 class CommandLine; 22 class CommandLine;
24 class GpuBlacklist; 23 class GpuBlacklist;
25 24
26 class CONTENT_EXPORT GpuDataManager { 25 class CONTENT_EXPORT GpuDataManager {
27 public: 26 public:
28 // Observers can register themselves via GpuDataManager::AddObserver, and 27 // Observers can register themselves via GpuDataManager::AddObserver, and
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Each problems has: 73 // Each problems has:
75 // { 74 // {
76 // "description": "Your GPU is too old", 75 // "description": "Your GPU is too old",
77 // "crBugs": [1234], 76 // "crBugs": [1234],
78 // "webkitBugs": [] 77 // "webkitBugs": []
79 // } 78 // }
80 // 79 //
81 // Caller is responsible for deleting the returned value. 80 // Caller is responsible for deleting the returned value.
82 Value* GetFeatureStatus(); 81 Value* GetFeatureStatus();
83 82
84 GpuPerformanceStats GetPerformanceStats() const;
85
86 std::string GetBlacklistVersion() const; 83 std::string GetBlacklistVersion() const;
87 84
88 void AddLogMessage(Value* msg); 85 void AddLogMessage(Value* msg);
89 86
90 const ListValue& log_messages() const; 87 const ListValue& log_messages() const;
91 88
92 // Can be called on any thread. 89 // Can be called on any thread.
93 GpuFeatureFlags GetGpuFeatureFlags(); 90 GpuFeatureFlags GetGpuFeatureFlags();
94 91
95 // This indicator might change because we could collect more GPU info or 92 // This indicator might change because we could collect more GPU info or
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 252
256 ListValue log_messages_; 253 ListValue log_messages_;
257 bool software_rendering_; 254 bool software_rendering_;
258 255
259 FilePath swiftshader_path_; 256 FilePath swiftshader_path_;
260 257
261 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 258 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
262 }; 259 };
263 260
264 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 261 #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