OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #if defined(OS_WIN) | 88 #if defined(OS_WIN) |
89 std::unique_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA( | 89 std::unique_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA( |
90 const gpu::GpuPreferences& gpu_preferences) const; | 90 const gpu::GpuPreferences& gpu_preferences) const; |
91 #endif | 91 #endif |
92 #if defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) | 92 #if defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) |
93 std::unique_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA( | 93 std::unique_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA( |
94 const gpu::GpuPreferences& gpu_preferences) const; | 94 const gpu::GpuPreferences& gpu_preferences) const; |
95 std::unique_ptr<media::VideoDecodeAccelerator> CreateV4L2SVDA( | 95 std::unique_ptr<media::VideoDecodeAccelerator> CreateV4L2SVDA( |
96 const gpu::GpuPreferences& gpu_preferences) const; | 96 const gpu::GpuPreferences& gpu_preferences) const; |
97 #endif | 97 #endif |
98 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) | 98 #if (defined(OS_CHROMEOS) || defined(OS_LINUX)) && defined(ARCH_CPU_X86_FAMILY) |
99 std::unique_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA( | 99 std::unique_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA( |
100 const gpu::GpuPreferences& gpu_preferences) const; | 100 const gpu::GpuPreferences& gpu_preferences) const; |
101 #endif | 101 #endif |
102 #if defined(OS_MACOSX) | 102 #if defined(OS_MACOSX) |
103 std::unique_ptr<media::VideoDecodeAccelerator> CreateVTVDA( | 103 std::unique_ptr<media::VideoDecodeAccelerator> CreateVTVDA( |
104 const gpu::GpuPreferences& gpu_preferences) const; | 104 const gpu::GpuPreferences& gpu_preferences) const; |
105 #endif | 105 #endif |
106 #if defined(OS_ANDROID) | 106 #if defined(OS_ANDROID) |
107 std::unique_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA( | 107 std::unique_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA( |
108 const gpu::GpuPreferences& gpu_preferences) const; | 108 const gpu::GpuPreferences& gpu_preferences) const; |
109 #endif | 109 #endif |
110 | 110 |
111 const GetGLContextCallback get_gl_context_cb_; | 111 const GetGLContextCallback get_gl_context_cb_; |
112 const MakeGLContextCurrentCallback make_context_current_cb_; | 112 const MakeGLContextCurrentCallback make_context_current_cb_; |
113 const BindGLImageCallback bind_image_cb_; | 113 const BindGLImageCallback bind_image_cb_; |
114 const GetGLES2DecoderCallback get_gles2_decoder_cb_; | 114 const GetGLES2DecoderCallback get_gles2_decoder_cb_; |
115 | 115 |
116 base::ThreadChecker thread_checker_; | 116 base::ThreadChecker thread_checker_; |
117 | 117 |
118 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); | 118 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
122 | 122 |
123 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 123 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
OLD | NEW |