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

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

Issue 2756793003: Move GPU blacklist and driver bug workaround list from json to data struct. (Closed)
Patch Set: pure rebase Created 3 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
« no previous file with comments | « content/browser/resources/gpu/info_view.js ('k') | content/test/BUILD.gn » ('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_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // This class is fully thread-safe. 25 // This class is fully thread-safe.
26 class GpuDataManager { 26 class GpuDataManager {
27 public: 27 public:
28 typedef base::Callback<void(const std::list<base::ProcessHandle>&)> 28 typedef base::Callback<void(const std::list<base::ProcessHandle>&)>
29 GetGpuProcessHandlesCallback; 29 GetGpuProcessHandlesCallback;
30 30
31 // Getter for the singleton. 31 // Getter for the singleton.
32 CONTENT_EXPORT static GpuDataManager* GetInstance(); 32 CONTENT_EXPORT static GpuDataManager* GetInstance();
33 33
34 virtual void InitializeForTesting(const std::string& gpu_blacklist_json, 34 // This is only called by extensions testing.
35 const gpu::GPUInfo& gpu_info) = 0; 35 virtual void BlacklistWebGLForTesting() = 0;
36 36
37 virtual bool IsFeatureBlacklisted(int feature) const = 0; 37 virtual bool IsFeatureBlacklisted(int feature) const = 0;
38 virtual bool IsFeatureEnabled(int feature) const = 0; 38 virtual bool IsFeatureEnabled(int feature) const = 0;
39 virtual bool IsWebGLEnabled() const = 0; 39 virtual bool IsWebGLEnabled() const = 0;
40 40
41 virtual gpu::GPUInfo GetGPUInfo() const = 0; 41 virtual gpu::GPUInfo GetGPUInfo() const = 0;
42 42
43 // Retrieves a list of process handles for all gpu processes. 43 // Retrieves a list of process handles for all gpu processes.
44 virtual void GetGpuProcessHandles( 44 virtual void GetGpuProcessHandles(
45 const GetGpuProcessHandlesCallback& callback) const = 0; 45 const GetGpuProcessHandlesCallback& callback) const = 0;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // the backlists decision and applying commandline switches. 108 // the backlists decision and applying commandline switches.
109 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; 109 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0;
110 110
111 protected: 111 protected:
112 virtual ~GpuDataManager() {} 112 virtual ~GpuDataManager() {}
113 }; 113 };
114 114
115 }; // namespace content 115 }; // namespace content
116 116
117 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 117 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/resources/gpu/info_view.js ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698