OLD | NEW |
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/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 renderer_loop->PostTask( | 289 renderer_loop->PostTask( |
290 FROM_HERE, | 290 FROM_HERE, |
291 base::Bind(&RunTaskOnRendererThread, task, runner->QuitClosure())); | 291 base::Bind(&RunTaskOnRendererThread, task, runner->QuitClosure())); |
292 runner->Run(); | 292 runner->Run(); |
293 } | 293 } |
294 | 294 |
295 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; } | 295 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; } |
296 | 296 |
297 void BrowserTestBase::UseSoftwareCompositing() { | 297 void BrowserTestBase::UseSoftwareCompositing() { |
298 #if !defined(USE_AURA) && !defined(OS_MACOSX) | |
299 // TODO(danakj): Remove when GTK linux is no more. | |
300 NOTREACHED(); | |
301 #endif | |
302 use_software_compositing_ = true; | 298 use_software_compositing_ = true; |
303 } | 299 } |
304 | 300 |
305 bool BrowserTestBase::UsingOSMesa() const { | 301 bool BrowserTestBase::UsingOSMesa() const { |
306 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 302 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
307 return cmd->GetSwitchValueASCII(switches::kUseGL) == | 303 return cmd->GetSwitchValueASCII(switches::kUseGL) == |
308 gfx::kGLImplementationOSMesaName; | 304 gfx::kGLImplementationOSMesaName; |
309 } | 305 } |
310 | 306 |
311 } // namespace content | 307 } // namespace content |
OLD | NEW |