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

Side by Side Diff: content/public/test/browser_test_base.cc

Issue 166163007: Remove --ui-enable-software-compositing flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uienablesoftwarecompositing: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/browser_test_base.h" 5 #include "content/public/test/browser_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 command_line->AppendSwitch(switches::kDomAutomationController); 149 command_line->AppendSwitch(switches::kDomAutomationController);
150 150
151 // It is sometimes useful when looking at browser test failures to know which 151 // It is sometimes useful when looking at browser test failures to know which
152 // GPU blacklisting decisions were made. 152 // GPU blacklisting decisions were made.
153 command_line->AppendSwitch(switches::kLogGpuControlListDecisions); 153 command_line->AppendSwitch(switches::kLogGpuControlListDecisions);
154 154
155 if (use_software_compositing_) { 155 if (use_software_compositing_) {
156 command_line->AppendSwitch(switches::kDisableGpu); 156 command_line->AppendSwitch(switches::kDisableGpu);
157 command_line->AppendSwitch(switches::kEnableSoftwareCompositing); 157 command_line->AppendSwitch(switches::kEnableSoftwareCompositing);
158 #if defined(USE_AURA) 158 #if defined(USE_AURA)
159 command_line->AppendSwitch(switches::kUIEnableSoftwareCompositing);
160 command_line->AppendSwitch(switches::kUIDisableThreadedCompositing); 159 command_line->AppendSwitch(switches::kUIDisableThreadedCompositing);
161 #endif 160 #endif
162 } 161 }
163 162
164 #if defined(USE_AURA) 163 #if defined(USE_AURA)
165 // Most tests do not need pixel output, so we don't produce any. The command 164 // Most tests do not need pixel output, so we don't produce any. The command
166 // line can override this behaviour to allow for visual debugging. 165 // line can override this behaviour to allow for visual debugging.
167 if (command_line->HasSwitch(switches::kEnablePixelOutputInTests)) 166 if (command_line->HasSwitch(switches::kEnablePixelOutputInTests))
168 enable_pixel_output_ = true; 167 enable_pixel_output_ = true;
169 168
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 use_software_compositing_ = true; 291 use_software_compositing_ = true;
293 } 292 }
294 293
295 bool BrowserTestBase::UsingOSMesa() const { 294 bool BrowserTestBase::UsingOSMesa() const {
296 CommandLine* cmd = CommandLine::ForCurrentProcess(); 295 CommandLine* cmd = CommandLine::ForCurrentProcess();
297 return cmd->GetSwitchValueASCII(switches::kUseGL) == 296 return cmd->GetSwitchValueASCII(switches::kUseGL) ==
298 gfx::kGLImplementationOSMesaName; 297 gfx::kGLImplementationOSMesaName;
299 } 298 }
300 299
301 } // namespace content 300 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698