Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1655)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.h

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move for loop post_init_tasks_ from Initialize to InitializeImpl. And add a cc unit test. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DomainBlockMap blocked_domains_; 258 DomainBlockMap blocked_domains_;
259 mutable std::list<base::Time> timestamps_of_gpu_resets_; 259 mutable std::list<base::Time> timestamps_of_gpu_resets_;
260 bool domain_blocking_enabled_; 260 bool domain_blocking_enabled_;
261 261
262 GpuDataManagerImpl* owner_; 262 GpuDataManagerImpl* owner_;
263 263
264 unsigned int display_count_; 264 unsigned int display_count_;
265 265
266 bool gpu_process_accessible_; 266 bool gpu_process_accessible_;
267 267
268 // True if Initialize() has been completed.
269 bool is_initialized;
Zhenyao Mo 2016/02/10 23:53:46 is_initialized_ ("_" in the end)
270
268 // True if all future Initialize calls should be ignored. 271 // True if all future Initialize calls should be ignored.
269 bool finalized_; 272 bool finalized_;
270 273
271 std::string disabled_extensions_; 274 std::string disabled_extensions_;
272 275
276 // If one tries to call a member before initialization then it is defered
277 // until Initialize() is completed.
278 std::vector<base::Closure> post_init_tasks_;
279
273 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 280 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
274 }; 281 };
275 282
276 } // namespace content 283 } // namespace content
277 284
278 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 285 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698