diff options
author | Andres Morales <anmorales@google.com> | 2016-02-12 18:19:52 -0800 |
---|---|---|
committer | Andres Morales <anmorales@google.com> | 2016-02-17 12:16:06 -0800 |
commit | 11f02d7e522ec8742f7ef533c252e04e24b93f6b (patch) | |
tree | 75abb04a3a62ca20be8fceb90b6751db00d3c282 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | af9aa07fbdcabf873efe7c27862e7825dbdfdb88 (diff) |
allow for slow FrameMetricsListeners
A slow listener could cause a race in the NotifyHandler
where the single reference to the buffer to send would get
updated when it shouldn't have been.
Switch to a queue of available buffers to prevent this race.
Also, stop setting and clearing the observer reference and instead
incStrong/decStrong to mark temporary strong ownership without
colliding with other owners in flight.
Bug: 27097094
Change-Id: Iee647bfae8b80019b6d8290179eed3973230901f
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions