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

Unified Diff: trunk/src/content/browser/gpu/gpu_ipc_browsertests.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/content/browser/gpu/gpu_ipc_browsertests.cc
===================================================================
--- trunk/src/content/browser/gpu/gpu_ipc_browsertests.cc (revision 216906)
+++ trunk/src/content/browser/gpu/gpu_ipc_browsertests.cc (working copy)
@@ -26,6 +26,18 @@
ContentBrowserTest::SetUpOnMainThread();
}
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+ // TODO(Hubbe): This code is very similar to some code in
+ // test/gpu/gpu_feature_browsertest.cc, and should really be
+ // shared in a common location.
+ if (!command_line->HasSwitch(switches::kUseGpuInTests)) {
+ CHECK(!command_line->HasSwitch(switches::kUseGL))
+ << "kUseGL must not be set by test framework code!";
+ command_line->AppendSwitchASCII(switches::kUseGL,
+ gfx::kGLImplementationOSMesaName);
+ }
+ }
+
virtual void TearDownOnMainThread() OVERRIDE {
// Must delete the context first.
context_.reset(NULL);
« no previous file with comments | « trunk/src/content/browser/gpu/gpu_info_browsertest.cc ('k') | trunk/src/content/browser/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698