| 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 10 matching lines...) Expand all Loading... |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 class CONTENT_EXPORT GpuDataManagerImplPrivate { | 23 class CONTENT_EXPORT GpuDataManagerImplPrivate { |
| 24 public: | 24 public: |
| 25 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); | 25 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); |
| 26 | 26 |
| 27 void InitializeForTesting( | 27 void InitializeForTesting( |
| 28 const std::string& gpu_blacklist_json, | 28 const std::string& gpu_blacklist_json, |
| 29 const gpu::GPUInfo& gpu_info); | 29 const gpu::GPUInfo& gpu_info); |
| 30 bool IsFeatureBlacklisted(int feature) const; | 30 bool IsFeatureBlacklisted(int feature) const; |
| 31 bool IsDriverBugWorkaroundActive(int feature) const; |
| 31 gpu::GPUInfo GetGPUInfo() const; | 32 gpu::GPUInfo GetGPUInfo() const; |
| 32 void GetGpuProcessHandles( | 33 void GetGpuProcessHandles( |
| 33 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | 34 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; |
| 34 bool GpuAccessAllowed(std::string* reason) const; | 35 bool GpuAccessAllowed(std::string* reason) const; |
| 35 void RequestCompleteGpuInfoIfNeeded(); | 36 void RequestCompleteGpuInfoIfNeeded(); |
| 36 bool IsCompleteGpuInfoAvailable() const; | 37 bool IsCompleteGpuInfoAvailable() const; |
| 37 void RequestVideoMemoryUsageStatsUpdate() const; | 38 void RequestVideoMemoryUsageStatsUpdate() const; |
| 38 bool ShouldUseSwiftShader() const; | 39 bool ShouldUseSwiftShader() const; |
| 39 void RegisterSwiftShaderPath(const base::FilePath& path); | 40 void RegisterSwiftShaderPath(const base::FilePath& path); |
| 40 void AddObserver(GpuDataManagerObserver* observer); | 41 void AddObserver(GpuDataManagerObserver* observer); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 247 |
| 247 bool use_software_compositor_; | 248 bool use_software_compositor_; |
| 248 | 249 |
| 249 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 250 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 } // namespace content | 253 } // namespace content |
| 253 | 254 |
| 254 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 255 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| 255 | 256 |
| OLD | NEW |