summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/gpu_info.cc')
-rw-r--r--chrome/common/gpu_info.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/common/gpu_info.cc b/chrome/common/gpu_info.cc
index 4fcd6a4..9f16bdb 100644
--- a/chrome/common/gpu_info.cc
+++ b/chrome/common/gpu_info.cc
@@ -5,13 +5,17 @@
#include "chrome/common/gpu_info.h"
GPUInfo::GPUInfo()
- : vendor_id_(0), device_id_(0), driver_version_(L""),
+ : initialized_(false), 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_;
+}
+
uint32 GPUInfo::vendor_id() const {
return vendor_id_;
}
@@ -54,4 +58,5 @@ void GPUInfo::SetGraphicsInfo(uint32 vendor_id, uint32 device_id,
vertex_shader_version_ = vertex_shader_version;
gl_version_ = gl_version;
can_lose_context_ = can_lose_context;
+ initialized_ = true;
}