| 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 } | 883 } |
| 884 if (it->first == "v" || it->first == "vmodule") | 884 if (it->first == "v" || it->first == "vmodule") |
| 885 continue; | 885 continue; |
| 886 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; | 886 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; |
| 887 } | 887 } |
| 888 | 888 |
| 889 base::ShadowingAtExitManager at_exit_manager; | 889 base::ShadowingAtExitManager at_exit_manager; |
| 890 content::RenderingHelper::InitializePlatform(); | 890 content::RenderingHelper::InitializePlatform(); |
| 891 | 891 |
| 892 #if defined(OS_WIN) | 892 #if defined(OS_WIN) |
| 893 content::DXVAVideoDecodeAccelerator::PreSandboxInitialization(); | 893 base::WaitableEvent event(true, false); |
| 894 content::DXVAVideoDecodeAccelerator::PreSandboxInitialization( |
| 895 base::Bind(&base::WaitableEvent::Signal, |
| 896 base::Unretained(&event))); |
| 897 event.Wait(); |
| 894 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) | 898 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
| 895 content::OmxVideoDecodeAccelerator::PreSandboxInitialization(); | 899 content::OmxVideoDecodeAccelerator::PreSandboxInitialization(); |
| 896 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) | 900 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| 897 content::VaapiVideoDecodeAccelerator::PreSandboxInitialization(); | 901 content::VaapiVideoDecodeAccelerator::PreSandboxInitialization(); |
| 898 #endif | 902 #endif |
| 899 | 903 |
| 900 return RUN_ALL_TESTS(); | 904 return RUN_ALL_TESTS(); |
| 901 } | 905 } |
| OLD | NEW |