Avoid constructing a local PaintLayer in calls to Location().
This presumably avoids defeating a RVO optimization in the compiler, and recovers nearly all of the performance lost in the referenced bug in local testing on Linux. Bug: 984965 Change-Id: I99567cc96391d410e71aba2fe4c2d29d5324fd11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717923 Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Reviewed-by:vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#681146}
Showing
Please register or sign in to comment