diff options
author | Narayan Kamath <narayan@google.com> | 2018-01-08 12:20:28 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2018-01-08 12:43:29 +0000 |
commit | ee07f627c947a07533b1f5d0d5e559a17e934e99 (patch) | |
tree | c201253706bacd53c7f761f4b7a4ecca7d07f7bd /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ab4c1eaa41fb7fe2b7cbf0982bc6abbfe92e094a (diff) |
WorkSource: Fix WorkSource#remove for chained worksources.
- It doesn't make sense to clear the list of WorkChains if we're
remove is called with a WorkSource that has no chains.
- The early return for mNum <= 0 is faulty because it incorrectly
returns early for WorkSources that have workChains but no flat
UIDs.
Test: WorkSourceTest
Bug: 62390666
Change-Id: I4c0e69bdd7c114b41329aa329d1c1d08a8cb9b59
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions