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

Issue 1823503002: Reland Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies. (Closed)

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

Description

Reland 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/eec21bdae34bd63ebf568430488d6e25d8db9b4a Cr-Commit-Position: refs/heads/master@{#12062}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -247 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 +19 lines, -17 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 +2 lines, -7 lines 0 comments Download
M webrtc/base/buffer.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/base/buffer_unittest.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M webrtc/base/copyonwritebuffer.h View 2 chunks +15 lines, -2 lines 0 comments Download
M webrtc/base/copyonwritebuffer_unittest.cc View 3 chunks +61 lines, -0 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 +14 lines, -15 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 6 chunks +11 lines, -9 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 +18 lines, -16 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 +4 lines, -6 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 5 chunks +10 lines, -12 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 +24 lines, -20 lines 1 comment Download
M webrtc/media/sctp/sctpdataengine_unittest.cc View 6 chunks +8 lines, -10 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 +12 lines, -12 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
joachim
ptal https://codereview.webrtc.org/1823503002/diff/1/webrtc/media/sctp/sctpdataengine.cc File webrtc/media/sctp/sctpdataengine.cc (right): https://codereview.webrtc.org/1823503002/diff/1/webrtc/media/sctp/sctpdataengine.cc#newcode175 webrtc/media/sctp/sctpdataengine.cc:175: const_cast<void*>(data), length, direction)) != NULL) { This is ...
4 years, 9 months ago (2016-03-20 10:14:10 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823503002/1
4 years, 9 months ago (2016-03-20 10:14:27 UTC) #4
joachim
On 2016/03/20 10:14:10, joachim wrote: > ptal > > https://codereview.webrtc.org/1823503002/diff/1/webrtc/media/sctp/sctpdataengine.cc > File webrtc/media/sctp/sctpdataengine.cc (right): > ...
4 years, 9 months ago (2016-03-20 10:25:59 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-20 11:36:49 UTC) #7
tommi
lgtm
4 years, 9 months ago (2016-03-20 13:13:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823503002/1
4 years, 9 months ago (2016-03-20 13:14:05 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-20 13:15:48 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/eec21bdae34bd63ebf568430488d6e25d8db9b4a Cr-Commit-Position: refs/heads/master@{#12062}
4 years, 9 months ago (2016-03-20 13:15:53 UTC) #13
kjellander_webrtc
4 years, 9 months ago (2016-03-20 13:31:06 UTC) #15
Message was sent while issue was closed.
Thanks for fixing this. All is green downstream. I'll try to make sure we enable
-fpermissive for Android.
lgtm

Powered by Google App Engine
This is Rietveld 408576698