| 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 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); | 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); |
| 41 | 41 |
| 42 void InitializeForTesting(const gpu::GpuControlListData& gpu_blacklist_data, | 42 void InitializeForTesting(const gpu::GpuControlListData& gpu_blacklist_data, |
| 43 const gpu::GPUInfo& gpu_info); | 43 const gpu::GPUInfo& gpu_info); |
| 44 bool IsFeatureBlacklisted(int feature) const; | 44 bool IsFeatureBlacklisted(int feature) const; |
| 45 bool IsFeatureEnabled(int feature) const; | 45 bool IsFeatureEnabled(int feature) const; |
| 46 bool IsWebGLEnabled() const; | 46 bool IsWebGLEnabled() const; |
| 47 bool IsDriverBugWorkaroundActive(int feature) const; | 47 bool IsDriverBugWorkaroundActive(int feature) const; |
| 48 gpu::GPUInfo GetGPUInfo() const; | 48 gpu::GPUInfo GetGPUInfo() const; |
| 49 void GetGpuProcessHandles( | |
| 50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | |
| 51 bool GpuAccessAllowed(std::string* reason) const; | 49 bool GpuAccessAllowed(std::string* reason) const; |
| 52 void RequestCompleteGpuInfoIfNeeded(); | 50 void RequestCompleteGpuInfoIfNeeded(); |
| 53 bool IsEssentialGpuInfoAvailable() const; | 51 bool IsEssentialGpuInfoAvailable() const; |
| 54 bool IsCompleteGpuInfoAvailable() const; | 52 bool IsCompleteGpuInfoAvailable() const; |
| 55 void RequestVideoMemoryUsageStatsUpdate() const; | 53 void RequestVideoMemoryUsageStatsUpdate() const; |
| 56 bool ShouldUseSwiftShader() const; | 54 bool ShouldUseSwiftShader() const; |
| 57 void AddObserver(GpuDataManagerObserver* observer); | 55 void AddObserver(GpuDataManagerObserver* observer); |
| 58 void RemoveObserver(GpuDataManagerObserver* observer); | 56 void RemoveObserver(GpuDataManagerObserver* observer); |
| 59 void UnblockDomainFrom3DAPIs(const GURL& url); | 57 void UnblockDomainFrom3DAPIs(const GURL& url); |
| 60 void SetGLStrings(const std::string& gl_vendor, | 58 void SetGLStrings(const std::string& gl_vendor, |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // If one tries to call a member before initialization then it is defered | 278 // If one tries to call a member before initialization then it is defered |
| 281 // until Initialize() is completed. | 279 // until Initialize() is completed. |
| 282 std::vector<base::Closure> post_init_tasks_; | 280 std::vector<base::Closure> post_init_tasks_; |
| 283 | 281 |
| 284 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 282 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 285 }; | 283 }; |
| 286 | 284 |
| 287 } // namespace content | 285 } // namespace content |
| 288 | 286 |
| 289 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 287 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |