| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 // Get number of features being blacklisted. | 166 // Get number of features being blacklisted. |
| 167 size_t GetBlacklistedFeatureCount() const; | 167 size_t GetBlacklistedFeatureCount() const; |
| 168 | 168 |
| 169 typedef base::Callback<void()> GpuSwitchCallback; | 169 typedef base::Callback<void()> GpuSwitchCallback; |
| 170 | 170 |
| 171 // Add and remove gpu switch callback. | 171 // Add and remove gpu switch callback. |
| 172 void AddGpuSwitchCallback(const GpuSwitchCallback& callback); | 172 void AddGpuSwitchCallback(const GpuSwitchCallback& callback); |
| 173 void RemoveGpuSwitchCallback(const GpuSwitchCallback& callback); | 173 void RemoveGpuSwitchCallback(const GpuSwitchCallback& callback); |
| 174 | 174 |
| 175 #if defined(OS_MACOSX) |
| 176 // Number of displays, to be used in GPU feature detection |
| 177 unsigned int display_count_; |
| 178 #endif |
| 179 |
| 175 private: | 180 private: |
| 176 struct DomainBlockEntry { | 181 struct DomainBlockEntry { |
| 177 DomainGuilt last_guilt; | 182 DomainGuilt last_guilt; |
| 178 }; | 183 }; |
| 179 | 184 |
| 180 typedef std::map<std::string, DomainBlockEntry> DomainBlockMap; | 185 typedef std::map<std::string, DomainBlockEntry> DomainBlockMap; |
| 181 | 186 |
| 182 typedef ObserverListThreadSafe<GpuDataManagerObserver> | 187 typedef ObserverListThreadSafe<GpuDataManagerObserver> |
| 183 GpuDataManagerObserverList; | 188 GpuDataManagerObserverList; |
| 184 | 189 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 bool domain_blocking_enabled_; | 295 bool domain_blocking_enabled_; |
| 291 | 296 |
| 292 std::vector<GpuSwitchCallback> gpu_switch_callbacks_; | 297 std::vector<GpuSwitchCallback> gpu_switch_callbacks_; |
| 293 | 298 |
| 294 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 299 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 295 }; | 300 }; |
| 296 | 301 |
| 297 } // namespace content | 302 } // namespace content |
| 298 | 303 |
| 299 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 304 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |