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

Issue 1821153003: Avoid using MakeExclusive, which is going to be deleted in webrtc. (Closed)

Created:
4 years, 9 months ago by nisse-chromium (ooo August 14)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org, pbos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid using MakeExclusive, which is going to be deleted in webrtc. Instead, keeps an I420Buffer, and uses HasOneRef to check if it needs to make a new copy. BUG=webrtc:5682 Committed: https://crrev.com/37c564a4b8a2858049a6fdc4a8145593b2f89166 Cr-Commit-Position: refs/heads/master@{#383995}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address Sergey's comments. #

Total comments: 4

Patch Set 3 : Fixed to compile with latest webrtc. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -24 lines) Patch
M remoting/protocol/webrtc_video_capturer_adapter.h View 1 2 2 chunks +1 line, -2 lines 1 comment Download
M remoting/protocol/webrtc_video_capturer_adapter.cc View 1 2 2 chunks +28 lines, -22 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
nisse-chromium (ooo August 14)
Do you think this is a reasonable approach to eliminate MakeExclusive? I'm considering adding a ...
4 years, 9 months ago (2016-03-22 09:47:05 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc File remoting/protocol/webrtc_video_capturer_adapter.cc (right): https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc#newcode176 remoting/protocol/webrtc_video_capturer_adapter.cc:176: size_t height = frame->size().height(); change these two to int ...
4 years, 9 months ago (2016-03-22 17:27:09 UTC) #3
pbos
+r magjed@, can't we use any existing webrtc::VideoFrame copy methods here?
4 years, 9 months ago (2016-03-23 12:53:37 UTC) #6
perkj_chrome
https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc File remoting/protocol/webrtc_video_capturer_adapter.cc (right): https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc#newcode188 remoting/protocol/webrtc_video_capturer_adapter.cc:188: // TODO(sergeyu): This will copy the buffer if it's ...
4 years, 9 months ago (2016-03-23 14:43:54 UTC) #7
magjed_chromium
lgtm
4 years, 9 months ago (2016-03-23 15:25:46 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc File remoting/protocol/webrtc_video_capturer_adapter.cc (right): https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc#newcode188 remoting/protocol/webrtc_video_capturer_adapter.cc:188: // TODO(sergeyu): This will copy the buffer if it's ...
4 years, 9 months ago (2016-03-23 23:46:43 UTC) #9
nisse-chromium (ooo August 14)
https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc File remoting/protocol/webrtc_video_capturer_adapter.cc (right): https://codereview.chromium.org/1821153003/diff/1/remoting/protocol/webrtc_video_capturer_adapter.cc#newcode176 remoting/protocol/webrtc_video_capturer_adapter.cc:176: size_t height = frame->size().height(); On 2016/03/22 17:27:09, Sergey Ulanov ...
4 years, 9 months ago (2016-03-24 13:11:26 UTC) #10
Sergey Ulanov
lgtm https://codereview.chromium.org/1821153003/diff/20001/remoting/protocol/webrtc_video_capturer_adapter.cc File remoting/protocol/webrtc_video_capturer_adapter.cc (right): https://codereview.chromium.org/1821153003/diff/20001/remoting/protocol/webrtc_video_capturer_adapter.cc#newcode220 remoting/protocol/webrtc_video_capturer_adapter.cc:220: y_stride * top + left, Please run clang-format ...
4 years, 9 months ago (2016-03-24 18:15:19 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821153003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821153003/40001
4 years, 8 months ago (2016-03-30 13:13:31 UTC) #13
nisse-chromium (ooo August 14)
The I420Buffer::Copy has been landed in webrtc, and rolled into chrome. So this change can ...
4 years, 8 months ago (2016-03-30 13:15:50 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-30 13:48:35 UTC) #16
perkj_chrome
lgtm
4 years, 8 months ago (2016-03-30 14:57:22 UTC) #18
perkj_chrome
https://codereview.chromium.org/1821153003/diff/40001/remoting/protocol/webrtc_video_capturer_adapter.h File remoting/protocol/webrtc_video_capturer_adapter.h (right): https://codereview.chromium.org/1821153003/diff/40001/remoting/protocol/webrtc_video_capturer_adapter.h#newcode86 remoting/protocol/webrtc_video_capturer_adapter.h:86: rtc::scoped_refptr<webrtc::I420Buffer> yuv_frame_; nit: This should use Chromes scoped_refptr - ...
4 years, 8 months ago (2016-03-30 14:58:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821153003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821153003/40001
4 years, 8 months ago (2016-03-30 15:16:46 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-30 16:11:36 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 16:13:41 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/37c564a4b8a2858049a6fdc4a8145593b2f89166
Cr-Commit-Position: refs/heads/master@{#383995}

Powered by Google App Engine
This is Rietveld 408576698