Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8546)

Unified Diff: chrome/common/gpu_info.cc

Issue 4860001: Collect DirectX diagnostic information asynchronously.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698