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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 GpuDataManagerImpl* owner) { | 955 GpuDataManagerImpl* owner) { |
956 return new GpuDataManagerImplPrivate(owner); | 956 return new GpuDataManagerImplPrivate(owner); |
957 } | 957 } |
958 | 958 |
959 GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(GpuDataManagerImpl* owner) | 959 GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(GpuDataManagerImpl* owner) |
960 : complete_gpu_info_already_requested_(false), | 960 : complete_gpu_info_already_requested_(false), |
961 observer_list_(new GpuDataManagerObserverList), | 961 observer_list_(new GpuDataManagerObserverList), |
962 use_swiftshader_(false), | 962 use_swiftshader_(false), |
963 card_blacklisted_(false), | 963 card_blacklisted_(false), |
964 update_histograms_(true), | 964 update_histograms_(true), |
965 window_count_(0), | |
966 domain_blocking_enabled_(true), | 965 domain_blocking_enabled_(true), |
967 owner_(owner), | 966 owner_(owner), |
968 gpu_process_accessible_(true), | 967 gpu_process_accessible_(true), |
969 is_initialized_(false), | 968 is_initialized_(false), |
970 finalized_(false) { | 969 finalized_(false) { |
971 DCHECK(owner_); | 970 DCHECK(owner_); |
972 const base::CommandLine* command_line = | 971 const base::CommandLine* command_line = |
973 base::CommandLine::ForCurrentProcess(); | 972 base::CommandLine::ForCurrentProcess(); |
974 swiftshader_path_ = | 973 swiftshader_path_ = |
975 base::CommandLine::ForCurrentProcess()->GetSwitchValuePath( | 974 base::CommandLine::ForCurrentProcess()->GetSwitchValuePath( |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1196 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
1198 #if defined(OS_WIN) | 1197 #if defined(OS_WIN) |
1199 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1198 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
1200 #endif | 1199 #endif |
1201 complete_gpu_info_already_requested_ = true; | 1200 complete_gpu_info_already_requested_ = true; |
1202 // Some observers might be waiting. | 1201 // Some observers might be waiting. |
1203 NotifyGpuInfoUpdate(); | 1202 NotifyGpuInfoUpdate(); |
1204 } | 1203 } |
1205 | 1204 |
1206 } // namespace content | 1205 } // namespace content |
OLD | NEW |