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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 void AddObserver(GpuDataManagerObserver* observer) override; | 80 void AddObserver(GpuDataManagerObserver* observer) override; |
81 void RemoveObserver(GpuDataManagerObserver* observer) override; | 81 void RemoveObserver(GpuDataManagerObserver* observer) override; |
82 void UnblockDomainFrom3DAPIs(const GURL& url) override; | 82 void UnblockDomainFrom3DAPIs(const GURL& url) override; |
83 void DisableGpuWatchdog() override; | 83 void DisableGpuWatchdog() override; |
84 void SetGLStrings(const std::string& gl_vendor, | 84 void SetGLStrings(const std::string& gl_vendor, |
85 const std::string& gl_renderer, | 85 const std::string& gl_renderer, |
86 const std::string& gl_version) override; | 86 const std::string& gl_version) override; |
87 void GetGLStrings(std::string* gl_vendor, | 87 void GetGLStrings(std::string* gl_vendor, |
88 std::string* gl_renderer, | 88 std::string* gl_renderer, |
89 std::string* gl_version) override; | 89 std::string* gl_version) override; |
90 void SetGpuDeviceName(const std::string& vendor, | |
Zhenyao Mo
2015/04/30 21:42:23
Per our discussion, you can just use existing SetG
| |
91 const std::string& device) override; | |
92 | |
90 void DisableHardwareAcceleration() override; | 93 void DisableHardwareAcceleration() override; |
91 bool CanUseGpuBrowserCompositor() const override; | 94 bool CanUseGpuBrowserCompositor() const override; |
92 | 95 |
93 // This collects preliminary GPU info, load GpuBlacklist, and compute the | 96 // This collects preliminary GPU info, load GpuBlacklist, and compute the |
94 // preliminary blacklisted features; it should only be called at browser | 97 // preliminary blacklisted features; it should only be called at browser |
95 // startup time in UI thread before the IO restriction is turned on. | 98 // startup time in UI thread before the IO restriction is turned on. |
96 void Initialize(); | 99 void Initialize(); |
97 | 100 |
98 // Only update if the current GPUInfo is not finalized. If blacklist is | 101 // Only update if the current GPUInfo is not finalized. If blacklist is |
99 // loaded, run through blacklist and update blacklisted features. | 102 // loaded, run through blacklist and update blacklisted features. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 | 218 |
216 mutable base::Lock lock_; | 219 mutable base::Lock lock_; |
217 scoped_ptr<GpuDataManagerImplPrivate> private_; | 220 scoped_ptr<GpuDataManagerImplPrivate> private_; |
218 | 221 |
219 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 222 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
220 }; | 223 }; |
221 | 224 |
222 } // namespace content | 225 } // namespace content |
223 | 226 |
224 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 227 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |