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 14 matching lines...) Expand all Loading... |
25 #include "net/test/embedded_test_server/embedded_test_server.h" | 25 #include "net/test/embedded_test_server/embedded_test_server.h" |
26 #include "ui/compositor/compositor_switches.h" | 26 #include "ui/compositor/compositor_switches.h" |
27 #include "ui/gl/gl_implementation.h" | 27 #include "ui/gl/gl_implementation.h" |
28 #include "ui/gl/gl_switches.h" | 28 #include "ui/gl/gl_switches.h" |
29 | 29 |
30 #if defined(OS_POSIX) | 30 #if defined(OS_POSIX) |
31 #include "base/process/process_handle.h" | 31 #include "base/process/process_handle.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
35 #include "base/mac/mac_util.h" | 35 #include "base/mac/foundation_util.h" |
36 #endif | 36 #endif |
37 | 37 |
38 #if defined(OS_ANDROID) | 38 #if defined(OS_ANDROID) |
39 #include "base/threading/thread_restrictions.h" | 39 #include "base/threading/thread_restrictions.h" |
40 #include "content/public/browser/browser_main_runner.h" | 40 #include "content/public/browser/browser_main_runner.h" |
41 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
42 #endif | 42 #endif |
43 | 43 |
44 #if defined(USE_AURA) | 44 #if defined(USE_AURA) |
45 #include "content/browser/compositor/image_transport_factory.h" | 45 #include "content/browser/compositor/image_transport_factory.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 use_software_compositing_ = true; | 340 use_software_compositing_ = true; |
341 } | 341 } |
342 | 342 |
343 bool BrowserTestBase::UsingOSMesa() const { | 343 bool BrowserTestBase::UsingOSMesa() const { |
344 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 344 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
345 return cmd->GetSwitchValueASCII(switches::kUseGL) == | 345 return cmd->GetSwitchValueASCII(switches::kUseGL) == |
346 gfx::kGLImplementationOSMesaName; | 346 gfx::kGLImplementationOSMesaName; |
347 } | 347 } |
348 | 348 |
349 } // namespace content | 349 } // namespace content |
OLD | NEW |