| 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/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
| 10 # using dlopen. This helps with automated detection of ABI mismatches and | 10 # using dlopen. This helps with automated detection of ABI mismatches and |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since | 35 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since |
| 36 # it only provides demuxing, and is only useful for AC3/EAC3 audio | 36 # it only provides demuxing, and is only useful for AC3/EAC3 audio |
| 37 # pass-through to HDMI sink on Chromecast. | 37 # pass-through to HDMI sink on Chromecast. |
| 38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast | 38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast |
| 39 | 39 |
| 40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast | 40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast |
| 41 | 41 |
| 42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the |
| 43 # platform. Enable by default for Chromecast. | 43 # platform. Enable by default for Chromecast. |
| 44 enable_hevc_demuxing = proprietary_codecs && is_chromecast | 44 enable_hevc_demuxing = proprietary_codecs && is_chromecast |
| 45 |
| 46 # Allow supporting of hardware secured codecs. |
| 47 enable_hw_secure_codec = is_android || is_chromecast |
| 45 } | 48 } |
| 46 | 49 |
| 47 # Use a second declare_args() to pick up possible overrides of |use_cras|. | 50 # Use a second declare_args() to pick up possible overrides of |use_cras|. |
| 48 declare_args() { | 51 declare_args() { |
| 49 # Enables runtime selection of PulseAudio library. | 52 # Enables runtime selection of PulseAudio library. |
| 50 use_pulseaudio = false | 53 use_pulseaudio = false |
| 51 | 54 |
| 52 # Enables runtime selection of ALSA library for audio. | 55 # Enables runtime selection of ALSA library for audio. |
| 53 use_alsa = false | 56 use_alsa = false |
| 54 | 57 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 "cdm", | 115 "cdm", |
| 113 "renderer", | 116 "renderer", |
| 114 ] | 117 ] |
| 115 mojo_media_host = "browser" | 118 mojo_media_host = "browser" |
| 116 } else { | 119 } else { |
| 117 mojo_media_services = [ "cdm" ] | 120 mojo_media_services = [ "cdm" ] |
| 118 mojo_media_host = "utility" | 121 mojo_media_host = "utility" |
| 119 } | 122 } |
| 120 } | 123 } |
| 121 } | 124 } |
| OLD | NEW |