commit | 542f9ebcdf592a0c767fc3b62f42c3a62722d053 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Mar 08 18:47:43 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 08 18:47:43 2019 |
tree | 736a56e4b9fc6342802d263cacb22a47646c6b05 | |
parent | 4bebd75379f8a6b266e7de89bca6f77f6de3a08d [diff] |
[LayoutNG] Make NGBoxFragmentPainter ctor lighter This patch defers computing |NGBorderEdges| until it's necessary. The constructors of painters are very hot, called on every phase, and |NGBorderEdges| is not necessary for all phases. It is especially hot when it's painted atomically. SSM indicates 20% of paint time is consumed to paint atomically. Also moved |PhysicalFragment()| to top so that it is inline- able without LTO enabled. Bug: 936024 Change-Id: I37f8f786ccc303c503d6904ec51b6ce3a954a927 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510701 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#639091}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .