| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 BlacklistWebGLForTesting() override; | 69 void BlacklistWebGLForTesting() override; |
| 70 bool IsFeatureBlacklisted(int feature) const override; | 70 bool IsFeatureBlacklisted(int feature) const override; |
| 71 bool IsFeatureEnabled(int feature) const override; | 71 bool IsFeatureEnabled(int feature) const override; |
| 72 bool IsWebGLEnabled() const override; | 72 bool IsWebGLEnabled() const override; |
| 73 gpu::GPUInfo GetGPUInfo() const override; | 73 gpu::GPUInfo GetGPUInfo() const override; |
| 74 void GetGpuProcessHandles( | |
| 75 const GetGpuProcessHandlesCallback& callback) const override; | |
| 76 bool GpuAccessAllowed(std::string* reason) const override; | 74 bool GpuAccessAllowed(std::string* reason) const override; |
| 77 void RequestCompleteGpuInfoIfNeeded() override; | 75 void RequestCompleteGpuInfoIfNeeded() override; |
| 78 bool IsEssentialGpuInfoAvailable() const override; | 76 bool IsEssentialGpuInfoAvailable() const override; |
| 79 bool IsCompleteGpuInfoAvailable() const override; | 77 bool IsCompleteGpuInfoAvailable() const override; |
| 80 void RequestVideoMemoryUsageStatsUpdate() const override; | 78 void RequestVideoMemoryUsageStatsUpdate() const override; |
| 81 bool ShouldUseSwiftShader() const override; | 79 bool ShouldUseSwiftShader() const override; |
| 82 // TODO(kbr): the threading model for the GpuDataManagerObservers is | 80 // TODO(kbr): the threading model for the GpuDataManagerObservers is |
| 83 // not well defined, and it's impossible for callers to correctly | 81 // not well defined, and it's impossible for callers to correctly |
| 84 // delete observers from anywhere except in one of the observer's | 82 // delete observers from anywhere except in one of the observer's |
| 85 // notification methods. Observer addition and removal, and their | 83 // notification methods. Observer addition and removal, and their |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 226 |
| 229 mutable base::Lock lock_; | 227 mutable base::Lock lock_; |
| 230 std::unique_ptr<GpuDataManagerImplPrivate> private_; | 228 std::unique_ptr<GpuDataManagerImplPrivate> private_; |
| 231 | 229 |
| 232 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 230 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 233 }; | 231 }; |
| 234 | 232 |
| 235 } // namespace content | 233 } // namespace content |
| 236 | 234 |
| 237 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 235 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |