| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #endif | 78 #endif |
| 79 #if defined(ARCH_CPU_X86_FAMILY) | 79 #if defined(ARCH_CPU_X86_FAMILY) |
| 80 #include "media/gpu/vaapi_video_decode_accelerator.h" | 80 #include "media/gpu/vaapi_video_decode_accelerator.h" |
| 81 #include "media/gpu/vaapi_wrapper.h" | 81 #include "media/gpu/vaapi_wrapper.h" |
| 82 #endif // defined(ARCH_CPU_X86_FAMILY) | 82 #endif // defined(ARCH_CPU_X86_FAMILY) |
| 83 #else | 83 #else |
| 84 #error The VideoAccelerator tests are not supported on this platform. | 84 #error The VideoAccelerator tests are not supported on this platform. |
| 85 #endif // OS_WIN | 85 #endif // OS_WIN |
| 86 | 86 |
| 87 #if defined(USE_OZONE) | 87 #if defined(USE_OZONE) |
| 88 #include "ui/ozone/public/native_pixmap.h" | 88 #include "ui/gfx/native_pixmap.h" |
| 89 #include "ui/ozone/public/ozone_gpu_test_helper.h" | 89 #include "ui/ozone/public/ozone_gpu_test_helper.h" |
| 90 #include "ui/ozone/public/ozone_platform.h" | 90 #include "ui/ozone/public/ozone_platform.h" |
| 91 #include "ui/ozone/public/surface_factory_ozone.h" | 91 #include "ui/ozone/public/surface_factory_ozone.h" |
| 92 #endif // defined(USE_OZONE) | 92 #endif // defined(USE_OZONE) |
| 93 | 93 |
| 94 namespace media { | 94 namespace media { |
| 95 | 95 |
| 96 namespace { | 96 namespace { |
| 97 | 97 |
| 98 // Values optionally filled in from flags; see main() below. | 98 // Values optionally filled in from flags; see main() below. |
| (...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 continue; | 1849 continue; |
| 1850 } | 1850 } |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 base::ShadowingAtExitManager at_exit_manager; | 1853 base::ShadowingAtExitManager at_exit_manager; |
| 1854 | 1854 |
| 1855 return base::LaunchUnitTestsSerially( | 1855 return base::LaunchUnitTestsSerially( |
| 1856 argc, argv, | 1856 argc, argv, |
| 1857 base::Bind(&media::VDATestSuite::Run, base::Unretained(&test_suite))); | 1857 base::Bind(&media::VDATestSuite::Run, base::Unretained(&test_suite))); |
| 1858 } | 1858 } |
| OLD | NEW |