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

Issue 2815643002: Make V4L2CaptureDelegate non-ref-counted (Closed)

Created:
3 years, 8 months ago by Chandan
Modified:
3 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, xjz+watch_chromium.org, feature-media-reviews_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make V4L2CaptureDelegate non-ref-counted V4L2CaptureDelegate is created and destroyed by VideoCaptureDeviceLinux only. Hence, its not necessary for refcounting V4L2CaptureDelegate. BUG=None Review-Url: https://codereview.chromium.org/2815643002 Cr-Commit-Position: refs/heads/master@{#464927} Committed: https://chromium.googlesource.com/chromium/src/+/cd729c2a26e840d2bac79edc3b6366f9d319a76b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added weak pointer to V4L2CaptureDelegate #

Total comments: 6

Patch Set 3 : Addressed review comments #

Total comments: 2

Patch Set 4 : mcasas@ comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -32 lines) Patch
M media/capture/video/linux/v4l2_capture_delegate.h View 1 2 5 chunks +8 lines, -9 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.cc View 1 2 4 chunks +8 lines, -3 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate_unittest.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.cc View 1 2 3 7 chunks +17 lines, -13 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
Chandan
PTAL. Thank you.
3 years, 8 months ago (2017-04-11 12:08:24 UTC) #2
mcasas
+chfremer@ for review https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc File media/capture/video/linux/v4l2_capture_delegate.cc (right): https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc#newcode510 media/capture/video/linux/v4l2_capture_delegate.cc:510: base::Bind(&V4L2CaptureDelegate::DoCapture, base::Unretained(this))); How would you guarantee ...
3 years, 8 months ago (2017-04-11 17:17:34 UTC) #4
Chandan
https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc File media/capture/video/linux/v4l2_capture_delegate.cc (right): https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc#newcode510 media/capture/video/linux/v4l2_capture_delegate.cc:510: base::Bind(&V4L2CaptureDelegate::DoCapture, base::Unretained(this))); On 2017/04/11 17:17:34, mcasas wrote: > How ...
3 years, 8 months ago (2017-04-11 19:46:43 UTC) #5
mcasas
On 2017/04/11 19:46:43, Chandan wrote: > https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc > File media/capture/video/linux/v4l2_capture_delegate.cc (right): > > https://codereview.chromium.org/2815643002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc#newcode510 > ...
3 years, 8 months ago (2017-04-11 20:29:05 UTC) #6
Chandan
Uploaded patch set 2. Please review.
3 years, 8 months ago (2017-04-12 11:58:38 UTC) #7
chfremer
lgtm % update some comments https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/v4l2_capture_delegate.h File media/capture/video/linux/v4l2_capture_delegate.h (right): https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/v4l2_capture_delegate.h#newcode30 media/capture/video/linux/v4l2_capture_delegate.h:30: // on the owner's ...
3 years, 8 months ago (2017-04-12 17:13:46 UTC) #8
mcasas
https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/video_capture_device_linux.cc File media/capture/video/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/video_capture_device_linux.cc#newcode69 media/capture/video/linux/video_capture_device_linux.cc:69: base::Unretained(capture_impl_.get()), Get a WeakPtr to |capture_impl_| to be used ...
3 years, 8 months ago (2017-04-12 17:32:55 UTC) #9
Chandan
PTAL. Thank you. https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/v4l2_capture_delegate.h File media/capture/video/linux/v4l2_capture_delegate.h (right): https://codereview.chromium.org/2815643002/diff/20001/media/capture/video/linux/v4l2_capture_delegate.h#newcode30 media/capture/video/linux/v4l2_capture_delegate.h:30: // on the owner's thread, otherwise ...
3 years, 8 months ago (2017-04-13 09:06:07 UTC) #10
mcasas
lgtm % my comments and happy bots https://codereview.chromium.org/2815643002/diff/40001/media/capture/video/linux/video_capture_device_linux.cc File media/capture/video/linux/video_capture_device_linux.cc (left): https://codereview.chromium.org/2815643002/diff/40001/media/capture/video/linux/video_capture_device_linux.cc#oldcode86 media/capture/video/linux/video_capture_device_linux.cc:86: capture_impl_ = ...
3 years, 8 months ago (2017-04-13 17:43:19 UTC) #11
Chandan
Please review. https://codereview.chromium.org/2815643002/diff/40001/media/capture/video/linux/video_capture_device_linux.cc File media/capture/video/linux/video_capture_device_linux.cc (left): https://codereview.chromium.org/2815643002/diff/40001/media/capture/video/linux/video_capture_device_linux.cc#oldcode86 media/capture/video/linux/video_capture_device_linux.cc:86: capture_impl_ = nullptr; On 2017/04/13 17:43:19, mcasas ...
3 years, 8 months ago (2017-04-17 10:19:31 UTC) #13
mcasas
On 2017/04/17 10:19:31, Chandan wrote: > Please review. > > https://codereview.chromium.org/2815643002/diff/40001/media/capture/video/linux/video_capture_device_linux.cc > File media/capture/video/linux/video_capture_device_linux.cc (left): ...
3 years, 8 months ago (2017-04-17 14:54:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815643002/60001
3 years, 8 months ago (2017-04-17 16:09:10 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-17 16:12:46 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/cd729c2a26e840d2bac79edc3b63...

Powered by Google App Engine
This is Rietveld 408576698