Skip to content
Commit bfcf9a83 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
parent 21ba5d4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment