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

Unified Diff: trunk/src/chrome/test/base/test_launcher_utils.cc

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 months 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
Index: trunk/src/chrome/test/base/test_launcher_utils.cc
===================================================================
--- trunk/src/chrome/test/base/test_launcher_utils.cc (revision 216906)
+++ trunk/src/chrome/test/base/test_launcher_utils.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/strings/string_number_conversions.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "ui/gl/gl_switches.h"
#if defined(USE_AURA)
#include "ui/views/corewm/corewm_switches.h"
@@ -96,4 +97,14 @@
return success;
}
+bool OverrideGLImplementation(CommandLine* command_line,
+ const std::string& implementation_name) {
+ if (command_line->HasSwitch(switches::kUseGL))
+ return false;
+
+ command_line->AppendSwitchASCII(switches::kUseGL, implementation_name);
+
+ return true;
+}
+
} // namespace test_launcher_utils
« no previous file with comments | « trunk/src/chrome/test/base/test_launcher_utils.h ('k') | trunk/src/chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698