diff options
author | Riddle Hsu <riddlehsu@google.com> | 2021-01-27 16:07:49 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2021-01-29 12:41:03 +0800 |
commit | 9b7603b58c81d0069dba9126e3a8d9827cae66c6 (patch) | |
tree | f07e8f4a7fc0f1545385d13412100e297f089c0e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 8241f19a0303d48dc723599d931af33fc2cef369 (diff) |
Remove WM lock from the path of service operations
The method WPC#areBackgroundFgsStartsAllowed may be called
frequently from ActiveServices when checking if foreground
service is allowed to start. Because it usually has no window
related operation, there should not have lock contention
from window manager.
This only changes to use fine grained lock and volatile fields.
The logic is the same as original.
Bug: 177268056
Test: BackgroundActivityLaunchTest ActivityRecordTests
Change-Id: Ia3ef5b436ff09ea0968776fa7c8ea86112e356d2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions