OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/common/common.gni") | 7 import("//content/common/common.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 | 9 |
10 source_set("common") { | 10 source_set("common") { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 sources += [ | 193 sources += [ |
194 "gpu/media/android_video_decode_accelerator.cc", | 194 "gpu/media/android_video_decode_accelerator.cc", |
195 "gpu/media/android_video_decode_accelerator.h", | 195 "gpu/media/android_video_decode_accelerator.h", |
196 ] | 196 ] |
197 | 197 |
198 if (enable_webrtc) { | 198 if (enable_webrtc) { |
199 deps += [ "//third_party/libyuv" ] | 199 deps += [ "//third_party/libyuv" ] |
200 } | 200 } |
201 } | 201 } |
202 | 202 |
203 if (is_chromeos && use_x11) { | 203 if (is_chromeos) { |
204 if (cpu_arch == "arm") { | 204 if (cpu_arch == "arm" && use_x11) { |
205 sources += [ | 205 sources += [ |
206 "gpu/media/exynos_v4l2_video_device.cc", | 206 "gpu/media/exynos_v4l2_video_device.cc", |
207 "gpu/media/exynos_v4l2_video_device.h", | 207 "gpu/media/exynos_v4l2_video_device.h", |
208 "gpu/media/tegra_v4l2_video_device.cc", | 208 "gpu/media/tegra_v4l2_video_device.cc", |
209 "gpu/media/tegra_v4l2_video_device.h", | 209 "gpu/media/tegra_v4l2_video_device.h", |
210 "gpu/media/v4l2_image_processor.cc", | 210 "gpu/media/v4l2_image_processor.cc", |
211 "gpu/media/v4l2_image_processor.h", | 211 "gpu/media/v4l2_image_processor.h", |
212 "gpu/media/v4l2_video_decode_accelerator.cc", | 212 "gpu/media/v4l2_video_decode_accelerator.cc", |
213 "gpu/media/v4l2_video_decode_accelerator.h", | 213 "gpu/media/v4l2_video_decode_accelerator.h", |
214 "gpu/media/v4l2_video_device.cc", | 214 "gpu/media/v4l2_video_device.cc", |
215 "gpu/media/v4l2_video_device.h", | 215 "gpu/media/v4l2_video_device.h", |
216 "gpu/media/v4l2_video_encode_accelerator.cc", | 216 "gpu/media/v4l2_video_encode_accelerator.cc", |
217 "gpu/media/v4l2_video_encode_accelerator.h", | 217 "gpu/media/v4l2_video_encode_accelerator.h", |
218 ] | 218 ] |
219 libs = [ "EGL", "GLESv2" ] | 219 libs = [ "EGL", "GLESv2" ] |
220 } else { # !arm | 220 } else { # !arm |
221 sources += [ | 221 sources += [ |
222 "gpu/media/h264_dpb.cc", | 222 "gpu/media/h264_dpb.cc", |
223 "gpu/media/h264_dpb.h", | 223 "gpu/media/h264_dpb.h", |
224 "gpu/media/va_surface.h", | 224 "gpu/media/va_surface.h", |
225 "gpu/media/vaapi_h264_decoder.cc", | 225 "gpu/media/vaapi_h264_decoder.cc", |
226 "gpu/media/vaapi_h264_decoder.h", | 226 "gpu/media/vaapi_h264_decoder.h", |
| 227 "gpu/media/vaapi_picture_provider.cc", |
| 228 "gpu/media/vaapi_picture_provider.h", |
227 "gpu/media/vaapi_video_decode_accelerator.cc", | 229 "gpu/media/vaapi_video_decode_accelerator.cc", |
228 "gpu/media/vaapi_video_decode_accelerator.h", | 230 "gpu/media/vaapi_video_decode_accelerator.h", |
229 "gpu/media/vaapi_wrapper.cc", | 231 "gpu/media/vaapi_wrapper.cc", |
230 "gpu/media/vaapi_wrapper.h", | 232 "gpu/media/vaapi_wrapper.h", |
231 ] | 233 ] |
| 234 if (use_x11) { |
| 235 sources += [ |
| 236 "gpu/media/vaapi_picture_provider_x11.cc", |
| 237 "gpu/media/vaapi_picture_provider_x11.h", |
| 238 ] |
| 239 } else { |
| 240 sources += [ |
| 241 "gpu/media/vaapi_picture_provider_drm.cc", |
| 242 "gpu/media/vaapi_picture_provider_drm.h", |
| 243 ] |
| 244 } |
232 assert(false, "Implement generate_stubs for libva") | 245 assert(false, "Implement generate_stubs for libva") |
233 } | 246 } |
234 } | 247 } |
235 | 248 |
236 if (is_win) { | 249 if (is_win) { |
237 sources += [ | 250 sources += [ |
238 "gpu/media/dxva_video_decode_accelerator.cc", | 251 "gpu/media/dxva_video_decode_accelerator.cc", |
239 "gpu/media/dxva_video_decode_accelerator.h", | 252 "gpu/media/dxva_video_decode_accelerator.h", |
240 ] | 253 ] |
241 include_dirs += [ "//third_party/khronos" ] | 254 include_dirs += [ "//third_party/khronos" ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 293 |
281 mojom("mojo_bindings") { | 294 mojom("mojo_bindings") { |
282 sources = [ | 295 sources = [ |
283 "render_frame_setup.mojom", | 296 "render_frame_setup.mojom", |
284 ] | 297 ] |
285 | 298 |
286 deps = [ | 299 deps = [ |
287 "//mojo/public/interfaces/application:application", | 300 "//mojo/public/interfaces/application:application", |
288 ] | 301 ] |
289 } | 302 } |
OLD | NEW |