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/task_manager/task_manager_notification_browsertest.cc | |
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/task_manager/task_manager_notification_browsertest.cc')
-rw-r--r-- | chrome/browser/task_manager/task_manager_notification_browsertest.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/task_manager/task_manager_notification_browsertest.cc b/chrome/browser/task_manager/task_manager_notification_browsertest.cc index 46a02b5..f428ed3 100644 --- a/chrome/browser/task_manager/task_manager_notification_browsertest.cc +++ b/chrome/browser/task_manager/task_manager_notification_browsertest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,6 +16,7 @@ #include "chrome/browser/ui/browser_window.h" #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/ui_test_utils.h" +#include "content/public/common/content_switches.h" #include "testing/gtest/include/gtest/gtest.h" class TaskManagerNotificationBrowserTest : public ExtensionBrowserTest { @@ -23,6 +24,15 @@ class TaskManagerNotificationBrowserTest : public ExtensionBrowserTest { TaskManagerModel* model() const { return TaskManager::GetInstance()->model(); } + protected: + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { + ExtensionBrowserTest::SetUpCommandLine(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); + } }; IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest, |