[Chromecast] Extract Sequencer from Controller.
This will allow other Observables and potentially others to use Sequencer. Added tests. Improved the efficiency of Sequencer. The old version used recursion heavily, which meant that the stack could grow arbitrarily large. The new version flattens the stack and avoids wrapping Runnables in other Runnables, saving both stack and heap space. Bug: None Test: cast_base_junit_tests Change-Id: I401a6fac6f2029e7d2744a459e03c64dd7a311ee Reviewed-on: https://chromium-review.googlesource.com/1187633Reviewed-by:Simeon Anfinrud <sanfin@chromium.org> Cr-Commit-Position: refs/heads/master@{#594418}
Showing
Please register or sign in to comment