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 IsCompleteGpuInfoAvailable() const OVERRIDE; | 70 virtual bool IsCompleteGpuInfoAvailable(bool includes_extra) const OVERRIDE; |
71 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; | 71 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; |
72 virtual bool ShouldUseSwiftShader() const OVERRIDE; | 72 virtual bool ShouldUseSwiftShader() const OVERRIDE; |
73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE; | 73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE; |
74 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; | 74 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; |
75 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; | 75 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; |
76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; | 76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; |
77 virtual void DisableGpuWatchdog() OVERRIDE; | 77 virtual void DisableGpuWatchdog() OVERRIDE; |
78 virtual void SetGLStrings(const std::string& gl_vendor, | 78 virtual void SetGLStrings(const std::string& gl_vendor, |
79 const std::string& gl_renderer, | 79 const std::string& gl_renderer, |
80 const std::string& gl_version) OVERRIDE; | 80 const std::string& gl_version) OVERRIDE; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 mutable base::Lock lock_; | 210 mutable base::Lock lock_; |
211 scoped_ptr<GpuDataManagerImplPrivate> private_; | 211 scoped_ptr<GpuDataManagerImplPrivate> private_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |