Function isWebmParserAvailable() in SourceBufferParserWebM always returns false in GPU Process because it uses a RuntimeEnabledFeature flag.
<rdar://problem/72300659>
Created attachment 416175 [details] Patch
Comment on attachment 416175 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416175&action=review > Source/WebCore/platform/graphics/MediaSourcePrivate.h:57 > + virtual AddStatus addSourceBuffer(const ContentType&, bool webMParserEnabled, RefPtr<SourceBufferPrivate>&) = 0; Nit: the parameter name isn't necessary. > Source/WebCore/platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:69 > + AddStatus addSourceBuffer(const ContentType&, bool webMParserEnabled, RefPtr<SourceBufferPrivate>&) override; Ditto. > Source/WebCore/platform/graphics/cocoa/SourceBufferParser.h:49 > + static RefPtr<SourceBufferParser> create(const ContentType&, bool webMParserEnabled); Ditto > Source/WebCore/platform/mock/mediasource/MockMediaSourcePrivate.cpp:67 > +MediaSourcePrivate::AddStatus MockMediaSourcePrivate::addSourceBuffer(const ContentType& contentType, bool webMParserEnabled, RefPtr<SourceBufferPrivate>& outPrivate) > { > + UNUSED_PARAM(webMParserEnabled); Ditto, and you don't need the UNUSED_PARAM without it. > Source/WebCore/platform/mock/mediasource/MockMediaSourcePrivate.h:82 > + AddStatus addSourceBuffer(const ContentType&, bool webMParserEnabled, RefPtr<SourceBufferPrivate>&) override; Ditto. > Source/WebKit/GPUProcess/media/RemoteMediaSourceProxy.h:60 > + RemoteMediaSourceProxy(GPUConnectionToWebProcess&, RemoteMediaSourceIdentifier, bool webMParserEnabled, RemoteMediaPlayerProxy&); Ditto. > Source/WebKit/WebProcess/GPU/media/MediaSourcePrivateRemote.h:65 > + AddStatus addSourceBuffer(const WebCore::ContentType&, bool webMParserEnabled, RefPtr<WebCore::SourceBufferPrivate>&) final; Ditto.
Created attachment 416189 [details] Rebase the patch and update it based on Eric's comments
Committed r270805: <https://trac.webkit.org/changeset/270805> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416189 [details].
Comment on attachment 416175 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416175&action=review >> Source/WebCore/platform/graphics/MediaSourcePrivate.h:57 >> + virtual AddStatus addSourceBuffer(const ContentType&, bool webMParserEnabled, RefPtr<SourceBufferPrivate>&) = 0; > > Nit: the parameter name isn't necessary. Right, but I would like to keep it because a bool argument's purpose is not obvious in this case for a reader. >> Source/WebCore/platform/mock/mediasource/MockMediaSourcePrivate.cpp:67 >> + UNUSED_PARAM(webMParserEnabled); > > Ditto, and you don't need the UNUSED_PARAM without it. Right, fixed.