OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The bulk of this file is support code; sorry about that. Here's an overview | 5 // The bulk of this file is support code; sorry about that. Here's an overview |
6 // to hopefully help readers of this code: | 6 // to hopefully help readers of this code: |
7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or | 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or |
8 // Win/EGL. | 8 // Win/EGL. |
9 // - ClientState is an enum for the state of the decode client used by the test. | 9 // - ClientState is an enum for the state of the decode client used by the test. |
10 // - ClientStateNotification is a barrier abstraction that allows the test code | 10 // - ClientStateNotification is a barrier abstraction that allows the test code |
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 // thread. | 1631 // thread. |
1632 base::MessageLoopForUI main_loop; | 1632 base::MessageLoopForUI main_loop; |
1633 #else | 1633 #else |
1634 base::MessageLoop main_loop; | 1634 base::MessageLoop main_loop; |
1635 #endif // OS_WIN || USE_OZONE | 1635 #endif // OS_WIN || USE_OZONE |
1636 | 1636 |
1637 #if defined(USE_OZONE) | 1637 #if defined(USE_OZONE) |
1638 ui::OzonePlatform::InitializeForUI(); | 1638 ui::OzonePlatform::InitializeForUI(); |
1639 #endif | 1639 #endif |
1640 | 1640 |
| 1641 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| 1642 content::VaapiWrapper::PreSandboxInitialization(); |
| 1643 #endif |
| 1644 |
1641 content::g_env = | 1645 content::g_env = |
1642 reinterpret_cast<content::VideoDecodeAcceleratorTestEnvironment*>( | 1646 reinterpret_cast<content::VideoDecodeAcceleratorTestEnvironment*>( |
1643 testing::AddGlobalTestEnvironment( | 1647 testing::AddGlobalTestEnvironment( |
1644 new content::VideoDecodeAcceleratorTestEnvironment())); | 1648 new content::VideoDecodeAcceleratorTestEnvironment())); |
1645 | 1649 |
1646 return RUN_ALL_TESTS(); | 1650 return RUN_ALL_TESTS(); |
1647 } | 1651 } |
OLD | NEW |