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