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

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

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 21 matching lines...) Expand all
32 public: 32 public:
33 typedef base::Callback<void(const std::list<base::ProcessHandle>&)> 33 typedef base::Callback<void(const std::list<base::ProcessHandle>&)>
34 GetGpuProcessHandlesCallback; 34 GetGpuProcessHandlesCallback;
35 35
36 // Getter for the singleton. 36 // Getter for the singleton.
37 CONTENT_EXPORT static GpuDataManager* GetInstance(); 37 CONTENT_EXPORT static GpuDataManager* GetInstance();
38 38
39 virtual void InitializeForTesting(const std::string& gpu_blacklist_json, 39 virtual void InitializeForTesting(const std::string& gpu_blacklist_json,
40 const gpu::GPUInfo& gpu_info) = 0; 40 const gpu::GPUInfo& gpu_info) = 0;
41 41
42 virtual bool IsInitialized() const = 0;
43
42 virtual bool IsFeatureBlacklisted(int feature) const = 0; 44 virtual bool IsFeatureBlacklisted(int feature) const = 0;
43 45
44 virtual gpu::GPUInfo GetGPUInfo() const = 0; 46 virtual gpu::GPUInfo GetGPUInfo() const = 0;
45 47
46 // Retrieves a list of process handles for all gpu processes. 48 // Retrieves a list of process handles for all gpu processes.
47 virtual void GetGpuProcessHandles( 49 virtual void GetGpuProcessHandles(
48 const GetGpuProcessHandlesCallback& callback) const = 0; 50 const GetGpuProcessHandlesCallback& callback) const = 0;
49 51
50 // This indicator might change because we could collect more GPU info or 52 // This indicator might change because we could collect more GPU info or
51 // because the GPU blacklist could be updated. 53 // because the GPU blacklist could be updated.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void GetDisabledExtensions( 116 virtual void GetDisabledExtensions(
115 std::string* disabled_extensions) const = 0; 117 std::string* disabled_extensions) const = 0;
116 118
117 protected: 119 protected:
118 virtual ~GpuDataManager() {} 120 virtual ~GpuDataManager() {}
119 }; 121 };
120 122
121 }; // namespace content 123 }; // namespace content
122 124
123 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 125 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698