| 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 #include "content/browser/gpu/gpu_data_manager_impl_private.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 GpuDataManagerImpl* owner) { | 978 GpuDataManagerImpl* owner) { |
| 979 return new GpuDataManagerImplPrivate(owner); | 979 return new GpuDataManagerImplPrivate(owner); |
| 980 } | 980 } |
| 981 | 981 |
| 982 GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(GpuDataManagerImpl* owner) | 982 GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(GpuDataManagerImpl* owner) |
| 983 : complete_gpu_info_already_requested_(false), | 983 : complete_gpu_info_already_requested_(false), |
| 984 observer_list_(new GpuDataManagerObserverList), | 984 observer_list_(new GpuDataManagerObserverList), |
| 985 use_swiftshader_(false), | 985 use_swiftshader_(false), |
| 986 card_blacklisted_(false), | 986 card_blacklisted_(false), |
| 987 update_histograms_(true), | 987 update_histograms_(true), |
| 988 window_count_(0), | |
| 989 domain_blocking_enabled_(true), | 988 domain_blocking_enabled_(true), |
| 990 owner_(owner), | 989 owner_(owner), |
| 991 gpu_process_accessible_(true), | 990 gpu_process_accessible_(true), |
| 992 is_initialized_(false), | 991 is_initialized_(false), |
| 993 finalized_(false) { | 992 finalized_(false) { |
| 994 DCHECK(owner_); | 993 DCHECK(owner_); |
| 995 const base::CommandLine* command_line = | 994 const base::CommandLine* command_line = |
| 996 base::CommandLine::ForCurrentProcess(); | 995 base::CommandLine::ForCurrentProcess(); |
| 997 swiftshader_path_ = | 996 swiftshader_path_ = |
| 998 base::CommandLine::ForCurrentProcess()->GetSwitchValuePath( | 997 base::CommandLine::ForCurrentProcess()->GetSwitchValuePath( |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1219 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1221 #if defined(OS_WIN) | 1220 #if defined(OS_WIN) |
| 1222 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1221 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1223 #endif | 1222 #endif |
| 1224 complete_gpu_info_already_requested_ = true; | 1223 complete_gpu_info_already_requested_ = true; |
| 1225 // Some observers might be waiting. | 1224 // Some observers might be waiting. |
| 1226 NotifyGpuInfoUpdate(); | 1225 NotifyGpuInfoUpdate(); |
| 1227 } | 1226 } |
| 1228 | 1227 |
| 1229 } // namespace content | 1228 } // namespace content |
| OLD | NEW |