OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 "chrome/common/gpu_info.h" | 5 #include "chrome/common/gpu_info.h" |
6 | 6 |
7 GPUInfo::GPUInfo() | 7 GPUInfo::GPUInfo() |
8 : progress_(kUninitialized), | 8 : progress_(kUninitialized), |
9 vendor_id_(0), | 9 vendor_id_(0), |
10 device_id_(0), | 10 device_id_(0), |
11 driver_vendor_(""), | 11 driver_vendor_(""), |
12 driver_version_(""), | 12 driver_version_(""), |
13 pixel_shader_version_(0), | 13 pixel_shader_version_(0), |
14 vertex_shader_version_(0), | 14 vertex_shader_version_(0), |
15 gl_version_(0), | 15 gl_version_(0), |
16 gl_version_string_(""), | 16 gl_version_string_(""), |
17 gl_vendor_(""), | 17 gl_vendor_(""), |
18 gl_renderer_(""), | 18 gl_renderer_(""), |
19 gl_extensions_(""), | 19 gl_extensions_(""), |
20 can_lose_context_(false) { | 20 can_lose_context_(false) { |
21 } | 21 } |
22 | 22 |
| 23 GPUInfo::~GPUInfo() {} |
| 24 |
23 GPUInfo::Progress GPUInfo::progress() const { | 25 GPUInfo::Progress GPUInfo::progress() const { |
24 return progress_; | 26 return progress_; |
25 } | 27 } |
26 | 28 |
27 base::TimeDelta GPUInfo::initialization_time() const { | 29 base::TimeDelta GPUInfo::initialization_time() const { |
28 return initialization_time_; | 30 return initialization_time_; |
29 } | 31 } |
30 | 32 |
31 uint32 GPUInfo::vendor_id() const { | 33 uint32 GPUInfo::vendor_id() const { |
32 return vendor_id_; | 34 return vendor_id_; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 130 |
129 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
130 const DxDiagNode& GPUInfo::dx_diagnostics() const { | 132 const DxDiagNode& GPUInfo::dx_diagnostics() const { |
131 return dx_diagnostics_; | 133 return dx_diagnostics_; |
132 } | 134 } |
133 | 135 |
134 void GPUInfo::SetDxDiagnostics(const DxDiagNode& dx_diagnostics) { | 136 void GPUInfo::SetDxDiagnostics(const DxDiagNode& dx_diagnostics) { |
135 dx_diagnostics_ = dx_diagnostics; | 137 dx_diagnostics_ = dx_diagnostics; |
136 } | 138 } |
137 #endif | 139 #endif |
OLD | NEW |