• Ian Hickson's avatar
    Flush microtasks after transient callbacks are run. (#9702) · e8c46927
    Ian Hickson authored
    This splits the frame pipeline into two, beginFrame and drawFrame.
    
    As part of making this change I added some debugging hooks that helped
    debug the issues that came up:
    
     * I added debugPrintScheduleFrameStacks which prints a stack whenever
       a frame is actually scheduled, so you can see why frames are being
       scheduled.
    
     * I added some toString output to EditableText and RawKeyboardListener.
    
     * I added a scheduler_tester.dart library for scheduler library tests.
    
     * I changed the test framework to flush microtasks before pumping.
    
     * Some asserts that had the old string literal form were replaced by
       asserts with messages.
    
    I also fixed a few subtle bugs that this uncovered:
    
     * setState() now calls `ensureVisualUpdate`, rather than
       `scheduleFrame`. This means that calling it from an
       AnimationController callback does not actually schedule an extra
       redundant frame as it used to.
    
     * I corrected some documentation.
    e8c46927
Name
Last commit
Last update
..
assertions_test.dart Loading commit data...
bit_field_test.dart Loading commit data...
caching_iterable_test.dart Loading commit data...
capture_output.dart Loading commit data...
change_notifier_test.dart Loading commit data...
covariant_templates_test.dart Loading commit data...
error_reporting_test.dart Loading commit data...
licenses_test.dart Loading commit data...
print_test.dart Loading commit data...
serialization_test.dart Loading commit data...
service_extensions_test.dart Loading commit data...
stack_trace_test.dart Loading commit data...
synchronous_future_test.dart Loading commit data...
tree_diagnostics_mixin_test.dart Loading commit data...