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 && 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 = [ "gpu/media/va.sigs" ] | 15 sources = [ "gpu/media/va.sigs" ] |
| 16 if (use_x11) { |
| 17 sources += [ "content/common/gpu/media/va_x11.sigs" ] |
| 18 } |
| 19 if (use_ozone) { |
| 20 sources += [ "content/common/gpu/media/va_drm.sigs" ] |
| 21 } |
16 source_prereqs = [ extra_header ] | 22 source_prereqs = [ extra_header ] |
17 stubs_filename_root = "va_stubs" | 23 stubs_filename_root = "va_stubs" |
18 | 24 |
19 outputs = [ | 25 outputs = [ |
20 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 26 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
21 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 27 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
22 ] | 28 ] |
23 args = [ | 29 args = [ |
24 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 30 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
25 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 31 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 sources += [ | 227 sources += [ |
222 "gpu/media/android_video_decode_accelerator.cc", | 228 "gpu/media/android_video_decode_accelerator.cc", |
223 "gpu/media/android_video_decode_accelerator.h", | 229 "gpu/media/android_video_decode_accelerator.h", |
224 ] | 230 ] |
225 | 231 |
226 if (enable_webrtc) { | 232 if (enable_webrtc) { |
227 deps += [ "//third_party/libyuv" ] | 233 deps += [ "//third_party/libyuv" ] |
228 } | 234 } |
229 } | 235 } |
230 | 236 |
231 if (is_chromeos && use_x11) { | 237 if (is_chromeos) { |
232 if (cpu_arch == "arm") { | 238 if (cpu_arch == "arm" && use_x11) { |
233 sources += [ | 239 sources += [ |
234 "gpu/media/exynos_v4l2_video_device.cc", | 240 "gpu/media/exynos_v4l2_video_device.cc", |
235 "gpu/media/exynos_v4l2_video_device.h", | 241 "gpu/media/exynos_v4l2_video_device.h", |
236 "gpu/media/tegra_v4l2_video_device.cc", | 242 "gpu/media/tegra_v4l2_video_device.cc", |
237 "gpu/media/tegra_v4l2_video_device.h", | 243 "gpu/media/tegra_v4l2_video_device.h", |
238 "gpu/media/v4l2_image_processor.cc", | 244 "gpu/media/v4l2_image_processor.cc", |
239 "gpu/media/v4l2_image_processor.h", | 245 "gpu/media/v4l2_image_processor.h", |
240 "gpu/media/v4l2_video_decode_accelerator.cc", | 246 "gpu/media/v4l2_video_decode_accelerator.cc", |
241 "gpu/media/v4l2_video_decode_accelerator.h", | 247 "gpu/media/v4l2_video_decode_accelerator.h", |
242 "gpu/media/v4l2_video_device.cc", | 248 "gpu/media/v4l2_video_device.cc", |
243 "gpu/media/v4l2_video_device.h", | 249 "gpu/media/v4l2_video_device.h", |
244 "gpu/media/v4l2_video_encode_accelerator.cc", | 250 "gpu/media/v4l2_video_encode_accelerator.cc", |
245 "gpu/media/v4l2_video_encode_accelerator.h", | 251 "gpu/media/v4l2_video_encode_accelerator.h", |
246 ] | 252 ] |
247 libs = [ "EGL", "GLESv2" ] | 253 libs = [ "EGL", "GLESv2" ] |
248 } else { # !arm | 254 } else { # !arm |
249 sources += [ | 255 sources += [ |
250 "gpu/media/h264_dpb.cc", | 256 "gpu/media/h264_dpb.cc", |
251 "gpu/media/h264_dpb.h", | 257 "gpu/media/h264_dpb.h", |
252 "gpu/media/va_surface.h", | 258 "gpu/media/va_surface.h", |
253 "gpu/media/vaapi_h264_decoder.cc", | 259 "gpu/media/vaapi_h264_decoder.cc", |
254 "gpu/media/vaapi_h264_decoder.h", | 260 "gpu/media/vaapi_h264_decoder.h", |
| 261 "gpu/media/vaapi_picture.cc", |
| 262 "gpu/media/vaapi_picture.h", |
255 "gpu/media/vaapi_video_decode_accelerator.cc", | 263 "gpu/media/vaapi_video_decode_accelerator.cc", |
256 "gpu/media/vaapi_video_decode_accelerator.h", | 264 "gpu/media/vaapi_video_decode_accelerator.h", |
257 "gpu/media/vaapi_video_encode_accelerator.cc", | 265 "gpu/media/vaapi_video_encode_accelerator.cc", |
258 "gpu/media/vaapi_video_encode_accelerator.h", | 266 "gpu/media/vaapi_video_encode_accelerator.h", |
259 "gpu/media/vaapi_wrapper.cc", | 267 "gpu/media/vaapi_wrapper.cc", |
260 "gpu/media/vaapi_wrapper.h", | 268 "gpu/media/vaapi_wrapper.h", |
261 ] + get_target_outputs(":libva_generate_stubs") | 269 ] + get_target_outputs(":libva_generate_stubs") |
262 configs += [ | 270 configs += [ |
263 "//third_party/libva:libva_config", | 271 "//third_party/libva:libva_config", |
264 "//third_party/libyuv:libyuv_config", | 272 "//third_party/libyuv:libyuv_config", |
265 ] | 273 ] |
266 deps += [ | 274 deps += [ |
267 ":libva_generate_stubs", | 275 ":libva_generate_stubs", |
268 "//media", | 276 "//media", |
269 "//third_party/libyuv", | 277 "//third_party/libyuv", |
270 ] | 278 ] |
| 279 if (use_x11) { |
| 280 sources += [ |
| 281 "gpu/media/vaapi_tfp_picture.cc", |
| 282 "gpu/media/vaapi_tfp_picture.h", |
| 283 ] |
| 284 } else { |
| 285 sources += [ |
| 286 "gpu/media/vaapi_drm_picture.cc", |
| 287 "gpu/media/vaapi_drm_picture.h", |
| 288 ] |
| 289 } |
271 } | 290 } |
272 } | 291 } |
273 | 292 |
274 if (is_win) { | 293 if (is_win) { |
275 sources += [ | 294 sources += [ |
276 "gpu/media/dxva_video_decode_accelerator.cc", | 295 "gpu/media/dxva_video_decode_accelerator.cc", |
277 "gpu/media/dxva_video_decode_accelerator.h", | 296 "gpu/media/dxva_video_decode_accelerator.h", |
278 ] | 297 ] |
279 include_dirs += [ "//third_party/khronos" ] | 298 include_dirs += [ "//third_party/khronos" ] |
280 deps += [ | 299 deps += [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 337 |
319 mojom("mojo_bindings") { | 338 mojom("mojo_bindings") { |
320 sources = [ | 339 sources = [ |
321 "render_frame_setup.mojom", | 340 "render_frame_setup.mojom", |
322 ] | 341 ] |
323 | 342 |
324 deps = [ | 343 deps = [ |
325 "//mojo/public/interfaces/application:application", | 344 "//mojo/public/interfaces/application:application", |
326 ] | 345 ] |
327 } | 346 } |
OLD | NEW |