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

Issue 2009193002: Delete IsMutable and IsExclusive methods. (Closed)

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

Description

Delete IsMutable and IsExclusive methods. This affects the webrtc::VideoFrameBuffer and cricket::VideoFrame classes. To make this work, VideoFrameFactory is changed to use an I420BufferPool rather than a plain VideoFrame to cache allocated frames. The I420BufferPool is reorganized to return an I420Buffer, rather than a proxy object. BUG=webrtc:5921, webrtc:5682 Committed: https://crrev.com/d591e3fcf33a4c692cd49294b22dd21bb117cd19 Cr-Commit-Position: refs/heads/master@{#12919}

Patch Set 1 #

Patch Set 2 : Delete TestVideoFrame.ReuseAllocation, CreateEmptyFrame no longer does that. #

Total comments: 8

Patch Set 3 : Address tommi's comments. #

Total comments: 15

Patch Set 4 : Address comments. #

Patch Set 5 : Delete redundant RefCountedObject wrapping. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -178 lines) Patch
M webrtc/common_video/i420_buffer_pool.cc View 1 2 3 4 3 chunks +13 lines, -63 lines 0 comments Download
M webrtc/common_video/i420_buffer_pool_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M webrtc/common_video/i420_video_frame_unittest.cc View 1 1 chunk +0 lines, -12 lines 0 comments Download
M webrtc/common_video/include/i420_buffer_pool.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M webrtc/common_video/include/video_frame_buffer.h View 5 chunks +3 lines, -19 lines 0 comments Download
M webrtc/common_video/video_frame.cc View 1 chunk +1 line, -12 lines 0 comments Download
M webrtc/common_video/video_frame_buffer.cc View 3 chunks +0 lines, -16 lines 0 comments Download
M webrtc/media/base/videoframe.h View 1 2 3 3 chunks +1 line, -11 lines 0 comments Download
M webrtc/media/base/videoframe.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M webrtc/media/base/videoframefactory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/media/base/videoframefactory.cc View 1 2 3 1 chunk +7 lines, -17 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframe.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoframe.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009193002/1
4 years, 7 months ago (2016-05-25 10:21:21 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/2824)
4 years, 7 months ago (2016-05-25 10:28:52 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009193002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009193002/20001
4 years, 7 months ago (2016-05-25 10:58:22 UTC) #6
nisse-webrtc
This cl deletes IsMutable, and reorganizes I420BufferPool. The messy part was the VideoFrameFactory. To make ...
4 years, 7 months ago (2016-05-25 11:42:15 UTC) #8
nisse-webrtc
On 2016/05/25 11:42:15, nisse-webrtc wrote: > This cl deletes IsMutable, and reorganizes I420BufferPool. > > ...
4 years, 7 months ago (2016-05-25 11:43:49 UTC) #9
tommi
https://codereview.webrtc.org/2009193002/diff/20001/webrtc/media/base/videoframe.h File webrtc/media/base/videoframe.h (right): https://codereview.webrtc.org/2009193002/diff/20001/webrtc/media/base/videoframe.h#newcode63 webrtc/media/base/videoframe.h:63: const rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer, const &? https://codereview.webrtc.org/2009193002/diff/20001/webrtc/media/base/videoframe.h#newcode102 webrtc/media/base/videoframe.h:102: #if 0 ...
4 years, 7 months ago (2016-05-25 12:14:25 UTC) #11
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 12:36:23 UTC) #12
nisse-webrtc
Updated, deleted the old Stretch method, and changed the signature of CreateWithBuffer. No change of ...
4 years, 7 months ago (2016-05-25 12:38:02 UTC) #13
tommi
thanks. lgtm
4 years, 7 months ago (2016-05-25 12:39:56 UTC) #14
magjed_webrtc
https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 webrtc/common_video/include/i420_buffer_pool.h:39: class PooledI420Buffer : public webrtc::I420Buffer { I don't see ...
4 years, 7 months ago (2016-05-25 13:17:01 UTC) #15
nisse-webrtc
https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 webrtc/common_video/include/i420_buffer_pool.h:39: class PooledI420Buffer : public webrtc::I420Buffer { On 2016/05/25 13:17:01, ...
4 years, 7 months ago (2016-05-25 13:39:47 UTC) #16
magjed_webrtc
https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 webrtc/common_video/include/i420_buffer_pool.h:39: class PooledI420Buffer : public webrtc::I420Buffer { On 2016/05/25 13:39:47, ...
4 years, 7 months ago (2016-05-25 14:56:08 UTC) #17
pbos-webrtc
https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 webrtc/common_video/include/i420_buffer_pool.h:39: class PooledI420Buffer : public webrtc::I420Buffer { On 2016/05/25 13:39:47, ...
4 years, 7 months ago (2016-05-25 15:26:07 UTC) #18
pbos-webrtc
On 2016/05/25 15:26:07, pbos-webrtc wrote: > https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h > File webrtc/common_video/include/i420_buffer_pool.h (right): > > https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 > ...
4 years, 7 months ago (2016-05-25 15:26:38 UTC) #19
nisse-webrtc
(No updated patchset now). https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2009193002/diff/40001/webrtc/common_video/include/i420_buffer_pool.h#newcode39 webrtc/common_video/include/i420_buffer_pool.h:39: class PooledI420Buffer : public webrtc::I420Buffer ...
4 years, 7 months ago (2016-05-26 07:44:43 UTC) #20
nisse-webrtc
Deleted the CreateWithBuffer method, calling the constructor directly. Replaced the PooledI420Buffer subclass with a typedef ...
4 years, 7 months ago (2016-05-26 08:13:51 UTC) #21
magjed_webrtc
lgtm
4 years, 7 months ago (2016-05-26 11:34:32 UTC) #22
pbos-webrtc
lgtm, nice!
4 years, 7 months ago (2016-05-26 11:40:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009193002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009193002/80001
4 years, 7 months ago (2016-05-26 11:59:44 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-26 13:50:00 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 13:50:08 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d591e3fcf33a4c692cd49294b22dd21bb117cd19
Cr-Commit-Position: refs/heads/master@{#12919}

Powered by Google App Engine
This is Rietveld 408576698