| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool IsFeatureEnabled(int feature) const override; | 72 bool IsFeatureEnabled(int feature) const override; |
| 73 gpu::GPUInfo GetGPUInfo() const override; | 73 gpu::GPUInfo GetGPUInfo() const override; |
| 74 void GetGpuProcessHandles( | 74 void GetGpuProcessHandles( |
| 75 const GetGpuProcessHandlesCallback& callback) const override; | 75 const GetGpuProcessHandlesCallback& callback) const override; |
| 76 bool GpuAccessAllowed(std::string* reason) const override; | 76 bool GpuAccessAllowed(std::string* reason) const override; |
| 77 void RequestCompleteGpuInfoIfNeeded() override; | 77 void RequestCompleteGpuInfoIfNeeded() override; |
| 78 bool IsEssentialGpuInfoAvailable() const override; | 78 bool IsEssentialGpuInfoAvailable() const override; |
| 79 bool IsCompleteGpuInfoAvailable() const override; | 79 bool IsCompleteGpuInfoAvailable() const override; |
| 80 void RequestVideoMemoryUsageStatsUpdate() const override; | 80 void RequestVideoMemoryUsageStatsUpdate() const override; |
| 81 bool ShouldUseSwiftShader() const override; | 81 bool ShouldUseSwiftShader() const override; |
| 82 void RegisterSwiftShaderPath(const base::FilePath& path) override; | |
| 83 // TODO(kbr): the threading model for the GpuDataManagerObservers is | 82 // TODO(kbr): the threading model for the GpuDataManagerObservers is |
| 84 // not well defined, and it's impossible for callers to correctly | 83 // not well defined, and it's impossible for callers to correctly |
| 85 // delete observers from anywhere except in one of the observer's | 84 // delete observers from anywhere except in one of the observer's |
| 86 // notification methods. Observer addition and removal, and their | 85 // notification methods. Observer addition and removal, and their |
| 87 // callbacks, should probably be required to occur on the UI thread. | 86 // callbacks, should probably be required to occur on the UI thread. |
| 88 void AddObserver(GpuDataManagerObserver* observer) override; | 87 void AddObserver(GpuDataManagerObserver* observer) override; |
| 89 void RemoveObserver(GpuDataManagerObserver* observer) override; | 88 void RemoveObserver(GpuDataManagerObserver* observer) override; |
| 90 void UnblockDomainFrom3DAPIs(const GURL& url) override; | 89 void UnblockDomainFrom3DAPIs(const GURL& url) override; |
| 91 void SetGLStrings(const std::string& gl_vendor, | 90 void SetGLStrings(const std::string& gl_vendor, |
| 92 const std::string& gl_renderer, | 91 const std::string& gl_renderer, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 224 |
| 226 mutable base::Lock lock_; | 225 mutable base::Lock lock_; |
| 227 std::unique_ptr<GpuDataManagerImplPrivate> private_; | 226 std::unique_ptr<GpuDataManagerImplPrivate> private_; |
| 228 | 227 |
| 229 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 228 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 230 }; | 229 }; |
| 231 | 230 |
| 232 } // namespace content | 231 } // namespace content |
| 233 | 232 |
| 234 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 233 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |