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

Issue 2377163002: VideoCaptureImpl cleanup: merge ctor+Init() and DeInit()+dtor. (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
Reviewers:
miu, chfremer
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoCaptureImpl cleanup: merge ctor+Init() and DeInit()+dtor. VideoCaptureImpl::ctor and Init() are always called in sequence, and so are DeInit() and the destructor. This CL just bundles them. Some strange comments about threading are made irrelevant. This CL follows up on some comments in https://crrev.com/2365223002/ TEST= ./out/gn/content_unittests --gtest_filter=VideoCaptureImpl* and video capture WAI using any demo BUG=650113 Committed: https://crrev.com/25f8a1a991cb03ab2c386f25603b9bb468cde68c Cr-Commit-Position: refs/heads/master@{#421824}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : chfremer@ nit #

Patch Set 3 : Rebase and cleanups in unit test files #

Total comments: 2

Patch Set 4 : miu@s comment on passing |io_task_runner| argument #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -132 lines) Patch
M content/renderer/media/video_capture_impl.h View 1 2 3 2 chunks +5 lines, -9 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 1 chunk +7 lines, -16 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager.cc View 1 2 3 chunks +8 lines, -15 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager_unittest.cc View 1 2 7 chunks +33 lines, -43 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 1 2 13 chunks +13 lines, -49 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
mcasas
chfremer@ PTAL miu@ FYI (because of offline conversation about DeInit()-derived expectations)
4 years, 2 months ago (2016-09-28 23:13:42 UTC) #6
chfremer
lgtm % comment https://codereview.chromium.org/2377163002/diff/20001/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): https://codereview.chromium.org/2377163002/diff/20001/content/renderer/media/video_capture_impl.cc#newcode122 content/renderer/media/video_capture_impl.cc:122: // message_filter_->AddDelegate(this); Can be removed?
4 years, 2 months ago (2016-09-28 23:28:09 UTC) #7
mcasas
https://codereview.chromium.org/2377163002/diff/20001/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): https://codereview.chromium.org/2377163002/diff/20001/content/renderer/media/video_capture_impl.cc#newcode122 content/renderer/media/video_capture_impl.cc:122: // message_filter_->AddDelegate(this); On 2016/09/28 23:28:09, chfremer wrote: > Can ...
4 years, 2 months ago (2016-09-28 23:49:52 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.chromium.org/2377163002/40001
4 years, 2 months ago (2016-09-29 00:58:11 UTC) #11
commit-bot: I haz the power
Failed to apply patch for content/renderer/media/video_capture_impl_manager.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-09-29 01:44:53 UTC) #13
miu
lgtm % style issue: https://codereview.chromium.org/2377163002/diff/120001/content/renderer/media/video_capture_impl.h File content/renderer/media/video_capture_impl.h (right): https://codereview.chromium.org/2377163002/diff/120001/content/renderer/media/video_capture_impl.h#newcode54 content/renderer/media/video_capture_impl.h:54: const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); Please use ...
4 years, 2 months ago (2016-09-29 06:59:41 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/2377163002/140001
4 years, 2 months ago (2016-09-29 14:40:40 UTC) #23
mcasas
https://codereview.chromium.org/2377163002/diff/120001/content/renderer/media/video_capture_impl.h File content/renderer/media/video_capture_impl.h (right): https://codereview.chromium.org/2377163002/diff/120001/content/renderer/media/video_capture_impl.h#newcode54 content/renderer/media/video_capture_impl.h:54: const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); On 2016/09/29 06:59:40, miu wrote: > ...
4 years, 2 months ago (2016-09-29 14:42:41 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 2 months ago (2016-09-29 15:24:04 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 15:25:47 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/25f8a1a991cb03ab2c386f25603b9bb468cde68c
Cr-Commit-Position: refs/heads/master@{#421824}

Powered by Google App Engine
This is Rietveld 408576698