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

Unified Diff: chrome/test/ui/ui_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 | « chrome/test/test_launcher_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
===================================================================
--- chrome/test/ui/ui_test.cc (revision 65556)
+++ chrome/test/ui/ui_test.cc (working copy)
@@ -12,6 +12,8 @@
#include <set>
#include <vector>
+#include "app/app_switches.h"
+#include "app/gfx/gl/gl_implementation.h"
#include "app/sql/connection.h"
#include "base/base_switches.h"
#include "base/command_line.h"
@@ -688,6 +690,14 @@
// Tell the browser to use a temporary directory just for this test.
command_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir());
+ // 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);
+
// We need cookies on file:// for things like the page cycler.
if (enable_file_cookies_)
command_line.AppendSwitch(switches::kEnableFileCookies);
« no previous file with comments | « chrome/test/test_launcher_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698