summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_info.h
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 21:03:03 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 21:03:03 +0000
commitdfb26435674c4ab5e9bb003b7a9355ba52b624bb (patch)
tree19ebe56085df8dbb51e5b02e28029c50c5adcff5 /chrome/common/gpu_info.h
parent9a9fe14bbed108b25dec9d7d52e27336b6f122e4 (diff)
downloadchromium_src-dfb26435674c4ab5e9bb003b7a9355ba52b624bb.zip
chromium_src-dfb26435674c4ab5e9bb003b7a9355ba52b624bb.tar.gz
chromium_src-dfb26435674c4ab5e9bb003b7a9355ba52b624bb.tar.bz2
Fixed about:gpu refresh bug.
BUG=72591 TEST= Review URL: http://codereview.chromium.org/6480099 Patch from John Bates <jbates@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_info.h')
-rw-r--r--chrome/common/gpu_info.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/gpu_info.h b/chrome/common/gpu_info.h
index 3b8e0e6..9f751ef 100644
--- a/chrome/common/gpu_info.h
+++ b/chrome/common/gpu_info.h
@@ -88,6 +88,11 @@ class GPUInfo {
// semantics are available.
bool can_lose_context() const;
+ // Return true if there was an error at any stage of collecting GPUInfo data.
+ // If there was an error, then the GPUInfo fields may be incomplete or set
+ // to default values such as 0 or empty string.
+ bool collection_error() const;
+
void SetLevel(Level level);
void SetInitializationTime(const base::TimeDelta& initialization_time);
@@ -112,6 +117,8 @@ class GPUInfo {
void SetCanLoseContext(bool can_lose_context);
+ void SetCollectionError(bool collection_error);
+
#if defined(OS_WIN)
// The information returned by the DirectX Diagnostics Tool.
const DxDiagNode& dx_diagnostics() const;
@@ -134,6 +141,7 @@ class GPUInfo {
std::string gl_renderer_;
std::string gl_extensions_;
bool can_lose_context_;
+ bool collection_error_;
#if defined(OS_WIN)
DxDiagNode dx_diagnostics_;