diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-30 07:38:17 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-30 07:38:17 +0000 |
commit | b13afb7fc94878a390a29e89f6a07d68d4248000 (patch) | |
tree | e2439e07eded573de480edea44b5c4d34573307c /chrome/browser/instant | |
parent | 45d6497969b8e8ee154f7b5f185045e3da62e726 (diff) | |
download | chromium_src-b13afb7fc94878a390a29e89f6a07d68d4248000.zip chromium_src-b13afb7fc94878a390a29e89f6a07d68d4248000.tar.gz chromium_src-b13afb7fc94878a390a29e89f6a07d68d4248000.tar.bz2 |
Asynchronously launch the GPU process as soon as the IO thread is ready.
When the first tab is composited, this results in the GPU process being initialized about 100ms earlier on my box.
Review URL: https://chromiumcodereview.appspot.com/10445002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r-- | chrome/browser/instant/instant_browsertest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_browsertest.cc b/chrome/browser/instant/instant_browsertest.cc index 960d116..7b7c7c0 100644 --- a/chrome/browser/instant/instant_browsertest.cc +++ b/chrome/browser/instant/instant_browsertest.cc @@ -33,6 +33,7 @@ #include "content/public/browser/render_view_host.h" #include "content/public/browser/render_widget_host_view.h" #include "content/public/browser/web_contents.h" +#include "content/public/common/content_switches.h" #include "grit/generated_resources.h" #include "ui/base/l10n/l10n_util.h" @@ -254,6 +255,14 @@ class InstantTest : public InProcessBrowserTest { selection_start, selection_end); } + + protected: + virtual void SetUpCommandLine(CommandLine* command_line) { + // Do not prelaunch the GPU process for these tests because it will show + // up in task manager but whether it appears before or after the new tab + // renderer process is not well defined. + command_line->AppendSwitch(switches::kDisableGpuProcessPrelaunch); + } }; // TODO(tonyg): Add the following tests: |