[SPv175+] Revert "Don't output OverflowClip if InnerBorderRadiusClip already has the same rect"
This reverts commit c422bd5a (reviewed on crrev.com/c/934923). The CL was to reduce number of paint property nodes and paint operations for objects with border-radius and overflow-clip and the clip rects are the same. Revert because: - Border radius with overflow clip is rare; - Hiding ObjectPaintProperties::OverflowClip() and exposing OverflowOrInnerBorderRadiusClip() was confusing, and I would not like to hide OverflowClip() again after crrev.com/c/1026941; - The relationship between omitting OverflowClip and clip for hit testing is complex and tricky. Sometimes omitting OverflowClip causes full subtree property update when we just need a clip for hit testing. The cost is much bigger than saving just one paint property node and 3 paint operations. Cluster-telemetry shows only 0.39% increase of paint op count with this CL: https://ct.skia.org/results/cluster-telemetry/tasks/chromium_perf_runs/wangxianzhu-20180506194029/html/index.html Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I7c25a727d2f0bfa52dda4151e817ac71d5feb5c7 Reviewed-on: https://chromium-review.googlesource.com/1046152 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#556614}
Showing
2.94 KB
2.84 KB
This diff is collapsed.