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

Issue 2481193002: Provide move semantic for cricket::Codec and subclasses (Closed)

Created:
4 years, 1 month ago by magjed_webrtc
Modified:
4 years, 1 month ago
Reviewers:
kthelgason
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Provide move semantic for cricket::Codec and subclasses The cricket::Codec class contains std containers like std::map<std::string, std::string> and is expensive to copy. This CL adds move constructors and move assignment operators for it and all subclasses. This CL also: * Implement functions with '= default' instead of doing it manually. * Makes codec::Matches symmetric. We currently don't check if the payload type of the callee is static, and might incorrectly return true in these cases. BUG=None Committed: https://crrev.com/3663c523820c520806e5a9a0269063cc1adf3657 Cr-Commit-Position: refs/heads/master@{#14956}

Patch Set 1 #

Patch Set 2 : Remove some faulty test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -33 lines) Patch
M webrtc/media/base/codec.h View 6 chunks +8 lines, -0 lines 0 comments Download
M webrtc/media/base/codec.cc View 5 chunks +14 lines, -25 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
kthelgason
solid improvement, lgtm.
4 years, 1 month ago (2016-11-07 13:37:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2481193002/20001
4 years, 1 month ago (2016-11-07 14:08:58 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-07 18:14:39 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 18:14:52 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3663c523820c520806e5a9a0269063cc1adf3657
Cr-Commit-Position: refs/heads/master@{#14956}

Powered by Google App Engine
This is Rietveld 408576698