| 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 import("//ppapi/features/features.gni") | |
| 8 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
| 9 | 8 |
| 10 declare_args() { | 9 declare_args() { |
| 11 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
| 12 # using dlopen. This helps with automated detection of ABI mismatches and | 11 # using dlopen. This helps with automated detection of ABI mismatches and |
| 13 # prevents silent errors. | 12 # prevents silent errors. |
| 14 link_pulseaudio = false | 13 link_pulseaudio = false |
| 15 | 14 |
| 16 # 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 |
| 17 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, | 16 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 # hardware decoders. To do so, you will also need to update ffmpeg build files | 97 # hardware decoders. To do so, you will also need to update ffmpeg build files |
| 99 # in order to define which decoders to build in. | 98 # in order to define which decoders to build in. |
| 100 disable_ffmpeg_video_decoders = !media_use_ffmpeg || is_android | 99 disable_ffmpeg_video_decoders = !media_use_ffmpeg || is_android |
| 101 } | 100 } |
| 102 | 101 |
| 103 declare_args() { | 102 declare_args() { |
| 104 # Experiment to enable mojo media services (e.g. "renderer", "cdm", see | 103 # Experiment to enable mojo media services (e.g. "renderer", "cdm", see |
| 105 # |mojo_media_services|). When enabled, selected mojo paths will be enabled in | 104 # |mojo_media_services|). When enabled, selected mojo paths will be enabled in |
| 106 # the media pipeline and corresponding services will hosted in the selected | 105 # the media pipeline and corresponding services will hosted in the selected |
| 107 # remote process (e.g. "utility" process, see |mojo_media_host|). | 106 # remote process (e.g. "utility" process, see |mojo_media_host|). |
| 108 enable_mojo_media = is_android || is_chromecast || enable_pepper_cdms | 107 enable_mojo_media = is_android || is_chromecast |
| 109 | 108 |
| 110 # Enable the TestMojoMediaClient to be used in mojo MediaService. This is for | 109 # Enable the TestMojoMediaClient to be used in mojo MediaService. This is for |
| 111 # testing only and will override the default platform MojoMediaClient, if any. | 110 # testing only and will override the default platform MojoMediaClient, if any. |
| 112 enable_test_mojo_media_client = false | 111 enable_test_mojo_media_client = false |
| 113 | 112 |
| 114 # When enabled, this feature allows developers to use a runtime flag to | 113 # When enabled, this feature allows developers to use a runtime flag to |
| 115 # choose the implementation of the renderer that is used. On a build which | 114 # choose the implementation of the renderer that is used. On a build which |
| 116 # enables the mojo renderer, if --disable-mojo-renderer is passed at start-up, | 115 # enables the mojo renderer, if --disable-mojo-renderer is passed at start-up, |
| 117 # the "default" renderer will be used instead. Both renderer implementations | 116 # the "default" renderer will be used instead. Both renderer implementations |
| 118 # will be linked if this feature is enabled, increasing the binary size. This | 117 # will be linked if this feature is enabled, increasing the binary size. This |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 "renderer", | 158 "renderer", |
| 160 ] | 159 ] |
| 161 mojo_media_host = "browser" | 160 mojo_media_host = "browser" |
| 162 } else if (is_android) { | 161 } else if (is_android) { |
| 163 # Both chrome for Android and cast for ATV belongs to this case | 162 # Both chrome for Android and cast for ATV belongs to this case |
| 164 mojo_media_services = [ | 163 mojo_media_services = [ |
| 165 "cdm", | 164 "cdm", |
| 166 "audio_decoder", | 165 "audio_decoder", |
| 167 ] | 166 ] |
| 168 mojo_media_host = "gpu" | 167 mojo_media_host = "gpu" |
| 169 } else if (enable_pepper_cdms) { | 168 } else { |
| 170 # TODO(xhwang): Also support running "video_decoder" service in the "gpu" | 169 mojo_media_services = [ "video_decoder" ] |
| 171 # process. See http://crbug.com/664364 | 170 mojo_media_host = "gpu" |
| 172 mojo_media_services = [ "cdm" ] | |
| 173 mojo_media_host = "utility" | |
| 174 } | 171 } |
| 175 } | 172 } |
| 176 } | 173 } |
| 177 | 174 |
| 178 declare_args() { | 175 declare_args() { |
| 179 # This switch defines whether the Media Remoting implementation will be built. | 176 # This switch defines whether the Media Remoting implementation will be built. |
| 180 # When enabled, media is allowed to be renderer and played back on remote | 177 # When enabled, media is allowed to be renderer and played back on remote |
| 181 # devices when the tab is being casted and other conditions are met. | 178 # devices when the tab is being casted and other conditions are met. |
| 182 enable_media_remoting = !is_chromecast && !is_ios && !is_android | 179 enable_media_remoting = !is_chromecast && !is_ios && !is_android |
| 183 } | 180 } |
| OLD | NEW |