summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_data_manager_impl.h
diff options
context:
space:
mode:
authorzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 18:55:34 +0000
committerzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 18:55:34 +0000
commite2f8f8ade4fed8722823bf6afb9077763ddb8309 (patch)
tree195a97a5a6bccc727d2d692cf8f6082ca9efc42e /content/browser/gpu/gpu_data_manager_impl.h
parent021bd23df4e9193cf4d6efa1e1dbc8cd638af7da (diff)
downloadchromium_src-e2f8f8ade4fed8722823bf6afb9077763ddb8309.zip
chromium_src-e2f8f8ade4fed8722823bf6afb9077763ddb8309.tar.gz
chromium_src-e2f8f8ade4fed8722823bf6afb9077763ddb8309.tar.bz2
Make sure if GPU process fails to launch, all observers waiting for full gpu info get a response.
BUG=174296 TEST=AutofillRiskFingerprintTest.GetFingerprint Review URL: https://codereview.chromium.org/12335100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184995 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_data_manager_impl.h')
-rw-r--r--content/browser/gpu/gpu_data_manager_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index c862ab0..edcfacd 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -155,6 +155,9 @@ class CONTENT_EXPORT GpuDataManagerImpl
// Disables domain blocking for 3D APIs. For use only in tests.
void DisableDomainBlockingFor3DAPIsForTesting();
+ // Called when GPU process initialization failed.
+ void OnGpuProcessInitFailure();
+
private:
struct DomainBlockEntry {
DomainGuilt last_guilt;
@@ -263,6 +266,8 @@ class CONTENT_EXPORT GpuDataManagerImpl
mutable std::list<base::Time> timestamps_of_gpu_resets_;
bool domain_blocking_enabled_;
+ bool gpu_process_accessible_;
+
DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
};