[SPv175+] Improve visual rect mapping performance
Add ChunkToLayerMapper to reduce repeated costs when mapping many rects from the same chunk state to the same layer state. It also tries to reuse computed transforms and clips across chunk states to the same layer state. Performance: - cluster telemetry: https://ct.skia.org/results/cluster-telemetry/tasks/chromium_perf_runs/wangxianzhu-20180308192816/html/index.html 3.5% improvement of record_time - pinpoint: https://pinpoint-dot-chromeperf.appspot.com/results2/17a3d0fc440000?r=chromium%4054ab408&s=%25%CE%94avg&g=name&c=0 6% improvement of record_time Bug: 803867 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I8c20ff7525894767e601270e2cdd291828941f05 Reviewed-on: https://chromium-review.googlesource.com/952291 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#542274}
Showing
This diff is collapsed.
Please register or sign in to comment