RESOLVED FIXED 237316
Do capture video frame downsampling in GPUProcess
https://bugs.webkit.org/show_bug.cgi?id=237316
Summary Do capture video frame downsampling in GPUProcess
youenn fablet
Reported 2022-03-01 03:39:08 PST
Do capture video frame downsampling in GPUProcess
Attachments
Patch (55.42 KB, patch)
2022-03-10 02:40 PST, youenn fablet
ews-feeder: commit-queue-
Patch (55.38 KB, patch)
2022-03-10 03:16 PST, youenn fablet
no flags
Patch (57.46 KB, patch)
2022-03-10 04:31 PST, youenn fablet
ews-feeder: commit-queue-
Patch (55.07 KB, patch)
2022-03-10 05:20 PST, youenn fablet
no flags
Patch for landing (66.42 KB, patch)
2022-03-11 02:57 PST, youenn fablet
no flags
Radar WebKit Bug Importer
Comment 1 2022-03-08 03:40:16 PST
youenn fablet
Comment 2 2022-03-10 02:40:23 PST
youenn fablet
Comment 3 2022-03-10 03:16:43 PST
youenn fablet
Comment 4 2022-03-10 04:31:30 PST
youenn fablet
Comment 5 2022-03-10 05:20:56 PST
Eric Carlson
Comment 6 2022-03-10 09:13:33 PST
Comment on attachment 454338 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=454338&action=review > Source/WebKit/ChangeLog:11 > + Since display tracks are already cloned remotely, we can merge RemoteRealtimeDisplaySource and RemoteRealtimeVideoSource. This is great! > Source/WebCore/platform/mediastream/RealtimeMediaSource.h:265 > virtual void startProducingData() { } > virtual void stopProducingData() { } > + virtual void endProducingData() { stop(); } I think it will be easy for someone that doesn't already know how these classes work to be confused about the difference between stopProducingData and endProducingData. Conceptually these methods start, pause, and stop (or cancel?) capture, so maybe they could be `startProducingData`, `pauseProducingData`, and `stopProducingData`. Or maybe we should change all three: `startDataProduction`, `pauseDataProduction`, and `endDataProduction`? Renaming will touch a lot of files so it could be done in another patch > Source/WebKit/WebKit.xcodeproj/project.pbxproj:-4186 > - 418FCBE3271049DB00F96ECA /* RemoteRealtimeDisplaySource.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RemoteRealtimeDisplaySource.cpp; sourceTree = "<group>"; }; > - 418FCBE4271049DC00F96ECA /* RemoteRealtimeDisplaySource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RemoteRealtimeDisplaySource.h; sourceTree = "<group>"; }; Can these files be deleted now?
youenn fablet
Comment 7 2022-03-11 02:54:33 PST
(In reply to Eric Carlson from comment #6) > Comment on attachment 454338 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=454338&action=review > > > Source/WebKit/ChangeLog:11 > > + Since display tracks are already cloned remotely, we can merge RemoteRealtimeDisplaySource and RemoteRealtimeVideoSource. > > This is great! Glad you like it, I think it will make things simpler indeed. Next step is to make RemoteRealtimeAudioSource and RemoteRealtimeVideoSource share most of the code in RemoteRealtimeMediaSource. > > Source/WebCore/platform/mediastream/RealtimeMediaSource.h:265 > > virtual void startProducingData() { } > > virtual void stopProducingData() { } > > + virtual void endProducingData() { stop(); } > > I think it will be easy for someone that doesn't already know how these > classes work to be confused about the difference between stopProducingData > and endProducingData. > > Conceptually these methods start, pause, and stop (or cancel?) capture, so > maybe they could be `startProducingData`, `pauseProducingData`, and > `stopProducingData`. Or maybe we should change all three: > `startDataProduction`, `pauseDataProduction`, and `endDataProduction`? Agreed. start and stop are not terminal while end is stop+cannot start again. I guess we could use pause/resume/end? > Renaming will touch a lot of files so it could be done in another patch > > > Source/WebKit/WebKit.xcodeproj/project.pbxproj:-4186 > > - 418FCBE3271049DB00F96ECA /* RemoteRealtimeDisplaySource.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RemoteRealtimeDisplaySource.cpp; sourceTree = "<group>"; }; > > - 418FCBE4271049DC00F96ECA /* RemoteRealtimeDisplaySource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RemoteRealtimeDisplaySource.h; sourceTree = "<group>"; }; > > Can these files be deleted now? Will do.
youenn fablet
Comment 8 2022-03-11 02:57:57 PST
Created attachment 454466 [details] Patch for landing
EWS
Comment 9 2022-03-11 07:34:19 PST
Committed r291167 (248327@main): <https://commits.webkit.org/248327@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454466 [details].
Note You need to log in before you can comment on or make changes to this bug.