| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 class CONTENT_EXPORT GpuDataManagerImplPrivate { | 33 class CONTENT_EXPORT GpuDataManagerImplPrivate { |
| 34 public: | 34 public: |
| 35 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); | 35 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); |
| 36 | 36 |
| 37 void InitializeForTesting( | 37 void InitializeForTesting( |
| 38 const std::string& gpu_blacklist_json, | 38 const std::string& gpu_blacklist_json, |
| 39 const gpu::GPUInfo& gpu_info); | 39 const gpu::GPUInfo& gpu_info); |
| 40 bool IsInitialized() const; |
| 40 bool IsFeatureBlacklisted(int feature) const; | 41 bool IsFeatureBlacklisted(int feature) const; |
| 41 bool IsDriverBugWorkaroundActive(int feature) const; | 42 bool IsDriverBugWorkaroundActive(int feature) const; |
| 42 gpu::GPUInfo GetGPUInfo() const; | 43 gpu::GPUInfo GetGPUInfo() const; |
| 43 void GetGpuProcessHandles( | 44 void GetGpuProcessHandles( |
| 44 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; | 45 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; |
| 45 bool GpuAccessAllowed(std::string* reason) const; | 46 bool GpuAccessAllowed(std::string* reason) const; |
| 46 void RequestCompleteGpuInfoIfNeeded(); | 47 void RequestCompleteGpuInfoIfNeeded(); |
| 47 bool IsEssentialGpuInfoAvailable() const; | 48 bool IsEssentialGpuInfoAvailable() const; |
| 48 bool IsCompleteGpuInfoAvailable() const; | 49 bool IsCompleteGpuInfoAvailable() const; |
| 49 void RequestVideoMemoryUsageStatsUpdate() const; | 50 void RequestVideoMemoryUsageStatsUpdate() const; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 bool finalized_; | 282 bool finalized_; |
| 282 | 283 |
| 283 std::string disabled_extensions_; | 284 std::string disabled_extensions_; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 286 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace content | 289 } // namespace content |
| 289 | 290 |
| 290 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 291 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |