Opt in to CompositeSVG based on descendants rather than paint
This patch updates GraphicsLayer::ShouldCreateLayersAfterPaint during the CompositedLayerMapping update based on LayoutSVGRoot::HasDescendantWithCompositingReason, rather than doing this after paint based on the painted output. This is both simpler and avoids unnecessary compositing. Bug: 1132598 Change-Id: I11b6d2a32b7dc3b7f9a1b068a4806382d2cd6443 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461429Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#815236}
Showing
Please register or sign in to comment