Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4112)

Unified Diff: chrome/test/in_process_browser_test.cc

Issue 4761001: Moved --use-gl=osmesa switch out of test_launcher_utils (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/test_launcher_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test.cc
===================================================================
--- chrome/test/in_process_browser_test.cc (revision 65556)
+++ chrome/test/in_process_browser_test.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/test/in_process_browser_test.h"
+#include "app/app_switches.h"
+#include "app/gfx/gl/gl_implementation.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
@@ -151,6 +153,14 @@
// This is a Browser test.
command_line->AppendSwitchASCII(switches::kTestType, kBrowserTestType);
+ // Force tests to use OSMesa if they launch the GPU process.
+ command_line->AppendSwitchASCII(switches::kUseGL,
+ gfx::kGLImplementationOSMesaName);
+
+ // Mac does not support accelerated compositing with OSMesa. Disable on all
+ // platforms so it is consistent. http://crbug.com/58343
+ command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
+
// Single-process mode is not set in BrowserMain so it needs to be processed
// explicitly.
original_single_process_ = RenderProcessHost::run_renderer_in_process();
« no previous file with comments | « no previous file | chrome/test/test_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698