summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_host.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 05:15:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 05:15:42 +0000
commit7c4ea146bc033d89c1a0d527ae3d43b587a23cab (patch)
tree293c4da0b8fa44e5d4939c410434c51c8ffb872c /chrome/common/child_process_host.h
parent877cbee0688984a2a00ce074f981bdfb1e42abfa (diff)
downloadchromium_src-7c4ea146bc033d89c1a0d527ae3d43b587a23cab.zip
chromium_src-7c4ea146bc033d89c1a0d527ae3d43b587a23cab.tar.gz
chromium_src-7c4ea146bc033d89c1a0d527ae3d43b587a23cab.tar.bz2
Create initial GPU backing store in the GPU process for X windows applications.
This gets the window from the RenderWidgetHostViewGtk and just does OpenGL calls directly into it. There are a lot of bugs, especially around expose events, which aren't really processed at all, and also tab teardown and reparenting. The new backing store defaults to off. This does some refactoring of the existing Windows GPU process backing store implementation to make some of it sharable by this Linux verion. This removes some previously defunct in-process GL backing store code and moves it to the GPU process. This patch does some refactoring around how child processes are created using zygoes or not. I found there were many places where a command line would be checked with special logic to know whether to enable zygote code or not. I tried to unify this so it could be computed once for each process type. This is what most of the changed files in chrome/browser are related to. BUG=none TEST=none Review URL: http://codereview.chromium.org/548112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_host.h')
-rw-r--r--chrome/common/child_process_host.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/chrome/common/child_process_host.h b/chrome/common/child_process_host.h
index 1ca547b..ec6e86d 100644
--- a/chrome/common/child_process_host.h
+++ b/chrome/common/child_process_host.h
@@ -34,9 +34,18 @@ class ChildProcessHost : public ResourceDispatcherHost::Receiver,
// Returns the pathname to be used for a child process. If a subprocess
// pathname was specified on the command line, that will be used. Otherwise,
// the default child process pathname will be returned. On most platforms,
- // this will be the same as the currently-executing process. On failure,
- // returns an empty wstring.
- static FilePath GetChildPath();
+ // this will be the same as the currently-executing process.
+ //
+ // The argument allow_self is used on Linux to indicate that we allow us to
+ // fork from /proc/self/exe rather than using the "real" app path. This
+ // prevents autoupdate from confusing us if it changes the file out from
+ // under us. You will generally want to set this to true, except when there
+ // is an override to the command line (for example, we're forking a renderer
+ // in gdb). In this case, you'd use GetChildPath to get the real executable
+ // file name, and then prepend the GDB command to the command line.
+ //
+ // On failure, returns an empty FilePath.
+ static FilePath GetChildPath(bool allow_self);
// Prepares command_line for crash reporting as appropriate. On Linux and
// Mac, a command-line flag to enable crash reporting in the child process
@@ -79,6 +88,7 @@ class ChildProcessHost : public ResourceDispatcherHost::Receiver,
#if defined(OS_WIN)
const FilePath& exposed_dir,
#elif defined(OS_POSIX)
+ bool use_zygote,
const base::environment_vector& environ,
#endif
CommandLine* cmd_line);