From 947f374826592c6da1bfa620ebbe4e9aeb1bfe1a Mon Sep 17 00:00:00 2001 From: "jbauman@chromium.org" Date: Fri, 11 Nov 2011 21:04:40 +0000 Subject: 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 --- content/browser/gpu/gpu_process_host.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/browser/gpu/gpu_process_host.h') 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 in_process_gpu_thread_; // Master switch for enabling/disabling GPU acceleration for the current -- cgit v1.1