summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_loop.cc
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-15 19:08:18 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-15 19:08:18 +0000
commit7854d043f3302087ae6acc9cd4221bf2013e42e2 (patch)
treea4173c4fca32d6d1c07b54c0d2d4269b3fb0850d /content/browser/browser_main_loop.cc
parent734600a59c33f5ce78186b49d4d2ebdc113ee754 (diff)
downloadchromium_src-7854d043f3302087ae6acc9cd4221bf2013e42e2.zip
chromium_src-7854d043f3302087ae6acc9cd4221bf2013e42e2.tar.gz
chromium_src-7854d043f3302087ae6acc9cd4221bf2013e42e2.tar.bz2
Refactor GpuProcessHost::GetForClient to GpuProcessHost::Get, which takes a GPU process kind rather than a client ID.
There is no longer a plan to have a GPU process for each client to identify the GPU process by its kind (sandboxed or unsandboxed) rather than client ID. I checked about:gpu still works and that the limit on the number of times the sandboxed GPU is relaunched is still limitted. Review URL: https://chromiumcodereview.appspot.com/9559013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main_loop.cc')
-rw-r--r--content/browser/browser_main_loop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index ff9a263..cad6c6e 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -437,8 +437,8 @@ void BrowserMainLoop::CreateThreads() {
BrowserThread::PostDelayedTask(
BrowserThread::IO, FROM_HERE, base::Bind(
- base::IgnoreResult(&GpuProcessHost::GetForClient),
- 1, // Arbitrary non-0 (to cause sandboxing) client_id.
+ base::IgnoreResult(&GpuProcessHost::Get),
+ GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
content::CAUSE_FOR_GPU_LAUNCH_BROWSER_STARTUP),
// Arbitrary delay to avoid allow browser init precious CPU cycles.
base::TimeDelta::FromSeconds(5));