WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
300579
Construction of VideoFrame from OffscreenCanvas consumes a lot more CPU than construction VideoFrame from from canvas.
https://bugs.webkit.org/show_bug.cgi?id=300579
Summary
Construction of VideoFrame from OffscreenCanvas consumes a lot more CPU than ...
Yury Yarashevich
Reported
2025-10-12 02:59:26 PDT
The demo creates an OffscreenCanvas within a worker and uses it to render a rotating triangle. A VideoTrackGenerator is then used to produce a MediaStreamTrack from the rendered frames by creating VideoFrame objects from the OffscreenCanvas. Demo:
https://mstyura.github.io/webkit-issues/video-transform-pipeline/05-triangle-offscreen-video-track-generator/index.html
Source html:
https://github.com/mstyura/webkit-issues/blob/main/video-transform-pipeline/05-triangle-offscreen-video-track-generator/index.html
Source js:
https://github.com/mstyura/webkit-issues/blob/main/video-transform-pipeline/05-triangle-offscreen-video-track-generator/worker.js
On MBP with MacOS 26.0.1 the STP Release 229 (WebKit 21623.1.9.1) consumes 60% of CPU in GPU process to render demo.
Attachments
PR: Cheaper ctor of VideoFrame from OffscreenCanvas. #52197
(43 bytes, patch)
2025-10-13 12:54 PDT
,
Yury Yarashevich
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yury Yarashevich
Comment 1
2025-10-13 12:54:02 PDT
Created
attachment 477062
[details]
PR: Cheaper ctor of VideoFrame from OffscreenCanvas. #52197
Radar WebKit Bug Importer
Comment 2
2025-10-19 03:00:14 PDT
<
rdar://problem/162963198
>
Yury Yarashevich
Comment 3
2025-11-05 22:58:36 PST
Pull request:
https://github.com/WebKit/WebKit/pull/53510
EWS
Comment 4
2025-11-13 01:27:13 PST
Committed
302974@main
(d77809d46e44): <
https://commits.webkit.org/302974@main
> Reviewed commits have been landed. Closing PR #53510 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug