summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2019-12-20 11:21:02 -0800
committerPhilip P. Moltmann <moltmann@google.com>2020-01-03 12:37:23 -0800
commitda554e4de0ac8de3acaa176d299612818b9e7e1d (patch)
treea575e8a8e679ba016949511981c723518a03a101 /rs/java/android/renderscript/ProgramStore.java
parenta574814474efbc4e181e11dc85dce0457eb37393 (diff)
Collect AsyncNotedAppOp in same call as noteOp
This reduces the overhead of collecting noted app-ops to the same amount of binder calls as if we would not have the feature Before (conceptionally): --------------------------------- mode = service.noteOp() if (mode == allowed && shouldCollectAsyncOp) { fixup(message) service.noteAsyncOp() } ---------------------------------- After (conceptionally): ---------------------------------- if (shouldCollectAsyncOp) { fixup(message) } mode = service.noteOp(shouldCollectAsyncOp, message) ---------------------------------- Bug: 136505050 Test: atest CtsAppOpsTestCases Change-Id: If1b535a7c4b0f431f251c5d06cdf496c34920e23
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions