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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // On other platforms, it's the same as IsEsentialGpuInfoAvailable(). | 68 // On other platforms, it's the same as IsEsentialGpuInfoAvailable(). |
69 virtual bool IsCompleteGpuInfoAvailable() const = 0; | 69 virtual bool IsCompleteGpuInfoAvailable() const = 0; |
70 | 70 |
71 // Requests that the GPU process report its current video memory usage stats, | 71 // Requests that the GPU process report its current video memory usage stats, |
72 // which can be retrieved via the GPU data manager's on-update function. | 72 // which can be retrieved via the GPU data manager's on-update function. |
73 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; | 73 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; |
74 | 74 |
75 // Returns true if SwiftShader should be used. | 75 // Returns true if SwiftShader should be used. |
76 virtual bool ShouldUseSwiftShader() const = 0; | 76 virtual bool ShouldUseSwiftShader() const = 0; |
77 | 77 |
78 // Register a path to SwiftShader. | |
79 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; | |
80 | |
81 // Registers/unregister |observer|. | 78 // Registers/unregister |observer|. |
82 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
83 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
84 | 81 |
85 // Allows a given domain previously blocked from accessing 3D APIs | 82 // Allows a given domain previously blocked from accessing 3D APIs |
86 // to access them again. | 83 // to access them again. |
87 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; | 84 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; |
88 | 85 |
89 // Set GL strings. This triggers a re-calculation of GPU blacklist | 86 // Set GL strings. This triggers a re-calculation of GPU blacklist |
90 // decision. | 87 // decision. |
(...skipping 20 matching lines...) Expand all Loading... |
111 // the backlists decision and applying commandline switches. | 108 // the backlists decision and applying commandline switches. |
112 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; | 109 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; |
113 | 110 |
114 protected: | 111 protected: |
115 virtual ~GpuDataManager() {} | 112 virtual ~GpuDataManager() {} |
116 }; | 113 }; |
117 | 114 |
118 }; // namespace content | 115 }; // namespace content |
119 | 116 |
120 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 117 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
OLD | NEW |