| 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_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // Getter for the singleton. This will return NULL on failure. | 65 // Getter for the singleton. This will return NULL on failure. |
| 66 static GpuDataManagerImpl* GetInstance(); | 66 static GpuDataManagerImpl* GetInstance(); |
| 67 | 67 |
| 68 // GpuDataManager implementation. | 68 // GpuDataManager implementation. |
| 69 void InitializeForTesting(const std::string& gpu_blacklist_json, | 69 void InitializeForTesting(const std::string& gpu_blacklist_json, |
| 70 const gpu::GPUInfo& gpu_info) override; | 70 const gpu::GPUInfo& gpu_info) override; |
| 71 bool IsFeatureBlacklisted(int feature) const override; | 71 bool IsFeatureBlacklisted(int feature) const override; |
| 72 bool IsFeatureEnabled(int feature) const override; | 72 bool IsFeatureEnabled(int feature) const override; |
| 73 bool IsWebGLEnabled() const override; |
| 73 gpu::GPUInfo GetGPUInfo() const override; | 74 gpu::GPUInfo GetGPUInfo() const override; |
| 74 void GetGpuProcessHandles( | 75 void GetGpuProcessHandles( |
| 75 const GetGpuProcessHandlesCallback& callback) const override; | 76 const GetGpuProcessHandlesCallback& callback) const override; |
| 76 bool GpuAccessAllowed(std::string* reason) const override; | 77 bool GpuAccessAllowed(std::string* reason) const override; |
| 77 void RequestCompleteGpuInfoIfNeeded() override; | 78 void RequestCompleteGpuInfoIfNeeded() override; |
| 78 bool IsEssentialGpuInfoAvailable() const override; | 79 bool IsEssentialGpuInfoAvailable() const override; |
| 79 bool IsCompleteGpuInfoAvailable() const override; | 80 bool IsCompleteGpuInfoAvailable() const override; |
| 80 void RequestVideoMemoryUsageStatsUpdate() const override; | 81 void RequestVideoMemoryUsageStatsUpdate() const override; |
| 81 bool ShouldUseSwiftShader() const override; | 82 bool ShouldUseSwiftShader() const override; |
| 82 void RegisterSwiftShaderPath(const base::FilePath& path) override; | 83 void RegisterSwiftShaderPath(const base::FilePath& path) override; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 mutable base::Lock lock_; | 228 mutable base::Lock lock_; |
| 228 std::unique_ptr<GpuDataManagerImplPrivate> private_; | 229 std::unique_ptr<GpuDataManagerImplPrivate> private_; |
| 229 | 230 |
| 230 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 231 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace content | 234 } // namespace content |
| 234 | 235 |
| 235 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 236 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |