Only store previous clip rects for PaintLayers that support subsequences

Desktop / Chromium - chrishtr [chromium.org] - 13 April 2017 23:54 EDT

To do this:

2. When updating paint properties, only invalidate painting optimizations like subsequence for PaintLayers that support it (stacking context, SVG root), or have clip-related properties

BUG=692614,711413 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2810503002 Cr-Commit-Position: refs/heads/master@{#464670}

d1cf31c Only store previous clip rects for PaintLayers that support subsequences.
.../WebKit/Source/core/paint/PaintLayer.cpp | 18 +++++
third_party/WebKit/Source/core/paint/PaintLayer.h | 5 ++
.../WebKit/Source/core/paint/PaintLayerPainter.cpp | 18 +----
.../WebKit/Source/core/paint/PaintLayerTest.cpp | 43 +++++++++++
.../WebKit/Source/core/paint/PrePaintTreeWalk.cpp | 8 ++
.../Source/core/paint/PrePaintTreeWalkTest.cpp | 89 ++++++++++++++++++++--
6 files changed, 160 insertions(+), 21 deletions(-)

Upstream: git.chromium.org


  • Share