Rework CullRect handling in SVG painters
Hoist the actual CullRect intersection test into the actual painter and only share the 'can use cull rect' test. This allows moving the check for hidden containers into a more appropriate place thus avoid checking for them when they are guaranteed not to exist. Is also avoids calling ShouldUseInfiniteCullRect() twice in SVGContainerPainter. Align SVGImagePainter to SVGShapePainter by using LocalSVGTransform() rather than LocalToSVGParentTransform() since they are both 'leaves'. Bug: 109224 Change-Id: I92af163bb8d82a22c37f2cb58911240c07e6402b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2431929Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#811623}
Showing
Please register or sign in to comment