| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 bool IsDriverBugWorkaroundActive(int feature) const; | 48 bool IsDriverBugWorkaroundActive(int feature) const; |
| 49 gpu::GPUInfo GetGPUInfo() const; | 49 gpu::GPUInfo GetGPUInfo() const; |
| 50 void GetGpuProcessHandles( | 50 void GetGpuProcessHandles( |
| 51 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | 51 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; |
| 52 bool GpuAccessAllowed(std::string* reason) const; | 52 bool GpuAccessAllowed(std::string* reason) const; |
| 53 void RequestCompleteGpuInfoIfNeeded(); | 53 void RequestCompleteGpuInfoIfNeeded(); |
| 54 bool IsEssentialGpuInfoAvailable() const; | 54 bool IsEssentialGpuInfoAvailable() const; |
| 55 bool IsCompleteGpuInfoAvailable() const; | 55 bool IsCompleteGpuInfoAvailable() const; |
| 56 void RequestVideoMemoryUsageStatsUpdate() const; | 56 void RequestVideoMemoryUsageStatsUpdate() const; |
| 57 bool ShouldUseSwiftShader() const; | 57 bool ShouldUseSwiftShader() const; |
| 58 void RegisterSwiftShaderPath(const base::FilePath& path); | |
| 59 void AddObserver(GpuDataManagerObserver* observer); | 58 void AddObserver(GpuDataManagerObserver* observer); |
| 60 void RemoveObserver(GpuDataManagerObserver* observer); | 59 void RemoveObserver(GpuDataManagerObserver* observer); |
| 61 void UnblockDomainFrom3DAPIs(const GURL& url); | 60 void UnblockDomainFrom3DAPIs(const GURL& url); |
| 62 void SetGLStrings(const std::string& gl_vendor, | 61 void SetGLStrings(const std::string& gl_vendor, |
| 63 const std::string& gl_renderer, | 62 const std::string& gl_renderer, |
| 64 const std::string& gl_version); | 63 const std::string& gl_version); |
| 65 void GetGLStrings(std::string* gl_vendor, | 64 void GetGLStrings(std::string* gl_vendor, |
| 66 std::string* gl_renderer, | 65 std::string* gl_renderer, |
| 67 std::string* gl_version); | 66 std::string* gl_version); |
| 68 void DisableHardwareAcceleration(); | 67 void DisableHardwareAcceleration(); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 244 |
| 246 std::unique_ptr<gpu::GpuBlacklist> gpu_blacklist_; | 245 std::unique_ptr<gpu::GpuBlacklist> gpu_blacklist_; |
| 247 std::unique_ptr<gpu::GpuDriverBugList> gpu_driver_bug_list_; | 246 std::unique_ptr<gpu::GpuDriverBugList> gpu_driver_bug_list_; |
| 248 | 247 |
| 249 const scoped_refptr<GpuDataManagerObserverList> observer_list_; | 248 const scoped_refptr<GpuDataManagerObserverList> observer_list_; |
| 250 | 249 |
| 251 std::vector<LogMessage> log_messages_; | 250 std::vector<LogMessage> log_messages_; |
| 252 | 251 |
| 253 bool use_swiftshader_; | 252 bool use_swiftshader_; |
| 254 | 253 |
| 255 base::FilePath swiftshader_path_; | |
| 256 | |
| 257 // Current card force-blacklisted due to GPU crashes, or disabled through | 254 // Current card force-blacklisted due to GPU crashes, or disabled through |
| 258 // the --disable-gpu commandline switch. | 255 // the --disable-gpu commandline switch. |
| 259 bool card_blacklisted_; | 256 bool card_blacklisted_; |
| 260 | 257 |
| 261 // We disable histogram stuff in testing, especially in unit tests because | 258 // We disable histogram stuff in testing, especially in unit tests because |
| 262 // they cause random failures. | 259 // they cause random failures. |
| 263 bool update_histograms_; | 260 bool update_histograms_; |
| 264 | 261 |
| 265 DomainBlockMap blocked_domains_; | 262 DomainBlockMap blocked_domains_; |
| 266 mutable std::list<base::Time> timestamps_of_gpu_resets_; | 263 mutable std::list<base::Time> timestamps_of_gpu_resets_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 284 // If one tries to call a member before initialization then it is defered | 281 // If one tries to call a member before initialization then it is defered |
| 285 // until Initialize() is completed. | 282 // until Initialize() is completed. |
| 286 std::vector<base::Closure> post_init_tasks_; | 283 std::vector<base::Closure> post_init_tasks_; |
| 287 | 284 |
| 288 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 285 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 289 }; | 286 }; |
| 290 | 287 |
| 291 } // namespace content | 288 } // namespace content |
| 292 | 289 |
| 293 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 290 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |