Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 7054005: Fix gpu acceleration with --in-process-gpu (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove obsolete files Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698