summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-02-21 22:18:45 -0700
committerJeff Sharkey <jsharkey@android.com>2018-02-22 16:12:07 -0700
commitfee8c7b42aeebf3a11b978ee657803da0dfa8147 (patch)
treef14c5c058ff5e4f187d233e185e357549afad8ff /rs/java/android/renderscript/ProgramRaster.java
parent01bb530242eea8ff32fa3e0db70cbb40951fce24 (diff)
Mechanical refactoring to improve job dumping.
First, JobStatusFunctor was really Consumer<JobStatus> before we had the java.util.function APIs, so switch everyone over. Replace most usages with lambdas; no additional runtime cost, since existing code was already creating classes. Move dump() to accept Predicate<JobStatus> for their filtering behavior, enabling more future advanced filtering using any attributes of JobStatus. Also move dump() to IndentingPrintWriter to avoid passing around tedious prefix information. Makes it much easier to print sane-looking output. Add IndentingPrintWriter support for initial prefix values. Test: manual dumpsys output looks sane Bug: 73019091 Change-Id: I4c2398443b42dfb48135ab900d4331ff6d2bb5c4
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions