| 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/headless_build.gni") | 7 import("//build/config/headless_build.gni") | 
| 7 | 8 | 
| 8 declare_args() { | 9 declare_args() { | 
| 9   # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 10   # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 
| 10   # using dlopen. This helps with automated detection of ABI mismatches and | 11   # using dlopen. This helps with automated detection of ABI mismatches and | 
| 11   # prevents silent errors. | 12   # prevents silent errors. | 
| 12   link_pulseaudio = false | 13   link_pulseaudio = false | 
| 13 | 14 | 
| 14   # Enable usage of FFmpeg within the media library. Used for most software | 15   # Enable usage of FFmpeg within the media library. Used for most software | 
| 15   # based decoding, demuxing, and sometimes optimized FFTs. If disabled, | 16   # based decoding, demuxing, and sometimes optimized FFTs. If disabled, | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 41       (!is_chromecast || is_cast_desktop_build)) { | 42       (!is_chromecast || is_cast_desktop_build)) { | 
| 42     use_alsa = true | 43     use_alsa = true | 
| 43     if (!use_cras) { | 44     if (!use_cras) { | 
| 44       use_pulseaudio = true | 45       use_pulseaudio = true | 
| 45     } | 46     } | 
| 46   } | 47   } | 
| 47 | 48 | 
| 48   # Use low-memory buffers on non-Android builds of Chromecast. | 49   # Use low-memory buffers on non-Android builds of Chromecast. | 
| 49   use_low_memory_buffer = is_chromecast && !is_android | 50   use_low_memory_buffer = is_chromecast && !is_android | 
| 50 | 51 | 
| 51   enable_mse_mpeg2ts_stream_parser = is_chromecast | 52   # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since | 
|  | 53   # it only provides demuxing, and is only useful for AC3/EAC3 audio | 
|  | 54   # pass-through to HDMI sink on Chromecast. | 
|  | 55   enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast | 
|  | 56 | 
|  | 57   enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast | 
| 52 | 58 | 
| 53   # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 59   # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 
| 54   # platform. Enable by default for Chromecast. | 60   # platform. Enable by default for Chromecast. | 
| 55   enable_hevc_demuxing = is_chromecast | 61   enable_hevc_demuxing = is_chromecast | 
| 56 | 62 | 
| 57   # Experiment to enable mojo media application: http://crbug.com/431776 | 63   # Experiment to enable mojo media application: http://crbug.com/431776 | 
| 58   # Valid options are: | 64   # Valid options are: | 
| 59   # - "none": Do not use mojo media application. | 65   # - "none": Do not use mojo media application. | 
| 60   # - "browser": Use mojo media application hosted in the browser process. | 66   # - "browser": Use mojo media application hosted in the browser process. | 
| 61   # - "gpu": Use mojo media application hosted in the gpu process. | 67   # - "gpu": Use mojo media application hosted in the gpu process. | 
| 62   # - "utility": Use mojo media application hosted in the utility process. | 68   # - "utility": Use mojo media application hosted in the utility process. | 
| 63   enable_mojo_media = "none" | 69   enable_mojo_media = "none" | 
| 64 | 70 | 
| 65   # TODO(GYP): This should be a platform define. | 71   # TODO(GYP): This should be a platform define. | 
| 66   is_openbsd = false | 72   is_openbsd = false | 
| 67 } | 73 } | 
| OLD | NEW | 
|---|