RESOLVED FIXED Bug 169709
Follow-up on comments for bug 169664
https://bugs.webkit.org/show_bug.cgi?id=169709
Summary Follow-up on comments for bug 169664
Jon Lee
Reported 2017-03-15 15:43:33 PDT
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.
Attachments
Patch (4.63 KB, patch)
2017-03-19 21:30 PDT, Jon Lee
youennf: review+
youennf: commit-queue-
Patch for landing (4.53 KB, patch)
2017-03-20 15:01 PDT, Jon Lee
no flags
Patch for landing (4.53 KB, patch)
2017-03-20 19:10 PDT, Jon Lee
no flags
Jon Lee
Comment 1 2017-03-19 12:48:37 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?
Jon Lee
Comment 2 2017-03-19 21:30:44 PDT
youenn fablet
Comment 3 2017-03-20 08:24:59 PDT
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.
Jon Lee
Comment 4 2017-03-20 14:59:46 PDT
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.
Jon Lee
Comment 5 2017-03-20 15:01:50 PDT
Created attachment 304954 [details] Patch for landing
Jon Lee
Comment 6 2017-03-20 19:10:11 PDT
Created attachment 304981 [details] Patch for landing
WebKit Commit Bot
Comment 7 2017-03-20 19:51:03 PDT
Comment on attachment 304981 [details] Patch for landing Clearing flags on attachment: 304981 Committed r214207: <http://trac.webkit.org/changeset/214207>
Note You need to log in before you can comment on or make changes to this bug.