Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: media/media_options.gni

Issue 2109753002: [Chromecast] Set use_alsa=true only for Chromecast desktop & audio. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 # Use a second declare_args() to pick up possible overrides of |use_cras|. 49 # Use a second declare_args() to pick up possible overrides of |use_cras|.
50 declare_args() { 50 declare_args() {
51 # Enables runtime selection of PulseAudio library. 51 # Enables runtime selection of PulseAudio library.
52 use_pulseaudio = false 52 use_pulseaudio = false
53 53
54 # Enables runtime selection of ALSA library for audio. 54 # Enables runtime selection of ALSA library for audio.
55 use_alsa = false 55 use_alsa = false
56 56
57 # Alsa should be used on non-Android, non-Mac POSIX systems. 57 # Alsa should be used on non-Android, non-Mac POSIX systems.
58 if (is_posix && !is_android && !is_mac) { 58 # Alsa should be used on desktop Chromecast and audio-only Chromecast builds.
59 if (is_posix && !is_android && !is_mac &&
60 (!is_chromecast || is_cast_desktop_build || disable_display)) {
59 use_alsa = true 61 use_alsa = true
60 62
61 # Pulse is not supported on Chromecast platforms. 63 # Pulse is not supported on Chromecast platforms.
62 if (!use_cras && !is_chromecast) { 64 if (!use_cras && !is_chromecast) {
63 use_pulseaudio = true 65 use_pulseaudio = true
64 } 66 }
65 } 67 }
66 } 68 }
67 69
68 declare_args() { 70 declare_args() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 "cdm", 116 "cdm",
115 "renderer", 117 "renderer",
116 ] 118 ]
117 mojo_media_host = "browser" 119 mojo_media_host = "browser"
118 } else { 120 } else {
119 mojo_media_services = [ "video_decoder" ] 121 mojo_media_services = [ "video_decoder" ]
120 mojo_media_host = "gpu" 122 mojo_media_host = "gpu"
121 } 123 }
122 } 124 }
123 } 125 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698