| 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 && 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 = [ |   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) { |   21     if (use_x11) { | 
|   22       sources += [ "gpu/media/va_x11.sigs" ] |   22       sources += [ "gpu/media/va_x11.sigs" ] | 
|   23     } |   23     } | 
 |   24     if (use_ozone) { | 
 |   25       sources += [ "gpu/media/va_drm.sigs" ] | 
 |   26     } | 
|   24     stubs_filename_root = "va_stubs" |   27     stubs_filename_root = "va_stubs" | 
|   25  |   28  | 
|   26     outputs = [ |   29     outputs = [ | 
|   27       "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |   30       "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 
|   28       "$target_gen_dir/gpu/media/$stubs_filename_root.h", |   31       "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 
|   29     ] |   32     ] | 
|   30     args = [ |   33     args = [ | 
|   31       "-i", |   34       "-i", | 
|   32       rebase_path("$target_gen_dir/gpu/media", root_build_dir), |   35       rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 
|   33       "-o", |   36       "-o", | 
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  322         ":libva_generate_stubs", |  325         ":libva_generate_stubs", | 
|  323         "//media", |  326         "//media", | 
|  324         "//third_party/libyuv", |  327         "//third_party/libyuv", | 
|  325       ] |  328       ] | 
|  326       if (use_x11) { |  329       if (use_x11) { | 
|  327         sources += [ |  330         sources += [ | 
|  328           "gpu/media/vaapi_tfp_picture.cc", |  331           "gpu/media/vaapi_tfp_picture.cc", | 
|  329           "gpu/media/vaapi_tfp_picture.h", |  332           "gpu/media/vaapi_tfp_picture.h", | 
|  330         ] |  333         ] | 
|  331       } |  334       } | 
 |  335       if (use_ozone) { | 
 |  336         sources += [ | 
 |  337           "gpu/media/vaapi_drm_picture.cc", | 
 |  338           "gpu/media/vaapi_drm_picture.h", | 
 |  339         ] | 
 |  340       } | 
|  332     } |  341     } | 
|  333   } |  342   } | 
|  334  |  343  | 
|  335   if (is_win) { |  344   if (is_win) { | 
|  336     sources += [ |  345     sources += [ | 
|  337       "gpu/media/dxva_video_decode_accelerator.cc", |  346       "gpu/media/dxva_video_decode_accelerator.cc", | 
|  338       "gpu/media/dxva_video_decode_accelerator.h", |  347       "gpu/media/dxva_video_decode_accelerator.h", | 
|  339     ] |  348     ] | 
|  340     include_dirs += [ "//third_party/khronos" ] |  349     include_dirs += [ "//third_party/khronos" ] | 
|  341     deps += [ "//ui/gl" ] |  350     deps += [ "//ui/gl" ] | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  380     "geolocation_service.mojom", |  389     "geolocation_service.mojom", | 
|  381     "permission_service.mojom", |  390     "permission_service.mojom", | 
|  382     "render_frame_setup.mojom", |  391     "render_frame_setup.mojom", | 
|  383   ] |  392   ] | 
|  384  |  393  | 
|  385   deps = [ |  394   deps = [ | 
|  386     "//content/public/common:mojo_bindings", |  395     "//content/public/common:mojo_bindings", | 
|  387     "//mojo/public/interfaces/application:application", |  396     "//mojo/public/interfaces/application:application", | 
|  388   ] |  397   ] | 
|  389 } |  398 } | 
| OLD | NEW |