Index: 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 abf72801234e19b4480744eec1153d0eab4f6505..8bf3efa810d4cf86b99396f8d674cef774abab21 100644 |
--- a/content/browser/gpu/gpu_process_host.h |
+++ b/content/browser/gpu/gpu_process_host.h |
@@ -23,6 +23,8 @@ namespace IPC { |
class Message; |
} |
+class GpuThreadWrapper; |
jam
2011/05/26 01:15:24
nit: can you call this GpuMainThread for consisten
|
+ |
class GpuProcessHost : public BrowserChildProcessHost, |
public base::NonThreadSafe { |
public: |
@@ -82,7 +84,7 @@ class GpuProcessHost : public BrowserChildProcessHost, |
CreateCommandBufferCallback* callback); |
private: |
- GpuProcessHost(int host_id); |
+ GpuProcessHost(int host_id, bool in_process); |
virtual ~GpuProcessHost(); |
bool Init(); |
@@ -151,6 +153,12 @@ class GpuProcessHost : public BrowserChildProcessHost, |
// The handle for the GPU process or null if it is not known to be launched. |
base::ProcessHandle gpu_process_; |
+ // Whether we are running a GPU thread inside the browser process instead |
+ // of a separate GPU process. |
+ bool in_process_; |
+ |
+ scoped_ptr<GpuThreadWrapper> in_process_gpu_thread_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
}; |