summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2016-12-06 14:35:32 -0800
committerPhilip P. Moltmann <moltmann@google.com>2016-12-07 10:33:21 -0800
commitc543b56706b13940156df664816ade473e1a0a22 (patch)
treebc4e367a86dfbe17748ea48a8fd9e51fffab66dc /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent929a81b81dc5ebdedf0fb4ba0aaa0ba544829304 (diff)
Only persist last Shared Preferences state
If multiple async shared preferences writes are queued, all but the last one can be ignored as they will be overwritten by the last one anyway. For commit() we need to make sure that we have at least persisted the state of the commit. Generation counts are 64 bit, hence they never overflow. Test: Produced a lot of SharedPreferences.Editor.apply and did not see excessive writes anymore, ran SharedPreferences CTS tests Bug: 33385963 Change-Id: I3968ed4b71befee6eeb90bea1666a0bb646544f6
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions