Make a map of the available video presets once instead of looking each one up again and again.
<rdar://problem/43622643>
Created attachment 347855 [details] Patch
Comment on attachment 347855 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=347855&action=review > Source/WebCore/platform/mediastream/RealtimeMediaSource.h:279 > + VideoPresetMap m_supportedPresets; I would keep m_supportedPresets in AVVideoCaptureSource for now since this is the sole user.
Created attachment 347872 [details] Patch for landing
Created attachment 347927 [details] Patch for landing
Comment on attachment 347927 [details] Patch for landing Clearing flags on attachment: 347927 Committed r235233: <https://trac.webkit.org/changeset/235233>