• Xiangjun Zhang's avatar
    Allow AudioDeviceThread to be created with NORMAL thread priority. · 365dc9f4
    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: default avatarOlga Sharonova <olka@chromium.org>
    Reviewed-by: default avatarYuri Wiitala <miu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#565713}
    365dc9f4
audio_input_device.cc 16.7 KB