Summary: | Follow-up on comments for bug 169664 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jon Lee <jonlee> | ||||||||
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | alex, commit-queue, youennf | ||||||||
Priority: | P2 | ||||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=169664 | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 169662 | ||||||||||
Attachments: |
|
Description
Jon Lee
2017-03-15 15:43:33 PDT
(In reply to comment #0) > From Youenn: > > Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:865 > > + Vector<RTCIceTransportState> transportStates; > > I know this is untouched code. > Would you be able to use reserveInitialCapacity/uncheckedAppend > > > Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:870 > > + m_peerConnection.updateIceConnectionState(static_cast<RTCIceConnectionState>(derivedState)); > > This looks bad, deriveAggregatedIceConnectionState should really be changed > to return RTCIceConnectionState. I have a patch for this, but should MediaEndpointPeerConnection be part of the xcodeproj at all? Created attachment 304913 [details]
Patch
Comment on attachment 304913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304913&action=review > Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:879 > + Vector<RTCIceTransportState> transportStates(m_peerConnection.getTransceivers().size()); Please use reserveInitialCapacity to preallocate without creating the objects. Comment on attachment 304913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304913&action=review >> Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:879 >> + Vector<RTCIceTransportState> transportStates(m_peerConnection.getTransceivers().size()); > > Please use reserveInitialCapacity to preallocate without creating the objects. Done. Created attachment 304954 [details]
Patch for landing
Created attachment 304981 [details]
Patch for landing
Comment on attachment 304981 [details] Patch for landing Clearing flags on attachment: 304981 Committed r214207: <http://trac.webkit.org/changeset/214207> |