| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 void DisableDomainBlockingFor3DAPIsForTesting(); | 113 void DisableDomainBlockingFor3DAPIsForTesting(); |
| 114 | 114 |
| 115 void Notify3DAPIBlocked(const GURL& top_origin_url, | 115 void Notify3DAPIBlocked(const GURL& top_origin_url, |
| 116 int render_process_id, | 116 int render_process_id, |
| 117 int render_frame_id, | 117 int render_frame_id, |
| 118 ThreeDAPIType requester); | 118 ThreeDAPIType requester); |
| 119 | 119 |
| 120 size_t GetBlacklistedFeatureCount() const; | 120 size_t GetBlacklistedFeatureCount() const; |
| 121 | 121 |
| 122 void SetDisplayCount(unsigned int display_count); | |
| 123 unsigned int GetDisplayCount() const; | |
| 124 | |
| 125 bool UpdateActiveGpu(uint32_t vendor_id, uint32_t device_id); | 122 bool UpdateActiveGpu(uint32_t vendor_id, uint32_t device_id); |
| 126 | 123 |
| 127 void OnGpuProcessInitFailure(); | 124 void OnGpuProcessInitFailure(); |
| 128 | 125 |
| 129 virtual ~GpuDataManagerImplPrivate(); | 126 virtual ~GpuDataManagerImplPrivate(); |
| 130 | 127 |
| 131 private: | 128 private: |
| 132 friend class GpuDataManagerImplPrivateTest; | 129 friend class GpuDataManagerImplPrivateTest; |
| 133 | 130 |
| 134 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, | 131 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 257 |
| 261 // Number of currently open windows, to be used in gpu memory allocation. | 258 // Number of currently open windows, to be used in gpu memory allocation. |
| 262 int window_count_; | 259 int window_count_; |
| 263 | 260 |
| 264 DomainBlockMap blocked_domains_; | 261 DomainBlockMap blocked_domains_; |
| 265 mutable std::list<base::Time> timestamps_of_gpu_resets_; | 262 mutable std::list<base::Time> timestamps_of_gpu_resets_; |
| 266 bool domain_blocking_enabled_; | 263 bool domain_blocking_enabled_; |
| 267 | 264 |
| 268 GpuDataManagerImpl* owner_; | 265 GpuDataManagerImpl* owner_; |
| 269 | 266 |
| 270 unsigned int display_count_; | |
| 271 | |
| 272 bool gpu_process_accessible_; | 267 bool gpu_process_accessible_; |
| 273 | 268 |
| 274 // True if Initialize() has been completed. | 269 // True if Initialize() has been completed. |
| 275 bool is_initialized_; | 270 bool is_initialized_; |
| 276 | 271 |
| 277 // True if all future Initialize calls should be ignored. | 272 // True if all future Initialize calls should be ignored. |
| 278 bool finalized_; | 273 bool finalized_; |
| 279 | 274 |
| 280 std::string disabled_extensions_; | 275 std::string disabled_extensions_; |
| 281 | 276 |
| 282 // If one tries to call a member before initialization then it is defered | 277 // If one tries to call a member before initialization then it is defered |
| 283 // until Initialize() is completed. | 278 // until Initialize() is completed. |
| 284 std::vector<base::Closure> post_init_tasks_; | 279 std::vector<base::Closure> post_init_tasks_; |
| 285 | 280 |
| 286 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 281 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
| 287 }; | 282 }; |
| 288 | 283 |
| 289 } // namespace content | 284 } // namespace content |
| 290 | 285 |
| 291 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 286 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
| OLD | NEW |