[SPv175] Delay translate/clip/effect conversion (to cc display item list).
This patch delays the recording of the translate/clip/effect until we are confident that the operations will affect anything meaningful. This eliminates the cases of save/clip/restore for example, since it skips recording these operations. Note that it also adds an early out to BoxPainterBase when we're not painting either image or color (ie transparent). Without the early out the record which is generated has a clip due to scroll adjustment, and it's hard to say with a non-empty record whether it actually draws anything. Specifically from the bug, this eliminates the sequence - save - translate - save - clip rect - restore - restore However, there is another sequence of - save - translate - restore which isn't coming from this code which still remains. R=wangxianzhu@chromium.org, chrishtr@chromium.org Bug: 795017 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Id750ead924deec5d208cc9d52b8bb873d448d3e0 Reviewed-on: https://chromium-review.googlesource.com/900264Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#534513}
Showing
Please register or sign in to comment