summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_process_host.h
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 21:04:40 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 21:04:40 +0000
commit947f374826592c6da1bfa620ebbe4e9aeb1bfe1a (patch)
treee35232f80541893d17c5ed41b465a67f4f2d0b43 /content/browser/gpu/gpu_process_host.h
parent55b085210693b2384e67a35f75d4bb9fd5fcb6cb (diff)
downloadchromium_src-947f374826592c6da1bfa620ebbe4e9aeb1bfe1a.zip
chromium_src-947f374826592c6da1bfa620ebbe4e9aeb1bfe1a.tar.gz
chromium_src-947f374826592c6da1bfa620ebbe4e9aeb1bfe1a.tar.bz2
Allow switching to SwiftShader when GPU is blacklisted
When a path to swiftshader is specified and the current GPU is blacklisted, tell the gpu process to use swiftshader to render it. If there already is a gpu process, kill it and make a new one that uses swiftshader BUG= TEST= Review URL: http://codereview.chromium.org/8480015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r--content/browser/gpu/gpu_process_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 9f2b520..f4f226a 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -80,6 +80,9 @@ class GpuProcessHost : public BrowserChildProcessHost,
const GPUCreateCommandBufferConfig& init_params,
CreateCommandBufferCallback* callback);
+ // Whether this GPU process is set up to use software rendering.
+ bool software_rendering();
+
private:
GpuProcessHost(int host_id);
virtual ~GpuProcessHost();
@@ -149,6 +152,8 @@ class GpuProcessHost : public BrowserChildProcessHost,
// of a separate GPU process.
bool in_process_;
+ bool software_rendering_;
+
scoped_ptr<GpuMainThread> in_process_gpu_thread_;
// Master switch for enabling/disabling GPU acceleration for the current