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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void AddObserver(GpuDataManagerObserver* observer) override; | 88 void AddObserver(GpuDataManagerObserver* observer) override; |
89 void RemoveObserver(GpuDataManagerObserver* observer) override; | 89 void RemoveObserver(GpuDataManagerObserver* observer) override; |
90 void UnblockDomainFrom3DAPIs(const GURL& url) override; | 90 void UnblockDomainFrom3DAPIs(const GURL& url) override; |
91 void SetGLStrings(const std::string& gl_vendor, | 91 void SetGLStrings(const std::string& gl_vendor, |
92 const std::string& gl_renderer, | 92 const std::string& gl_renderer, |
93 const std::string& gl_version) override; | 93 const std::string& gl_version) override; |
94 void GetGLStrings(std::string* gl_vendor, | 94 void GetGLStrings(std::string* gl_vendor, |
95 std::string* gl_renderer, | 95 std::string* gl_renderer, |
96 std::string* gl_version) override; | 96 std::string* gl_version) override; |
97 void DisableHardwareAcceleration() override; | 97 void DisableHardwareAcceleration() override; |
| 98 bool HardwareAccelerationEnabled() const override; |
98 bool CanUseGpuBrowserCompositor() const override; | 99 bool CanUseGpuBrowserCompositor() const override; |
99 void GetDisabledExtensions(std::string* disabled_extensions) const override; | 100 void GetDisabledExtensions(std::string* disabled_extensions) const override; |
100 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 101 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
101 | 102 |
102 // This collects preliminary GPU info, load GpuBlacklist, and compute the | 103 // This collects preliminary GPU info, load GpuBlacklist, and compute the |
103 // preliminary blacklisted features; it should only be called at browser | 104 // preliminary blacklisted features; it should only be called at browser |
104 // startup time in UI thread before the IO restriction is turned on. | 105 // startup time in UI thread before the IO restriction is turned on. |
105 void Initialize(); | 106 void Initialize(); |
106 | 107 |
107 // Only update if the current GPUInfo is not finalized. If blacklist is | 108 // Only update if the current GPUInfo is not finalized. If blacklist is |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 226 |
226 mutable base::Lock lock_; | 227 mutable base::Lock lock_; |
227 std::unique_ptr<GpuDataManagerImplPrivate> private_; | 228 std::unique_ptr<GpuDataManagerImplPrivate> private_; |
228 | 229 |
229 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 230 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
230 }; | 231 }; |
231 | 232 |
232 } // namespace content | 233 } // namespace content |
233 | 234 |
234 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 235 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |