Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Side by Side Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 14914009: VAVDA: Redesign stage 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 #include "base/utf_string_conversions.h" 41 #include "base/utf_string_conversions.h"
42 #include "content/common/gpu/media/rendering_helper.h" 42 #include "content/common/gpu/media/rendering_helper.h"
43 #include "content/public/common/content_switches.h" 43 #include "content/public/common/content_switches.h"
44 44
45 #if defined(OS_WIN) 45 #if defined(OS_WIN)
46 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" 46 #include "content/common/gpu/media/dxva_video_decode_accelerator.h"
47 #elif defined(OS_CHROMEOS) 47 #elif defined(OS_CHROMEOS)
48 #if defined(ARCH_CPU_ARMEL) 48 #if defined(ARCH_CPU_ARMEL)
49 #include "content/common/gpu/media/exynos_video_decode_accelerator.h" 49 #include "content/common/gpu/media/exynos_video_decode_accelerator.h"
50 #elif defined(ARCH_CPU_X86_FAMILY) 50 #elif defined(ARCH_CPU_X86_FAMILY)
51 #include "content/common/gpu/media/vaapi_delegate.h"
51 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" 52 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h"
52 #endif // ARCH_CPU_ARMEL 53 #endif // ARCH_CPU_ARMEL
53 #else 54 #else
54 #error The VideoAccelerator tests are not supported on this platform. 55 #error The VideoAccelerator tests are not supported on this platform.
55 #endif // OS_WIN 56 #endif // OS_WIN
56 57
57 using media::VideoDecodeAccelerator; 58 using media::VideoDecodeAccelerator;
58 59
59 namespace content { 60 namespace content {
60 namespace { 61 namespace {
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 968
968 base::ShadowingAtExitManager at_exit_manager; 969 base::ShadowingAtExitManager at_exit_manager;
969 content::RenderingHelper::InitializePlatform(); 970 content::RenderingHelper::InitializePlatform();
970 971
971 #if defined(OS_WIN) 972 #if defined(OS_WIN)
972 content::DXVAVideoDecodeAccelerator::PreSandboxInitialization(); 973 content::DXVAVideoDecodeAccelerator::PreSandboxInitialization();
973 #elif defined(OS_CHROMEOS) 974 #elif defined(OS_CHROMEOS)
974 #if defined(ARCH_CPU_ARMEL) 975 #if defined(ARCH_CPU_ARMEL)
975 content::ExynosVideoDecodeAccelerator::PreSandboxInitialization(); 976 content::ExynosVideoDecodeAccelerator::PreSandboxInitialization();
976 #elif defined(ARCH_CPU_X86_FAMILY) 977 #elif defined(ARCH_CPU_X86_FAMILY)
977 content::VaapiVideoDecodeAccelerator::PreSandboxInitialization(); 978 content::VaapiDelegate::PreSandboxInitialization();
978 #endif // ARCH_CPU_ARMEL 979 #endif // ARCH_CPU_ARMEL
979 #endif // OS_CHROMEOS 980 #endif // OS_CHROMEOS
980 981
981 return RUN_ALL_TESTS(); 982 return RUN_ALL_TESTS();
982 } 983 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698