-
Notifications
You must be signed in to change notification settings - Fork 1.7k
When the delegate is unavailable in PlaceholderRenderingContextSource::setPlaceholderBuffer
, save the image buffer and propagate it later to the delegate
#42688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
EWS run on previous version of this PR (hash 05f6b14) |
hasDeferredOperations
for PlaceHolderRenderingContext
EWS run on previous version of this PR (hash f80bc58) |
EWS run on previous version of this PR (hash 215f887) |
...ts/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/canvas.2d.fillText.html
Outdated
Show resolved
Hide resolved
EWS run on previous version of this PR (hash d52a939) |
hasDeferredOperations
for PlaceHolderRenderingContext
hasDeferredOperations
for PlaceHolderRenderingContext
EWS run on previous version of this PR (hash cf9cb83) |
EWS run on previous version of this PR (hash 3304e5f) |
EWS run on previous version of this PR (hash 995fd46) |
hasDeferredOperations
for PlaceHolderRenderingContext
PlaceholderRenderingContextSource::setPlaceholderBuffer
, save the image buffer and propagate it later to the delegate
EWS run on previous version of this PR (hash 4394d2d) |
EWS run on previous version of this PR (hash 437d582) |
EWS run on current version of this PR (hash 441c35d) |
@mattwoodrow: can you or someone else please add one of the merge labels for this PR? I'm not a WebKit committer. |
…e::setPlaceholderBuffer`, save the image buffer and propagate it later to the delegate https://bugs.webkit.org/show_bug.cgi?id=290042 Reviewed by Matt Woodrow. Ensures the image buffer is propagated to the delegate, when the former becomes available before the latter. This happened reliably for `canvas.2d.fillText-FontFace.html`. Combined changes: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/canvas.2d.fillText-FontFace-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/canvas.2d.fillText-FontFace.html: Added. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/canvas.2d.fillText-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/canvas.2d.fillText.html: This test passed already without the fix. The actual issue could only reliably (dozens of times) be reproduced by opening this test file in GTK's MiniBrowser with the mouse arrow symbol next to the browser window. With the fix, the issue is still reproducible. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/text/empty-ref.html: Added. * LayoutTests/platform/mac-wk1/TestExpectations: Tried reproducing the issue for WK1 with GTK, but GTK seems to lack support for WK1: https://bugs.webkit.org/show_bug.cgi?id=290445. * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::commitToPlaceholderCanvas): * Source/WebCore/html/canvas/PlaceholderRenderingContext.cpp: (WebCore::PlaceholderRenderingContextSource::setPlaceholderBuffer): (WebCore::PlaceholderRenderingContextSource::setContentsToLayer): * Source/WebCore/html/canvas/PlaceholderRenderingContext.h: Canonical link: https://commits.webkit.org/295259@main
Committed 295259@main (153da00): https://commits.webkit.org/295259@main Reviewed commits have been landed. Closing PR #42688 and removing active labels. |
This led to a regression because the thread safety of the new code was incorrect; @mattwoodrow pointed out that |
153da00
441c35d
🛠 playstation