| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 DOMAIN_BLOCK_STATUS_ALL_DOMAINS_BLOCKED, | 56 DOMAIN_BLOCK_STATUS_ALL_DOMAINS_BLOCKED, |
| 57 DOMAIN_BLOCK_STATUS_NOT_BLOCKED | 57 DOMAIN_BLOCK_STATUS_NOT_BLOCKED |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Getter for the singleton. This will return NULL on failure. | 60 // Getter for the singleton. This will return NULL on failure. |
| 61 static GpuDataManagerImpl* GetInstance(); | 61 static GpuDataManagerImpl* GetInstance(); |
| 62 | 62 |
| 63 // GpuDataManager implementation. | 63 // GpuDataManager implementation. |
| 64 void InitializeForTesting(const std::string& gpu_blacklist_json, | 64 void InitializeForTesting(const std::string& gpu_blacklist_json, |
| 65 const gpu::GPUInfo& gpu_info) override; | 65 const gpu::GPUInfo& gpu_info) override; |
| 66 bool IsInitialized() const override; |
| 66 bool IsFeatureBlacklisted(int feature) const override; | 67 bool IsFeatureBlacklisted(int feature) const override; |
| 67 gpu::GPUInfo GetGPUInfo() const override; | 68 gpu::GPUInfo GetGPUInfo() const override; |
| 68 void GetGpuProcessHandles( | 69 void GetGpuProcessHandles( |
| 69 const GetGpuProcessHandlesCallback& callback) const override; | 70 const GetGpuProcessHandlesCallback& callback) const override; |
| 70 bool GpuAccessAllowed(std::string* reason) const override; | 71 bool GpuAccessAllowed(std::string* reason) const override; |
| 71 void RequestCompleteGpuInfoIfNeeded() override; | 72 void RequestCompleteGpuInfoIfNeeded() override; |
| 72 bool IsEssentialGpuInfoAvailable() const override; | 73 bool IsEssentialGpuInfoAvailable() const override; |
| 73 bool IsCompleteGpuInfoAvailable() const override; | 74 bool IsCompleteGpuInfoAvailable() const override; |
| 74 void RequestVideoMemoryUsageStatsUpdate() const override; | 75 void RequestVideoMemoryUsageStatsUpdate() const override; |
| 75 bool ShouldUseSwiftShader() const override; | 76 bool ShouldUseSwiftShader() const override; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 220 |
| 220 mutable base::Lock lock_; | 221 mutable base::Lock lock_; |
| 221 scoped_ptr<GpuDataManagerImplPrivate> private_; | 222 scoped_ptr<GpuDataManagerImplPrivate> private_; |
| 222 | 223 |
| 223 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 224 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 } // namespace content | 227 } // namespace content |
| 227 | 228 |
| 228 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 229 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |