• Xianzhu Wang's avatar
    [SPv175+] paint_dirty_rect mapping · 369a8a8f
    Xianzhu Wang authored
    Extend PaintLayerPainter::AdjustForPaintOffsetTranslation() which
    adjusted paint_dirty_rect based on PaintOffsetTranslation to
    AdjustForPaintProperties() which (if needed) maps paint_dirty_rect
    from the root layer to the current layer dealing with more cases:
    - The existing PaintOffsetTranslation handling;
    - Fixed layer whose transform state may escape the root layer's
      transform state;
    - Scroll offsets.
    
    This fixes most of the failures of spv175+rls.
    
    Bug: 793675
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
    Change-Id: I400c9da7d215132247c1b4e631be692070fdb655
    Reviewed-on: https://chromium-review.googlesource.com/827671
    Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
    Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#524458}
    369a8a8f
enable-slimming-paint-v2 123 KB