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

Issue 2425683003: Change RefCountedObject to use perfect forwarding. (Closed)

Created:
4 years, 2 months ago by perkj_webrtc
Modified:
4 years, 2 months ago
Reviewers:
tommi, hbos
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Change RefCountedObject to use perfect forwarding. The main reason for doing this is to allow refcounted objects to accept rvalue references in ctor and be able to std::move ctor rvalue arguments. Also, refcounted.h is now generated using pump.py instead of manually creating each ctor version. BUG= none Committed: https://crrev.com/0489e498ebef75e13b7d72e7470903d3bcae50b4 Cr-Commit-Position: refs/heads/master@{#14687}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed code review comments. #

Patch Set 3 : Add missing file. #

Patch Set 4 : video_frame_buffer.cc use memset in string.h #

Patch Set 5 : git cl lint + screen_capturer_differ_wrapper.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -152 lines) Patch
M webrtc/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/refcount.h View 1 2 chunks +1 line, -150 lines 0 comments Download
A webrtc/base/refcountedobject.h View 1 2 1 chunk +225 lines, -0 lines 0 comments Download
A webrtc/base/refcountedobject.h.pump View 1 1 chunk +64 lines, -0 lines 0 comments Download
A webrtc/base/refcountedobject_unittest.cc View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
M webrtc/common_video/video_frame_buffer.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
perkj_webrtc
Please? This is mainly done to make it possible to fix my comment in https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc#newcode688 ...
4 years, 2 months ago (2016-10-18 07:28:10 UTC) #2
tommi
https://codereview.webrtc.org/2425683003/diff/1/webrtc/base/refcount.h.pump File webrtc/base/refcount.h.pump (right): https://codereview.webrtc.org/2425683003/diff/1/webrtc/base/refcount.h.pump#newcode25 webrtc/base/refcount.h.pump:25: class RefCountInterface { Can we have this definition in ...
4 years, 2 months ago (2016-10-18 15:57:58 UTC) #3
hbos
On 2016/10/18 07:28:10, perkj_webrtc wrote: > Please? > This is mainly done to make it ...
4 years, 2 months ago (2016-10-18 17:50:04 UTC) #4
perkj_webrtc
ptal https://codereview.webrtc.org/2425683003/diff/1/webrtc/base/refcount.h.pump File webrtc/base/refcount.h.pump (right): https://codereview.webrtc.org/2425683003/diff/1/webrtc/base/refcount.h.pump#newcode25 webrtc/base/refcount.h.pump:25: class RefCountInterface { On 2016/10/18 15:57:58, tommi (webrtc) ...
4 years, 2 months ago (2016-10-19 00:43:14 UTC) #5
perkj_webrtc
On 2016/10/19 00:43:14, perkj_webrtc wrote: > ptal > > https://codereview.webrtc.org/2425683003/diff/1/webrtc/base/refcount.h.pump > File webrtc/base/refcount.h.pump (right): > ...
4 years, 2 months ago (2016-10-19 03:13:24 UTC) #6
perkj_webrtc
On 2016/10/19 03:13:24, perkj_webrtc wrote: > On 2016/10/19 00:43:14, perkj_webrtc wrote: > > ptal > ...
4 years, 2 months ago (2016-10-19 12:37:58 UTC) #7
tommi
lgtm
4 years, 2 months ago (2016-10-19 17:31:23 UTC) #8
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/2425683003/60001
4 years, 2 months ago (2016-10-19 19:00:30 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_baremetal/builds/15078)
4 years, 2 months ago (2016-10-19 19:13:37 UTC) #13
hbos
lgtm
4 years, 2 months ago (2016-10-19 22:21:20 UTC) #14
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/2425683003/80001
4 years, 2 months ago (2016-10-20 05:57:30 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-20 07:24:05 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-20 07:24:13 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0489e498ebef75e13b7d72e7470903d3bcae50b4
Cr-Commit-Position: refs/heads/master@{#14687}

Powered by Google App Engine
This is Rietveld 408576698