| 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_PRIVATE_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 base::FilePath swiftshader_path_; | 248 base::FilePath swiftshader_path_; |
| 249 | 249 |
| 250 // Current card force-blacklisted due to GPU crashes, or disabled through | 250 // Current card force-blacklisted due to GPU crashes, or disabled through |
| 251 // the --disable-gpu commandline switch. | 251 // the --disable-gpu commandline switch. |
| 252 bool card_blacklisted_; | 252 bool card_blacklisted_; |
| 253 | 253 |
| 254 // We disable histogram stuff in testing, especially in unit tests because | 254 // We disable histogram stuff in testing, especially in unit tests because |
| 255 // they cause random failures. | 255 // they cause random failures. |
| 256 bool update_histograms_; | 256 bool update_histograms_; |
| 257 | 257 |
| 258 // Number of currently open windows, to be used in gpu memory allocation. | |
| 259 int window_count_; | |
| 260 | |
| 261 DomainBlockMap blocked_domains_; | 258 DomainBlockMap blocked_domains_; |
| 262 mutable std::list<base::Time> timestamps_of_gpu_resets_; | 259 mutable std::list<base::Time> timestamps_of_gpu_resets_; |
| 263 bool domain_blocking_enabled_; | 260 bool domain_blocking_enabled_; |
| 264 | 261 |
| 265 GpuDataManagerImpl* owner_; | 262 GpuDataManagerImpl* owner_; |
| 266 | 263 |
| 267 bool gpu_process_accessible_; | 264 bool gpu_process_accessible_; |
| 268 | 265 |
| 269 // True if Initialize() has been completed. | 266 // True if Initialize() has been completed. |
| 270 bool is_initialized_; | 267 bool is_initialized_; |
| 271 | 268 |
| 272 // True if all future Initialize calls should be ignored. | 269 // True if all future Initialize calls should be ignored. |
| 273 bool finalized_; | 270 bool finalized_; |
| 274 | 271 |
| 275 std::string disabled_extensions_; | 272 std::string disabled_extensions_; |
| 276 | 273 |
| 277 // If one tries to call a member before initialization then it is defered | 274 // If one tries to call a member before initialization then it is defered |
| 278 // until Initialize() is completed. | 275 // until Initialize() is completed. |
| 279 std::vector<base::Closure> post_init_tasks_; | 276 std::vector<base::Closure> post_init_tasks_; |
| 280 | 277 |
| 281 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 278 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 282 }; | 279 }; |
| 283 | 280 |
| 284 } // namespace content | 281 } // namespace content |
| 285 | 282 |
| 286 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 283 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |