| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 GetGpuProcessHandlesCallback; | 33 GetGpuProcessHandlesCallback; |
| 34 | 34 |
| 35 // Getter for the singleton. | 35 // Getter for the singleton. |
| 36 CONTENT_EXPORT static GpuDataManager* GetInstance(); | 36 CONTENT_EXPORT static GpuDataManager* GetInstance(); |
| 37 | 37 |
| 38 virtual void InitializeForTesting(const std::string& gpu_blacklist_json, | 38 virtual void InitializeForTesting(const std::string& gpu_blacklist_json, |
| 39 const gpu::GPUInfo& gpu_info) = 0; | 39 const gpu::GPUInfo& gpu_info) = 0; |
| 40 | 40 |
| 41 virtual bool IsFeatureBlacklisted(int feature) const = 0; | 41 virtual bool IsFeatureBlacklisted(int feature) const = 0; |
| 42 virtual bool IsFeatureEnabled(int feature) const = 0; | 42 virtual bool IsFeatureEnabled(int feature) const = 0; |
| 43 virtual bool IsWebGLEnabled() const = 0; |
| 43 | 44 |
| 44 virtual gpu::GPUInfo GetGPUInfo() const = 0; | 45 virtual gpu::GPUInfo GetGPUInfo() const = 0; |
| 45 | 46 |
| 46 // Retrieves a list of process handles for all gpu processes. | 47 // Retrieves a list of process handles for all gpu processes. |
| 47 virtual void GetGpuProcessHandles( | 48 virtual void GetGpuProcessHandles( |
| 48 const GetGpuProcessHandlesCallback& callback) const = 0; | 49 const GetGpuProcessHandlesCallback& callback) const = 0; |
| 49 | 50 |
| 50 // This indicator might change because we could collect more GPU info or | 51 // This indicator might change because we could collect more GPU info or |
| 51 // because the GPU blacklist could be updated. | 52 // because the GPU blacklist could be updated. |
| 52 // If this returns false, any further GPU access, including launching GPU | 53 // If this returns false, any further GPU access, including launching GPU |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // the backlists decision and applying commandline switches. | 115 // the backlists decision and applying commandline switches. |
| 115 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; | 116 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; |
| 116 | 117 |
| 117 protected: | 118 protected: |
| 118 virtual ~GpuDataManager() {} | 119 virtual ~GpuDataManager() {} |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 }; // namespace content | 122 }; // namespace content |
| 122 | 123 |
| 123 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |