Do not cull svg image or shape painting when there are transform styles
This patch stops culling out painting of svg images and svg shapes in the presence of transform styles. This was done for containers in crrev.com/575855 but needs to apply to all svg painting. SVGModelObjectPainter has been introduced so the cull rect optimization can be shared by shapes, images, and containers. A lengthy comment has been added in SVGModelObjectPainter::CullRectSkipsPainting describing why. While we're in the area and thinking about sharing code, the common outline painting code for has also been unified (SVGModelObjectPainter::PaintOutline). Bug: 865965, 862318 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I5bb3d43ae089d4bd6c617957abf9c401dfb89e0c Reviewed-on: https://chromium-review.googlesource.com/1146147 Commit-Queue: Philip Rogers <pdr@chromium.org> Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#577593}
Showing
Please register or sign in to comment