diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 19:08:18 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 19:08:18 +0000 |
commit | 7854d043f3302087ae6acc9cd4221bf2013e42e2 (patch) | |
tree | a4173c4fca32d6d1c07b54c0d2d4269b3fb0850d /content/browser/browser_main_loop.cc | |
parent | 734600a59c33f5ce78186b49d4d2ebdc113ee754 (diff) | |
download | chromium_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.cc | 4 |
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)); |