-
Xiangjun Zhang authored
Currently the media::AudioDeviceThread is always created with REALTIME_AUDIO thread priority. However, when calling from the new Mirroring Service running in a sandboxed utility process (coming in future CLs), the REALTIME_AUDIO priority is not allowed due to sandbox syscall restrictions. Also, since the input audio data is buffered, there is no need to use REALTIME_AUDIO thread for mirroring. This CL allows media::AudioDeviceThread to be created with requested thread priority. There should be no change to existing behavior. Bug: 850352 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: Id9e724b230e14c269f262c1c4c7e2b15ac08a57d Reviewed-on: https://chromium-review.googlesource.com/1090226 Commit-Queue: Xiangjun Zhang <xjz@chromium.org> Reviewed-by:
Olga Sharonova <olka@chromium.org> Reviewed-by:
Yuri Wiitala <miu@chromium.org> Cr-Commit-Position: refs/heads/master@{#565713}
365dc9f4