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("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 declare_args() { | 70 declare_args() { |
71 # Experiment to enable mojo media services (e.g. "renderer", "cdm", see | 71 # Experiment to enable mojo media services (e.g. "renderer", "cdm", see |
72 # |mojo_media_services|). When enabled, selected mojo paths will be enabled in | 72 # |mojo_media_services|). When enabled, selected mojo paths will be enabled in |
73 # the media pipeline and corresponding services will hosted in the selected | 73 # the media pipeline and corresponding services will hosted in the selected |
74 # remote process (e.g. "utility" process, see |mojo_media_host|). | 74 # remote process (e.g. "utility" process, see |mojo_media_host|). |
75 enable_mojo_media = is_android || (is_chromecast && !is_cast_desktop_build) | 75 enable_mojo_media = is_android || (is_chromecast && !is_cast_desktop_build) |
76 | 76 |
77 # Enable the TestMojoMediaClient to be used in MojoMediaApplication. This is | 77 # Enable the TestMojoMediaClient to be used in MojoMediaApplication. This is |
78 # for testing only and will override the default platform MojoMediaClient. | 78 # for testing only and will override the default platform MojoMediaClient. |
79 enable_test_mojo_media_client = false | 79 enable_test_mojo_media_client = false |
80 | |
81 # Used to enable mojo WebAudio rendering service. | |
82 enable_mojo_audio = true | |
80 } | 83 } |
81 | 84 |
82 # Use a second declare_args() to pick up possible overrides of enable_mojo_media | 85 # Use a second declare_args() to pick up possible overrides of enable_mojo_media |
83 # from --args command line flags. See "gn help declare_args". | 86 # from --args command line flags. See "gn help declare_args". |
84 declare_args() { | 87 declare_args() { |
85 # A list of mojo media services that should be used in the media pipeline. | 88 # A list of mojo media services that should be used in the media pipeline. |
86 # Must not be empty if |enable_mojo_media| is true. | 89 # Must not be empty if |enable_mojo_media| is true. |
87 # Valid entries in the list are: | 90 # Valid entries in the list are: |
88 # - "renderer": Use mojo-based media Renderer service. | 91 # - "renderer": Use mojo-based media Renderer service. |
89 # - "cdm": Use mojo-based Content Decryption Module. | 92 # - "cdm": Use mojo-based Content Decryption Module. |
(...skipping 25 matching lines...) Expand all Loading... | |
115 mojo_media_services = [ | 118 mojo_media_services = [ |
116 "cdm", | 119 "cdm", |
117 "renderer", | 120 "renderer", |
118 ] | 121 ] |
119 mojo_media_host = "browser" | 122 mojo_media_host = "browser" |
120 } else { | 123 } else { |
121 mojo_media_services = [ "video_decoder" ] | 124 mojo_media_services = [ "video_decoder" ] |
122 mojo_media_host = "gpu" | 125 mojo_media_host = "gpu" |
123 } | 126 } |
124 } | 127 } |
128 | |
129 # The process to host the mojo audio application. | |
130 # Valid options are: | |
131 # - "none": Do not use mojo audio application. | |
132 # - "browser": Use mojo audio application hosted in the browser process. | |
133 # - "gpu": Use mojo audio application hosted in the gpu process. | |
o1ka
2016/09/02 07:31:46
Where does this list of options come from?
| |
134 # - "utility": Use mojo audio application hosted in the utility process. | |
135 mojo_audio_host = "none" | |
136 | |
137 if (enable_mojo_audio) { | |
138 mojo_audio_host = "browser" | |
139 } | |
125 } | 140 } |
141 | |
142 if (enable_mojo_audio) { | |
143 assert(mojo_audio_host == "browser", | |
144 "Mojo audio not supported outside browser process.") | |
145 } else { | |
146 assert(mojo_audio_host == "none", "Mojo audio is not enabled.") | |
147 } | |
OLD | NEW |