Bug 218452

Summary: Duplicate copies of static RefPtr<Uint8Array> convertToUint8Array(IPC::SharedBufferCopy&& buffer) in RemoteLegacyCDMSession{Proxy}.cpp
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, jer.noble, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=218315

Description David Kilzer (:ddkilzer) 2020-11-02 10:16:54 PST
static RefPtr<Uint8Array> convertToUint8Array(IPC::SharedBufferCopy&& buffer) in these two files:

Source/WebKit/GPUProcess/media/RemoteLegacyCDMSessionProxy.cpp
Source/WebKit/WebProcess/GPU/media/RemoteLegacyCDMSession.cpp

They even have slightly different implementations!

There may be other code that could be shared as well.

Found during a build fix for a patch on Bug 218315 (see <https://trac.webkit.org/r269251>).
Comment 1 Radar WebKit Bug Importer 2020-11-09 10:17:14 PST
<rdar://problem/71198019>