diff options
author | Yohei Yukawa <yukawa@google.com> | 2018-09-22 13:36:47 -0700 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2018-09-22 13:36:47 -0700 |
commit | bfcf9a83212eaa9a6e5bb6302cfd396162e0d5fd (patch) | |
tree | d66d38280e5a26e4f4a244f543f1554c5a6d4985 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 21ba5d4f3f75365dd3251da6da0a8aa0c9ca0423 (diff) |
Recycle PooledLambda in CameraDeviceImpl.CameraDeviceCallbacks
PooledRunnable has a nice optional method recycleOnUse(), which can be
used if the Runnable is guaranteed to be executed at most once.
By calling this method, PooledRunnable instance will be auto-recycled
into the internal object pool once it's executed.
Test: presubmit
Change-Id: I6ff341be5d0abddba8134489950be0b7c1affcbb
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions