summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/gpu_info.h')
-rw-r--r--chrome/common/gpu_info.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/common/gpu_info.h b/chrome/common/gpu_info.h
index bdf8709..b8f7cc6 100644
--- a/chrome/common/gpu_info.h
+++ b/chrome/common/gpu_info.h
@@ -21,8 +21,15 @@ class GPUInfo {
GPUInfo();
~GPUInfo() {}
- // Returns whether this GPUInfo has been initialized with information
- bool initialized() const;
+ enum Progress {
+ kUninitialized,
+ kPartial,
+ kComplete,
+ };
+
+ // Returns whether this GPUInfo has been partially or fully initialized with
+ // information.
+ Progress progress() const;
// The amount of time taken to get from the process starting to the message
// loop being pumped.
@@ -60,6 +67,8 @@ class GPUInfo {
// semantics are available.
bool can_lose_context() const;
+ void SetProgress(Progress progress);
+
void SetInitializationTime(const base::TimeDelta& initialization_time);
// Populate variables with passed in values
@@ -78,7 +87,7 @@ class GPUInfo {
#endif
private:
- bool initialized_;
+ Progress progress_;
base::TimeDelta initialization_time_;
uint32 vendor_id_;
uint32 device_id_;