Bug 218442

Summary: Allow low latency H264 encoder in GPUProcess
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, hta, jer.noble, philipj, sergio, tommyw, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 218445    
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing
none
Patch for landing none

Description youenn fablet 2020-11-02 05:56:04 PST
Allow low latency H264 encoder in GPUProcess
Comment 1 youenn fablet 2020-11-02 06:01:50 PST
Created attachment 412909 [details]
Patch
Comment 2 youenn fablet 2020-11-02 06:37:55 PST
Created attachment 412914 [details]
Patch
Comment 3 Eric Carlson 2020-11-02 14:03:58 PST
Comment on attachment 412914 [details]
Patch

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

> Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/WebKitEncoder.mm:97
> +- (void)setLowLatency:(bool)isLowLatencyEnabled {

Nit: "isLowLatencyEnabled" sounds like a question, I would probably call the parameter "lowLatencyEnabled", or even just "enabled"

> Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/WebKitEncoder.mm:99
> +        return [m_h264Encoder setH264LowLatencyEncoderEnabled:isLowLatencyEnabled];

Nit: "return" is unnecessary

> Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/WebKitEncoder.mm:319
> +void setLocalEncoderLowLatency(LocalEncoder localEncoder, bool isLowLatencyEnabled)

Ditto about the parameter name from above.
Comment 4 youenn fablet 2020-11-03 03:19:15 PST
Created attachment 413032 [details]
Patch for landing
Comment 5 EWS 2020-11-03 03:55:39 PST
ChangeLog entry in Source/ThirdParty/libwebrtc/ChangeLog contains OOPS!.
Comment 6 youenn fablet 2020-11-03 03:57:52 PST
Created attachment 413039 [details]
Patch for landing
Comment 7 EWS 2020-11-03 04:33:08 PST
Committed r269293: <https://trac.webkit.org/changeset/269293>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 413039 [details].
Comment 8 Radar WebKit Bug Importer 2020-11-03 04:34:19 PST
<rdar://problem/70989701>