Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Issue 1817753003: Revert of Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies. (Closed)

Created:
4 years, 9 months ago by kjellander_webrtc
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Revert of Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies. (patchset #4 id:60001 of https://codereview.webrtc.org/1785713005/ ) Reason for revert: I'm really sorry for having to revert this but it seems this hit an unexpected compile error downstream: webrtc/media/sctp/sctpdataengine.cc: In function 'void cricket::VerboseLogPacket(const void*, size_t, int)': webrtc/media/sctp/sctpdataengine.cc:172:37: error: invalid conversion from 'const void*' to 'void*' [-fpermissive] data, length, direction)) != NULL) { ^ In file included from webrtc/media/sctp/sctpdataengine.cc:20:0: third_party/usrsctp/usrsctplib/usrsctp.h:964:1: error: initializing argument 1 of 'char* usrsctp_dumppacket(void*, size_t, int)' [-fpermissive] usrsctp_dumppacket(void *, size_t, int); ^ I'm sure you can fix this easily and just re-land this CL, while I'm going to look into how to add this warning at the public bots (on Monday). Original issue's description: > Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies. > > This CL removes copy and assign support from Buffer and changes various > parameters from Buffer to CopyOnWriteBuffer so they can be passed along > and copied without actually copying the underlying data. > > With this changed some parameters to be "const" and fixed an issue when > creating a CopyOnWriteBuffer with empty data. > > BUG=webrtc:5155 > > Committed: https://crrev.com/944c39006f1c52aee20919676002dac7a42b1c05 > Cr-Commit-Position: refs/heads/master@{#12058} TBR=kwiberg@webrtc.org,tkchin@webrtc.org,tommi@webrtc.org,pthatcher@webrtc.org,jbauch@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:5155 Committed: https://crrev.com/194e3bcc53ffa3e98045934377726cb25d7579d2 Cr-Commit-Position: refs/heads/master@{#12060}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -297 lines) Patch
M talk/app/webrtc/objc/RTCDataChannel.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/api/datachannel.h View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/api/datachannel.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/api/datachannel_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/api/datachannelinterface.h View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/objc/RTCDataChannel.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/sctputils.h View 1 chunk +6 lines, -6 lines 0 comments Download
M webrtc/api/sctputils.cc View 6 chunks +17 lines, -19 lines 0 comments Download
M webrtc/api/test/fakedatachannelprovider.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/webrtcsession.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/buffer.h View 3 chunks +7 lines, -2 lines 0 comments Download
M webrtc/base/buffer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/base/buffer_unittest.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M webrtc/base/copyonwritebuffer.h View 2 chunks +2 lines, -15 lines 0 comments Download
M webrtc/base/copyonwritebuffer_unittest.cc View 3 chunks +0 lines, -61 lines 0 comments Download
M webrtc/base/sslfingerprint.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 4 chunks +8 lines, -8 lines 0 comments Download
M webrtc/media/base/fakenetworkinterface.h View 8 chunks +15 lines, -14 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 6 chunks +9 lines, -11 lines 0 comments Download
M webrtc/media/base/rtpdataengine.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/media/base/rtpdataengine.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M webrtc/media/base/rtpdataengine_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 11 chunks +16 lines, -18 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 7 chunks +10 lines, -10 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 2 chunks +6 lines, -4 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 5 chunks +12 lines, -10 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/media/sctp/sctpdataengine.h View 4 chunks +7 lines, -7 lines 0 comments Download
M webrtc/media/sctp/sctpdataengine.cc View 11 chunks +19 lines, -20 lines 0 comments Download
M webrtc/media/sctp/sctpdataengine_unittest.cc View 6 chunks +10 lines, -8 lines 0 comments Download
M webrtc/pc/channel.h View 8 chunks +14 lines, -14 lines 0 comments Download
M webrtc/pc/channel.cc View 10 chunks +14 lines, -14 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
kjellander_webrtc
Created Revert of Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies.
4 years, 9 months ago (2016-03-19 19:12:38 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817753003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817753003/1
4 years, 9 months ago (2016-03-19 19:12:42 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-19 19:12:58 UTC) #4
commit-bot: I haz the power
4 years, 9 months ago (2016-03-19 19:13:07 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/194e3bcc53ffa3e98045934377726cb25d7579d2
Cr-Commit-Position: refs/heads/master@{#12060}

Powered by Google App Engine
This is Rietveld 408576698