| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class CONTENT_EXPORT GpuDataManagerImplPrivate { | 38 class CONTENT_EXPORT GpuDataManagerImplPrivate { |
| 39 public: | 39 public: |
| 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); | 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); |
| 41 | 41 |
| 42 void InitializeForTesting( | 42 void InitializeForTesting( |
| 43 const std::string& gpu_blacklist_json, | 43 const std::string& gpu_blacklist_json, |
| 44 const gpu::GPUInfo& gpu_info); | 44 const gpu::GPUInfo& gpu_info); |
| 45 bool IsFeatureBlacklisted(int feature) const; | 45 bool IsFeatureBlacklisted(int feature) const; |
| 46 bool IsFeatureEnabled(int feature) const; | 46 bool IsFeatureEnabled(int feature) const; |
| 47 bool IsWebGLEnabled() const; |
| 47 bool IsDriverBugWorkaroundActive(int feature) const; | 48 bool IsDriverBugWorkaroundActive(int feature) const; |
| 48 gpu::GPUInfo GetGPUInfo() const; | 49 gpu::GPUInfo GetGPUInfo() const; |
| 49 void GetGpuProcessHandles( | 50 void GetGpuProcessHandles( |
| 50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | 51 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; |
| 51 bool GpuAccessAllowed(std::string* reason) const; | 52 bool GpuAccessAllowed(std::string* reason) const; |
| 52 void RequestCompleteGpuInfoIfNeeded(); | 53 void RequestCompleteGpuInfoIfNeeded(); |
| 53 bool IsEssentialGpuInfoAvailable() const; | 54 bool IsEssentialGpuInfoAvailable() const; |
| 54 bool IsCompleteGpuInfoAvailable() const; | 55 bool IsCompleteGpuInfoAvailable() const; |
| 55 void RequestVideoMemoryUsageStatsUpdate() const; | 56 void RequestVideoMemoryUsageStatsUpdate() const; |
| 56 bool ShouldUseSwiftShader() const; | 57 bool ShouldUseSwiftShader() const; |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // If one tries to call a member before initialization then it is defered | 284 // If one tries to call a member before initialization then it is defered |
| 284 // until Initialize() is completed. | 285 // until Initialize() is completed. |
| 285 std::vector<base::Closure> post_init_tasks_; | 286 std::vector<base::Closure> post_init_tasks_; |
| 286 | 287 |
| 287 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 288 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 288 }; | 289 }; |
| 289 | 290 |
| 290 } // namespace content | 291 } // namespace content |
| 291 | 292 |
| 292 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 293 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |