RESOLVED FIXED 205632
Create media mime type cache base class to reduce duplicate code
https://bugs.webkit.org/show_bug.cgi?id=205632
Summary Create media mime type cache base class to reduce duplicate code
Eric Carlson
Reported 2019-12-29 14:32:47 PST
AVStreamDataParserMIMETypeCache and AVAssetMIMETypeCache have a lot of very similar code so create a base class so they can share.
Attachments
Patch (42.49 KB, patch)
2019-12-29 14:52 PST, Eric Carlson
no flags
Patch (38.72 KB, patch)
2019-12-29 17:27 PST, Eric Carlson
no flags
Patch (38.42 KB, patch)
2019-12-29 20:27 PST, Eric Carlson
no flags
Patch (39.93 KB, patch)
2019-12-30 11:11 PST, Eric Carlson
no flags
Radar WebKit Bug Importer
Comment 1 2019-12-29 14:33:00 PST
Eric Carlson
Comment 2 2019-12-29 14:52:47 PST Comment hidden (obsolete)
Eric Carlson
Comment 3 2019-12-29 17:27:00 PST Comment hidden (obsolete)
Eric Carlson
Comment 4 2019-12-29 20:27:13 PST
Jer Noble
Comment 5 2019-12-29 22:31:39 PST
Comment on attachment 386504 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386504&action=review r=me with nits. > Source/WebCore/platform/graphics/MIMETypeCache.h:48 > + WEBCORE_EXPORT void setSupportedTypes(const Vector<String>&); Nit: The implementation doesn’t match the name here. It doesn’t replace the existing set of supported types, instead it adds new types to the existing set. ‘addSupportedTypes’ maybe? > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:263 > + if (AVStreamDataParserMIMETypeCache::singleton().isAvailable()) This could use a “auto cache = ...” so you’re not calling the singleton() method so much.
Eric Carlson
Comment 6 2019-12-30 11:11:30 PST
WebKit Commit Bot
Comment 7 2019-12-30 12:51:54 PST
The commit-queue encountered the following flaky tests while processing attachment 386541 [details]: highlight/highlight-world-leak.html bug 205643 (author: megan_gardner@apple.com) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 8 2019-12-30 12:52:49 PST
Comment on attachment 386541 [details] Patch Clearing flags on attachment: 386541 Committed r253952: <https://trac.webkit.org/changeset/253952>
WebKit Commit Bot
Comment 9 2019-12-30 12:52:51 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.