[PE] Add a fast path in GeometryMapper::LocalToAncestorClipRectInternal()
For descendant->Parent() == ancestor_clip && descendant->LocalTransformSpace() == ancestor_transform we can return the clip rect of |descendant| directly to avoid the more complex logic. This also reduces the number of entries in the clip cache, which can speed-up cache lookup. Premilinary stats show that the fast path is used for about half of all calls to the function. Bug: 803867 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I8c390e17cbc7c5e225716e6e90ac8be4dfa615d8 Reviewed-on: https://chromium-review.googlesource.com/963012Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#543201}
Showing
Please register or sign in to comment