| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 381 |
| 382 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; } | 382 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; } |
| 383 | 383 |
| 384 void BrowserTestBase::UseSoftwareCompositing() { | 384 void BrowserTestBase::UseSoftwareCompositing() { |
| 385 use_software_compositing_ = true; | 385 use_software_compositing_ = true; |
| 386 } | 386 } |
| 387 | 387 |
| 388 bool BrowserTestBase::UsingOSMesa() const { | 388 bool BrowserTestBase::UsingOSMesa() const { |
| 389 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); | 389 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); |
| 390 return cmd->GetSwitchValueASCII(switches::kUseGL) == | 390 return cmd->GetSwitchValueASCII(switches::kUseGL) == |
| 391 gfx::kGLImplementationOSMesaName; | 391 gl::kGLImplementationOSMesaName; |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace content | 394 } // namespace content |
| OLD | NEW |