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 if (is_chromeos && use_x11 && cpu_arch != "arm") { | 10 if (is_chromeos && use_x11 && cpu_arch != "arm") { |
11 action("libva_generate_stubs") { | 11 action("libva_generate_stubs") { |
12 extra_header = "gpu/media/va_stub_header.fragment" | 12 extra_header = "gpu/media/va_stub_header.fragment" |
13 | 13 |
14 script = "../../tools/generate_stubs/generate_stubs.py" | 14 script = "../../tools/generate_stubs/generate_stubs.py" |
15 sources = [ | 15 sources = [ |
16 "gpu/media/va.sigs", | 16 "gpu/media/va.sigs", |
17 ] | 17 ] |
18 inputs = [ | 18 inputs = [ |
19 extra_header, | 19 extra_header, |
20 ] | 20 ] |
21 if (use_x11) { | |
22 sources += [ "content/common/gpu/media/va_x11.sigs" ] | |
23 } | |
21 stubs_filename_root = "va_stubs" | 24 stubs_filename_root = "va_stubs" |
22 | 25 |
23 outputs = [ | 26 outputs = [ |
24 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 27 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
25 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 28 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
26 ] | 29 ] |
27 args = [ | 30 args = [ |
28 "-i", | 31 "-i", |
29 rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 32 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
30 "-o", | 33 "-o", |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
266 sources += [ | 269 sources += [ |
267 "gpu/media/android_video_decode_accelerator.cc", | 270 "gpu/media/android_video_decode_accelerator.cc", |
268 "gpu/media/android_video_decode_accelerator.h", | 271 "gpu/media/android_video_decode_accelerator.h", |
269 ] | 272 ] |
270 | 273 |
271 if (enable_webrtc) { | 274 if (enable_webrtc) { |
272 deps += [ "//third_party/libyuv" ] | 275 deps += [ "//third_party/libyuv" ] |
273 } | 276 } |
274 } | 277 } |
275 | 278 |
276 if (is_chromeos && use_x11) { | 279 if (is_chromeos) { |
277 if (cpu_arch == "arm") { | 280 if (cpu_arch == "arm" && use_x11) { |
piman
2014/12/17 18:57:06
I don't think this is right - we don't want to use
llandwerlin-old
2014/12/17 21:24:58
The logic indicates that's what was enabled before
piman
2014/12/17 21:42:02
No... in the chromeos and !use_x11 case we would s
| |
278 sources += [ | 281 sources += [ |
279 "gpu/media/exynos_v4l2_video_device.cc", | 282 "gpu/media/exynos_v4l2_video_device.cc", |
280 "gpu/media/exynos_v4l2_video_device.h", | 283 "gpu/media/exynos_v4l2_video_device.h", |
281 "gpu/media/tegra_v4l2_video_device.cc", | 284 "gpu/media/tegra_v4l2_video_device.cc", |
282 "gpu/media/tegra_v4l2_video_device.h", | 285 "gpu/media/tegra_v4l2_video_device.h", |
283 "gpu/media/v4l2_image_processor.cc", | 286 "gpu/media/v4l2_image_processor.cc", |
284 "gpu/media/v4l2_image_processor.h", | 287 "gpu/media/v4l2_image_processor.h", |
285 "gpu/media/v4l2_video_decode_accelerator.cc", | 288 "gpu/media/v4l2_video_decode_accelerator.cc", |
286 "gpu/media/v4l2_video_decode_accelerator.h", | 289 "gpu/media/v4l2_video_decode_accelerator.h", |
287 "gpu/media/v4l2_video_device.cc", | 290 "gpu/media/v4l2_video_device.cc", |
288 "gpu/media/v4l2_video_device.h", | 291 "gpu/media/v4l2_video_device.h", |
289 "gpu/media/v4l2_video_encode_accelerator.cc", | 292 "gpu/media/v4l2_video_encode_accelerator.cc", |
290 "gpu/media/v4l2_video_encode_accelerator.h", | 293 "gpu/media/v4l2_video_encode_accelerator.h", |
291 ] | 294 ] |
292 libs = [ | 295 libs = [ |
293 "EGL", | 296 "EGL", |
294 "GLESv2", | 297 "GLESv2", |
295 ] | 298 ] |
296 } else { # !arm | 299 } else { # !arm |
297 sources += [ | 300 sources += [ |
298 "gpu/media/h264_dpb.cc", | 301 "gpu/media/h264_dpb.cc", |
299 "gpu/media/h264_dpb.h", | 302 "gpu/media/h264_dpb.h", |
300 "gpu/media/va_surface.h", | 303 "gpu/media/va_surface.h", |
301 "gpu/media/vaapi_h264_decoder.cc", | 304 "gpu/media/vaapi_h264_decoder.cc", |
302 "gpu/media/vaapi_h264_decoder.h", | 305 "gpu/media/vaapi_h264_decoder.h", |
306 "gpu/media/vaapi_picture.cc", | |
307 "gpu/media/vaapi_picture.h", | |
303 "gpu/media/vaapi_video_decode_accelerator.cc", | 308 "gpu/media/vaapi_video_decode_accelerator.cc", |
304 "gpu/media/vaapi_video_decode_accelerator.h", | 309 "gpu/media/vaapi_video_decode_accelerator.h", |
305 "gpu/media/vaapi_video_encode_accelerator.cc", | 310 "gpu/media/vaapi_video_encode_accelerator.cc", |
306 "gpu/media/vaapi_video_encode_accelerator.h", | 311 "gpu/media/vaapi_video_encode_accelerator.h", |
307 "gpu/media/vaapi_wrapper.cc", | 312 "gpu/media/vaapi_wrapper.cc", |
308 "gpu/media/vaapi_wrapper.h", | 313 "gpu/media/vaapi_wrapper.h", |
309 ] + get_target_outputs(":libva_generate_stubs") | 314 ] + get_target_outputs(":libva_generate_stubs") |
310 configs += [ | 315 configs += [ |
311 "//third_party/libva:libva_config", | 316 "//third_party/libva:libva_config", |
312 "//third_party/libyuv:libyuv_config", | 317 "//third_party/libyuv:libyuv_config", |
313 ] | 318 ] |
314 deps += [ | 319 deps += [ |
315 ":libva_generate_stubs", | 320 ":libva_generate_stubs", |
316 "//media", | 321 "//media", |
317 "//third_party/libyuv", | 322 "//third_party/libyuv", |
318 ] | 323 ] |
324 if (use_x11) { | |
325 sources += [ | |
326 "gpu/media/vaapi_tfp_picture.cc", | |
327 "gpu/media/vaapi_tfp_picture.h", | |
328 ] | |
329 } | |
319 } | 330 } |
320 } | 331 } |
321 | 332 |
322 if (is_win) { | 333 if (is_win) { |
323 sources += [ | 334 sources += [ |
324 "gpu/media/dxva_video_decode_accelerator.cc", | 335 "gpu/media/dxva_video_decode_accelerator.cc", |
325 "gpu/media/dxva_video_decode_accelerator.h", | 336 "gpu/media/dxva_video_decode_accelerator.h", |
326 ] | 337 ] |
327 include_dirs += [ "//third_party/khronos" ] | 338 include_dirs += [ "//third_party/khronos" ] |
328 deps += [ "//ui/gl" ] | 339 deps += [ "//ui/gl" ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
367 "geolocation_service.mojom", | 378 "geolocation_service.mojom", |
368 "permission_service.mojom", | 379 "permission_service.mojom", |
369 "render_frame_setup.mojom", | 380 "render_frame_setup.mojom", |
370 ] | 381 ] |
371 | 382 |
372 deps = [ | 383 deps = [ |
373 "//content/public/common:mojo_bindings", | 384 "//content/public/common:mojo_bindings", |
374 "//mojo/public/interfaces/application:application", | 385 "//mojo/public/interfaces/application:application", |
375 ] | 386 ] |
376 } | 387 } |
OLD | NEW |