Remove no-op paint layer flag and compositing state query
First in a series of changes to get rid of the DisableCompositingQueryAsserts in PaintLayerPainter::Paint. kPaintLayerUncachedClipRects is only used to determine whether a paint layer should create a subsequence (for potential benefits of caching/ reusing the subsequence). However, it is currently only set if kGlobalPaintFlattenCompositingLayers is set (either manually in data_transfer.cc or via the code in PaintLayerPainter::Paint). If that global flag is set ShouldCreateSubsequence always returns false, so the kPaintLayerUncachedClipRects flag is unnecessary. Removing this code gets rid of 1 out of 3 compositing queries in this codepath. Bug: 1007989 Change-Id: I59cddc51a65c9acd8e134845d7c9c4b6320fc4d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864414Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Daniel Libby <dlibby@microsoft.com> Cr-Commit-Position: refs/heads/master@{#706973}
Showing
Please register or sign in to comment