haikuwebkit/LayoutTests/compositing/backing/transition-extent-expected.txt

32 lines
706 B
Plaintext
Raw Permalink Normal View History

WebContent jetsams on Sony lens webpage due to spike of IOSurfaces https://bugs.webkit.org/show_bug.cgi?id=207493 rdar://problem/59020443 Reviewed by Zalan Bujtas. Source/WebCore: There were three issues that contributed to massive backing store allocation on <https://www.sony.com/electronics/lenses/t/camera-lenses>. The first, fixed in r256095, was that the Web Animations code unioned the untransitioning bounds with the transitioning bounds, causing the computation of large extent rects. The second, fixed in r256181, was that GraphicsLayerCA would keep hold of a transform animation for an extra frame, causing a rendering update where RenderLayerBacking::updateGeometry() would have cleared the extent, but GraphicsLayerCA still thought transform was animating, causing GraphicsLayerCA::updateCoverage() to keep backing store attached. This patch is the final fix; when animations start and end, we need to ensure that RenderLayerBacking::updateGeometry() is called so that we compute the animation extent in the same frame that adds the animation. Test: compositing/backing/transition-extent.html * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::startAnimation): (WebCore::RenderLayerBacking::animationFinished): LayoutTests: Test with an out-of-view transitioning element which should not get backing store. * compositing/backing/transition-extent-expected.txt: Added. * compositing/backing/transition-extent.html: Added. * platform/ios-wk2/compositing/backing/transition-extent-expected.txt: Added. Canonical link: https://commits.webkit.org/220495@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-10 22:27:47 +00:00
The second box should not have attached backing store.
(GraphicsLayer
(anchor 0.00 0.00)
(bounds 785.00 2024.00)
(backingStoreAttached 1)
(children 1
(GraphicsLayer
(bounds 785.00 2024.00)
(contentsOpaque 1)
(backingStoreAttached 1)
(children 2
(GraphicsLayer
(position 20.00 20.00)
(bounds 100.00 100.00)
(contentsOpaque 1)
(drawsContent 1)
(backingStoreAttached 1)
)
(GraphicsLayer
(position 20.00 1500.00)
(bounds 100.00 100.00)
(contentsOpaque 1)
(drawsContent 1)
(backingStoreAttached 0)
)
)
)
)
)
visible boxhidden box