• Adam Barth's avatar
    Refactor PaintingContext · fc576814
    Adam Barth authored
    This patch simplifies PaintingContext with several goals:
    
    1) We now call a callback instead of assuming the caller has a single child to
       paint. This change will let us handle render objects that wish to paint more
       than one child.
    2) We now avoid creating lots of empty picture layers because we don't eagerly
       start recording pictures. Instead, we wait for the first caller to touch the
       canvas before creating the picture recorder.
    3) We now are more consistent about which values have incorporated the painting
       offset.
    fc576814
shifted_box.dart 10.4 KB