Index: chrome/common/gpu_info.cc |
=================================================================== |
--- chrome/common/gpu_info.cc (revision 66118) |
+++ chrome/common/gpu_info.cc (working copy) |
@@ -5,15 +5,18 @@ |
#include "chrome/common/gpu_info.h" |
GPUInfo::GPUInfo() |
- : initialized_(false), vendor_id_(0), device_id_(0), driver_version_(L""), |
+ : progress_(kUninitialized), |
+ vendor_id_(0), |
+ device_id_(0), |
+ driver_version_(L""), |
pixel_shader_version_(0), |
vertex_shader_version_(0), |
gl_version_(0), |
can_lose_context_(false) { |
} |
-bool GPUInfo::initialized() const { |
- return initialized_; |
+GPUInfo::Progress GPUInfo::progress() const { |
+ return progress_; |
} |
base::TimeDelta GPUInfo::initialization_time() const { |
@@ -68,9 +71,12 @@ |
vertex_shader_version_ = vertex_shader_version; |
gl_version_ = gl_version; |
can_lose_context_ = can_lose_context; |
- initialized_ = true; |
} |
+void GPUInfo::SetProgress(Progress progress) { |
+ progress_ = progress; |
+} |
+ |
#if defined(OS_WIN) |
const DxDiagNode& GPUInfo::dx_diagnostics() const { |
return dx_diagnostics_; |