summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorSanket Agarwal <sanketa@google.com>2016-04-21 14:10:55 -0700
committerPavlin Radoslavov <pavlin@google.com>2016-06-03 01:04:43 +0000
commit2d0c96c908fb713cc37de16dbab60288968ab0be (patch)
tree22a0b283df9ede3bb9bccd6a8c97fcf924070fa1 /rs/java/android/renderscript/RenderScript.java
parent4d14e9d461fe60c38c8ec4348a21f7b27de06814 (diff)
While turning OFF do not honor ON requests.
Native stack does not handle being put from OFF -> ON state without doing a complete cleanup. Hence instead of going from start -> ON -> OFF -> cleanup it goes start -> ON -> OFF ->ON -> ... usually leads to race conditions down the road in native. This patch is a workaround so that we can throw away the requests if we are in currently "turning off" phase. The side-effect would be that user will need to turn it ON again. The race happens when the turn OFF time is longer but usually it is found to be close to order of seconds hence the wait should be bounded. Bug: b/28318203 Change-Id: I14f6633f31311e5b561e1dcbc8a9d6d2a5dd6fdc
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions