diff options
author | Ned Burns <pixel@google.com> | 2020-01-09 21:40:23 -0500 |
---|---|---|
committer | Ned Burns <pixel@google.com> | 2020-01-09 21:47:28 -0500 |
commit | afed0351a4c4f1559085139ad5f8bf00d62e27af (patch) | |
tree | 009c4fb74a27e491f04dbcfd8c677c6b072f2ab4 /rs/java/android/renderscript/ProgramRaster.java | |
parent | b4632bca2e330dfdea959665e86153b985da5fd5 (diff) |
Implement message handling in ExecutorImpl
Previously, we were posting runnables to the queue but never doing
anything when their messages came due.
- Implements message handling (in onHandleMessage).
- Inlines HandlerExecutor superclass. It was only offering one, very
simple, method and the required super() call was awkward.
- Changes ExecutorImpl to take in a Looper instead of a Handler; we
construct the Handler for ourselves.
- Changes ExecutorImpl to be a singleton per-looper (since we're
constructing a new Handler each time).
- Changes our token to be an instance of ExecutionToken. This serves as
wrapper around the Runnable that we need to run and itself serves as
cancellation token that can be returned to the caller of
executeDelayed() etc.i
Test: manual
Change-Id: Ia986d48c675a794c6f16dca6a82cb8cbd4010741
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions