| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // GpuDataManager implementation. | 60 // GpuDataManager implementation. |
| 61 virtual void InitializeForTesting( | 61 virtual void InitializeForTesting( |
| 62 const std::string& gpu_blacklist_json, | 62 const std::string& gpu_blacklist_json, |
| 63 const gpu::GPUInfo& gpu_info) OVERRIDE; | 63 const gpu::GPUInfo& gpu_info) OVERRIDE; |
| 64 virtual bool IsFeatureBlacklisted(int feature) const OVERRIDE; | 64 virtual bool IsFeatureBlacklisted(int feature) const OVERRIDE; |
| 65 virtual gpu::GPUInfo GetGPUInfo() const OVERRIDE; | 65 virtual gpu::GPUInfo GetGPUInfo() const OVERRIDE; |
| 66 virtual void GetGpuProcessHandles( | 66 virtual void GetGpuProcessHandles( |
| 67 const GetGpuProcessHandlesCallback& callback) const OVERRIDE; | 67 const GetGpuProcessHandlesCallback& callback) const OVERRIDE; |
| 68 virtual bool GpuAccessAllowed(std::string* reason) const OVERRIDE; | 68 virtual bool GpuAccessAllowed(std::string* reason) const OVERRIDE; |
| 69 virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE; | 69 virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE; |
| 70 virtual bool IsEssentialGpuInfoAvailable() const OVERRIDE; |
| 70 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE; | 71 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE; |
| 71 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; | 72 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; |
| 72 virtual bool ShouldUseSwiftShader() const OVERRIDE; | 73 virtual bool ShouldUseSwiftShader() const OVERRIDE; |
| 73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE; | 74 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE; |
| 74 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; | 75 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; |
| 75 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; | 76 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; |
| 76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; | 77 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; |
| 77 virtual void DisableGpuWatchdog() OVERRIDE; | 78 virtual void DisableGpuWatchdog() OVERRIDE; |
| 78 virtual void SetGLStrings(const std::string& gl_vendor, | 79 virtual void SetGLStrings(const std::string& gl_vendor, |
| 79 const std::string& gl_renderer, | 80 const std::string& gl_renderer, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 210 |
| 210 mutable base::Lock lock_; | 211 mutable base::Lock lock_; |
| 211 scoped_ptr<GpuDataManagerImplPrivate> private_; | 212 scoped_ptr<GpuDataManagerImplPrivate> private_; |
| 212 | 213 |
| 213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 214 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 } // namespace content | 217 } // namespace content |
| 217 | 218 |
| 218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 219 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |