Summary: | Assertion failure !isInAcceleratedCompositingMode() in DrawingAreaProxyCoordinatedGraphics::incorporateUpdate when forceCompositingMode is turned on | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tomoki Imai <tomoki.imai> | ||||||||||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | aperez, bugs-noreply, cgarcia, commit-queue, don.olmstead, ews-watchlist, magomez, mcatanzaro, zan | ||||||||||||
Priority: | P2 | ||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||
Hardware: | All | ||||||||||||||
OS: | Linux | ||||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=233455 | ||||||||||||||
Attachments: |
|
Description
Tomoki Imai
2019-03-18 03:31:13 PDT
Created attachment 365007 [details]
Patch
Created attachment 365008 [details]
Patch
Replace tabs in ChangeLog
Igalia folks any particular issues with this patch? It LGTM but we wanted to make sure we aren't missing something here. I'll review it, it was already in my TODO. Comment on attachment 365008 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365008&action=review > Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:545 > - if (webViewBase->priv->acceleratedBackingStore && drawingArea->isInAcceleratedCompositingMode()) > + if (webViewBase->priv->acceleratedBackingStore && (drawingArea->isInAcceleratedCompositingMode() || drawingArea->alwaysUseCompositing())) I don't think we want to do this. If we are still transitioning, incorporateUpdate updated the backing store, so if at this point we haven't entered AC mode, we want to paint the new backing store, since the accelerated backing store won't have anything to paint yet. Comment on attachment 365008 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365008&action=review >> Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:545 >> + if (webViewBase->priv->acceleratedBackingStore && (drawingArea->isInAcceleratedCompositingMode() || drawingArea->alwaysUseCompositing())) > > I don't think we want to do this. If we are still transitioning, incorporateUpdate updated the backing store, so if at this point we haven't entered AC mode, we want to paint the new backing store, since the accelerated backing store won't have anything to paint yet. Right, the reason I added `|| drawingArea->alwaysUseCompositing()` here is to stop painting new backing store right after `alwaysUseCompositing` is turned on, which is current behavior. But if we don't have such usecase , we should check only `webViewBase->priv->acceleratedBackingStore && drawingArea->isInAcceleratedCompositingMode()` to continue using backing store until entering AC mode. Comment on attachment 365008 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365008&action=review > Source/WebKit/UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp:79 > + if (isInAcceleratedCompositingMode() || alwaysUseCompositing()) I think we shouldn't have " || alwaysUseCompositing()" here for the same reason as webkitWebViewBaseDraw. If it's transitioning to AC mode, we should update BackingStore. Created attachment 365854 [details]
Patch, fixes reviewed point
I removed alwaysUseCompositing() from webkitWebViewBaseDraw and DrawingAreaProxyCoordinatedGraphics::paint, because while transitioning to AC mode, we should render in non-AC mode.
Comment on attachment 365854 [details] Patch, fixes reviewed point Attachment 365854 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/11658597 New failing tests: animations/resume-after-page-cache.html Created attachment 365856 [details]
Archive of layout-test-results from ews200 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Created attachment 365950 [details]
Patch, fixes reviewed point
WinCairo build seems to be broken. Upload patch again to re-run EWS.
Comment on attachment 365950 [details] Patch, fixes reviewed point Clearing flags on attachment: 365950 Committed r243505: <https://trac.webkit.org/changeset/243505> All reviewed patches have been landed. Closing bug. |