NEW286707
OffscreenCanvas with WebGL goes blank
https://bugs.webkit.org/show_bug.cgi?id=286707
Summary OffscreenCanvas with WebGL goes blank
mrolig+webkit
Reported 2025-01-29 14:38:43 PST
Created attachment 474064 [details] Test harness to demonstrate the issue When displaying a canvas that has been transferred to an offscreen canvas, the offscreen canvas may go blank, especially when switching to other windows, but even while the Safari window appears in the background. This can be reproduced with the attached offsceen_safari_blanking.html test harness. When viewing this page, after putting the Safari page in the background and doing other tasks on my Mac, the offscreen canvases will go blank. The normal "on screen" canvases will continue to show their content. Only after clicking "redraw" to cause the canvases to be updated, will they reappear. It seems that one workaround it to use the bitmaprenderer context in an on screen canvas to retain the image. However, this is less desirable as it may introduce additional latency or jank in the display of the newly drawn frame depending on the business of the main thread, and may have additional performance implications for memory use and buffer copies.
Attachments
Test harness to demonstrate the issue (2.85 KB, text/html)
2025-01-29 14:38 PST, mrolig+webkit
no flags
mrolig+webkit
Comment 1 2025-01-29 15:45:38 PST
It's also possible that it repro's more easily when under memory pressure.
Radar WebKit Bug Importer
Comment 2 2025-02-05 14:40:17 PST
Note You need to log in before you can comment on or make changes to this bug.