Bug 235953 - MediaRecorderPrivate should not need to create IOSurfaces
Summary: MediaRecorderPrivate should not need to create IOSurfaces
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on: 235951
Blocks:
  Show dependency treegraph
 
Reported: 2022-02-01 08:01 PST by youenn fablet
Modified: 2022-02-03 06:33 PST (History)
8 users (show)

See Also:


Attachments
Patch (12.97 KB, patch)
2022-02-01 08:39 PST, youenn fablet
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (13.61 KB, patch)
2022-02-02 06:04 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (13.56 KB, patch)
2022-02-03 01:41 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2022-02-01 08:01:23 PST
MediaRecorderPrivate should not need to create IOSurfaces
Comment 1 youenn fablet 2022-02-01 08:39:14 PST
Created attachment 450532 [details]
Patch
Comment 2 youenn fablet 2022-02-02 06:04:12 PST
Created attachment 450641 [details]
Patch
Comment 3 Eric Carlson 2022-02-02 08:56:11 PST
Comment on attachment 450641 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450641&action=review

> Source/WebKit/ChangeLog:13
>          * WebProcess/cocoa/UserMediaCaptureManager.cpp:
>  
> +2022-02-01  Youenn Fablet  <youenn@apple.com>

This doesn't look right

> Source/WebKit/GPUProcess/webrtc/RemoteMediaRecorder.cpp:95
> +        if (!pixelBuffer)
> +            return;

Is it worth logging an error message?

> Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.cpp:110
> +        if (!copySharedVideoFrame(remoteSample->imageBuffer()))
> +            return;

Ditto
Comment 4 youenn fablet 2022-02-03 01:39:40 PST
(In reply to Eric Carlson from comment #3)
> Comment on attachment 450641 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=450641&action=review
> 
> > Source/WebKit/ChangeLog:13
> >          * WebProcess/cocoa/UserMediaCaptureManager.cpp:
> >  
> > +2022-02-01  Youenn Fablet  <youenn@apple.com>
> 
> This doesn't look right

Right, will fix.

> > Source/WebKit/GPUProcess/webrtc/RemoteMediaRecorder.cpp:95
> > +        if (!pixelBuffer)
> > +            return;
> 
> Is it worth logging an error message?
> 
> > Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.cpp:110
> > +        if (!copySharedVideoFrame(remoteSample->imageBuffer()))
> > +            return;
> 
> Ditto

It is worth, the issue is that it might log this 30 fps per second which is a lot.
I'll file a bug to add reasonable logging at reader/writer level.
Comment 5 youenn fablet 2022-02-03 01:40:38 PST
I filed https://bugs.webkit.org/show_bug.cgi?id=236066
Comment 6 youenn fablet 2022-02-03 01:41:26 PST
Created attachment 450749 [details]
Patch for landing
Comment 7 EWS 2022-02-03 06:32:28 PST
Committed r289050 (246757@main): <https://commits.webkit.org/246757@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 450749 [details].
Comment 8 Radar WebKit Bug Importer 2022-02-03 06:33:17 PST
<rdar://problem/88432554>