Bug 256509 - canvas freezed when drawing new VideoFrame(video) to canvas
Summary: canvas freezed when drawing new VideoFrame(video) to canvas
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-08 23:23 PDT by Shawn Lee
Modified: 2023-05-11 05:26 PDT (History)
5 users (show)

See Also:


Attachments
screencast (8.09 MB, video/mp4)
2023-05-08 23:23 PDT, Shawn Lee
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Lee 2023-05-08 23:23:47 PDT
Created attachment 466292 [details]
screencast

Demo : 
https://w5jlyh.codesandbox.io/

Tested on ios 16.4, iphone 13

Click the start to play the video and notice the first canvas is freezed at first frame.

The demo draw the VideoFrame from video to first canvas then draw first canvas to second canvas.
The first canvas is freezed but the second canvas is not.
Comment 1 Radar WebKit Bug Importer 2023-05-09 09:08:53 PDT
<rdar://problem/109100283>
Comment 2 Eric Carlson 2023-05-10 06:20:28 PDT
Also reproduces is on macOS where the first canvas does update when the mouse lives over it, so we may just not be invalidating a canvas when a VideoFrame is drawn to it. 

Thanks for the report and clear test case!
Comment 3 youenn fablet 2023-05-10 06:41:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13691
Comment 4 EWS 2023-05-11 05:26:26 PDT
Committed 263959@main (0a48a1c5428e): <https://commits.webkit.org/263959@main>

Reviewed commits have been landed. Closing PR #13691 and removing active labels.