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

Issue 2551193002: [Mojo Video Capture] Decouple VCController from VCBufferPool and VCDeviceClient (Closed)

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

Description

[Mojo Video Capture] Decouple VideoCaptureController from VideoCaptureBufferPool and VideoCaptureDeviceClient Decouple VideoCaptureController from VideoCaptureBufferPool and VideoCaptureDeviceClient. This is needed in order to prepare VideoCaptureController for working with both the (legacy) in-process video capture and the new video_capture Mojo service. List of changes: * Introduce an abstraction FrameBufferHost for the VideoCaptureController to talk to the VideoCaptureBufferPool. * Move VideoFrameReceiverOnIOThread to separate file. * Move factory logic for creating and connecting VideoCaptureBufferPoolImpl and VideoCaptureDeviceClient out of VideoCaptureController and into VideoCaptureManager as well as the tests. * Update OWNERS to include new file and include chfremer as owner. * In VideoCaptureDeviceClient: Rename |frame_format| to |foramt|. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.9.8 BUG=584797 TEST= content_unittests, video_capture_unittests, Apprtc loopback on Debug, Desktop Capture Example extension on Release [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Committed: https://crrev.com/0b129bdbdd3099a492bcf014c22239c2b35071a2 Cr-Commit-Position: refs/heads/master@{#438604}

Patch Set 1 #

Total comments: 20

Patch Set 2 : mcasas comments #

Total comments: 20

Patch Set 3 : miu's comments #

Patch Set 4 : Added TODO comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -296 lines) Patch
M content/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/OWNERS View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.h View 1 2 5 chunks +15 lines, -15 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 12 chunks +29 lines, -71 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 18 chunks +101 lines, -51 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client_unittest.cc View 4 chunks +27 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 29 chunks +128 lines, -101 lines 0 comments Download
A content/browser/renderer_host/media/video_frame_receiver_on_io_thread.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M media/capture/video/video_capture_device.h View 1 2 chunks +13 lines, -5 lines 0 comments Download
M media/capture/video/video_capture_device_client.cc View 9 chunks +37 lines, -41 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 43 (28 generated)
chfremer
mcasas@: PTAL
4 years ago (2016-12-05 20:26:38 UTC) #11
mcasas
Looking good. Would like miu@ to take a quick look too. https://codereview.chromium.org/2551193002/diff/40001/content/browser/renderer_host/media/OWNERS File content/browser/renderer_host/media/OWNERS (right): ...
4 years ago (2016-12-06 20:02:24 UTC) #15
chfremer
Addressed mcasas@ comments https://codereview.chromium.org/2551193002/diff/40001/content/browser/renderer_host/media/OWNERS File content/browser/renderer_host/media/OWNERS (right): https://codereview.chromium.org/2551193002/diff/40001/content/browser/renderer_host/media/OWNERS#newcode10 content/browser/renderer_host/media/OWNERS:10: per-file video_*=chfremer@chromium.org On 2016/12/06 20:02:24, mcasas ...
4 years ago (2016-12-06 21:07:42 UTC) #16
chfremer
miu@: PTAL
4 years ago (2016-12-06 21:08:01 UTC) #18
chfremer
On 2016/12/06 21:08:01, chfremer wrote: > miu@: PTAL ping
4 years ago (2016-12-13 17:26:28 UTC) #19
miu
On 2016/12/13 17:26:28, chfremer wrote: > On 2016/12/06 21:08:01, chfremer wrote: > > miu@: PTAL ...
4 years ago (2016-12-13 20:25:12 UTC) #20
miu
PS2 lgtm. Comments below are mostly polish, suggestions, or sanity-check questions: https://codereview.chromium.org/2551193002/diff/60001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): ...
4 years ago (2016-12-13 21:11:10 UTC) #21
chfremer
mcasas@: PTAL miu@: PTAL avi@: Please RS https://codereview.chromium.org/2551193002/diff/60001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/2551193002/diff/60001/content/browser/renderer_host/media/video_capture_controller.cc#newcode124 content/browser/renderer_host/media/video_capture_controller.cc:124: if (frame_buffer_pool_ ...
4 years ago (2016-12-13 23:12:40 UTC) #25
Avi (use Gerrit)
LGTM stampity stamp
4 years ago (2016-12-14 03:34:04 UTC) #28
mcasas
lgtm Please add TODOs for tasks in the future, so other developers can see that ...
4 years ago (2016-12-14 17:50:49 UTC) #29
chfremer
Thanks for the reviews! https://codereview.chromium.org/2551193002/diff/40001/content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc File content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc (right): https://codereview.chromium.org/2551193002/diff/40001/content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc#newcode21 content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc:21: content::BrowserThread::IO, FROM_HERE, On 2016/12/14 17:50:49, ...
4 years ago (2016-12-14 18:04:47 UTC) #32
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/2551193002/100001
4 years ago (2016-12-14 20:08:31 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years ago (2016-12-14 20:14:39 UTC) #40
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0b129bdbdd3099a492bcf014c22239c2b35071a2 Cr-Commit-Position: refs/heads/master@{#438604}
4 years ago (2016-12-14 20:16:23 UTC) #42
chfremer
4 years ago (2016-12-21 19:50:48 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/2595853003/ by chfremer@chromium.org.

The reason for reverting is: This caused a regression where video capture on
Android would get stuck in a loop when putting the browser to the background and
restoring.
See crbug.com/675528 for details..

Powered by Google App Engine
This is Rietveld 408576698