OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_IMPL_PRIVATE_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 20 matching lines...) Expand all Loading... |
31 void InitializeForTesting( | 31 void InitializeForTesting( |
32 const std::string& gpu_blacklist_json, | 32 const std::string& gpu_blacklist_json, |
33 const gpu::GPUInfo& gpu_info); | 33 const gpu::GPUInfo& gpu_info); |
34 bool IsFeatureBlacklisted(int feature) const; | 34 bool IsFeatureBlacklisted(int feature) const; |
35 bool IsDriverBugWorkaroundActive(int feature) const; | 35 bool IsDriverBugWorkaroundActive(int feature) const; |
36 gpu::GPUInfo GetGPUInfo() const; | 36 gpu::GPUInfo GetGPUInfo() const; |
37 void GetGpuProcessHandles( | 37 void GetGpuProcessHandles( |
38 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | 38 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; |
39 bool GpuAccessAllowed(std::string* reason) const; | 39 bool GpuAccessAllowed(std::string* reason) const; |
40 void RequestCompleteGpuInfoIfNeeded(); | 40 void RequestCompleteGpuInfoIfNeeded(); |
| 41 bool IsEssentialGpuInfoAvailable() const; |
41 bool IsCompleteGpuInfoAvailable() const; | 42 bool IsCompleteGpuInfoAvailable() const; |
42 void RequestVideoMemoryUsageStatsUpdate() const; | 43 void RequestVideoMemoryUsageStatsUpdate() const; |
43 bool ShouldUseSwiftShader() const; | 44 bool ShouldUseSwiftShader() const; |
44 void RegisterSwiftShaderPath(const base::FilePath& path); | 45 void RegisterSwiftShaderPath(const base::FilePath& path); |
45 void AddObserver(GpuDataManagerObserver* observer); | 46 void AddObserver(GpuDataManagerObserver* observer); |
46 void RemoveObserver(GpuDataManagerObserver* observer); | 47 void RemoveObserver(GpuDataManagerObserver* observer); |
47 void UnblockDomainFrom3DAPIs(const GURL& url); | 48 void UnblockDomainFrom3DAPIs(const GURL& url); |
48 void DisableGpuWatchdog(); | 49 void DisableGpuWatchdog(); |
49 void SetGLStrings(const std::string& gl_vendor, | 50 void SetGLStrings(const std::string& gl_vendor, |
50 const std::string& gl_renderer, | 51 const std::string& gl_renderer, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // True if all future Initialize calls should be ignored. | 258 // True if all future Initialize calls should be ignored. |
258 bool finalized_; | 259 bool finalized_; |
259 | 260 |
260 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 261 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
261 }; | 262 }; |
262 | 263 |
263 } // namespace content | 264 } // namespace content |
264 | 265 |
265 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 266 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
266 | 267 |
OLD | NEW |