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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 // Get number of features being blacklisted. | 171 // Get number of features being blacklisted. |
172 size_t GetBlacklistedFeatureCount() const; | 172 size_t GetBlacklistedFeatureCount() const; |
173 | 173 |
174 void SetDisplayCount(unsigned int display_count); | 174 void SetDisplayCount(unsigned int display_count); |
175 unsigned int GetDisplayCount() const; | 175 unsigned int GetDisplayCount() const; |
176 | 176 |
177 // Called when GPU process initialization failed. | 177 // Called when GPU process initialization failed. |
178 void OnGpuProcessInitFailure(); | 178 void OnGpuProcessInitFailure(); |
179 | 179 |
| 180 bool IsDriverBugWorkaroundActive(int feature) const; |
| 181 |
180 private: | 182 private: |
181 friend class GpuDataManagerImplPrivate; | 183 friend class GpuDataManagerImplPrivate; |
182 friend class GpuDataManagerImplPrivateTest; | 184 friend class GpuDataManagerImplPrivateTest; |
183 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; | 185 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; |
184 | 186 |
185 // It's similar to AutoUnlock, but we want to make it a no-op | 187 // It's similar to AutoUnlock, but we want to make it a no-op |
186 // if the owner GpuDataManagerImpl is null. | 188 // if the owner GpuDataManagerImpl is null. |
187 // This should only be used by GpuDataManagerImplPrivate where | 189 // This should only be used by GpuDataManagerImplPrivate where |
188 // callbacks are called, during which re-entering | 190 // callbacks are called, during which re-entering |
189 // GpuDataManagerImpl is possible. | 191 // GpuDataManagerImpl is possible. |
(...skipping 21 matching lines...) Expand all Loading... |
211 | 213 |
212 mutable base::Lock lock_; | 214 mutable base::Lock lock_; |
213 scoped_ptr<GpuDataManagerImplPrivate> private_; | 215 scoped_ptr<GpuDataManagerImplPrivate> private_; |
214 | 216 |
215 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 217 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
216 }; | 218 }; |
217 | 219 |
218 } // namespace content | 220 } // namespace content |
219 | 221 |
220 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 222 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |