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
committerAndre Eisenbach <eisenbach@google.com>2016-05-19 18:27:27 +0000
commit090bf551308e68b1b2a996c959b608cabd025c5c (patch)
treec1797accb1aebd430ac96a15eb8f4c98790072a3 /rs/java/android/renderscript/RenderScript.java
parent44b9f13f9cfaf2e1136a1f2baab54b229d221fe4 (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