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

Issue 10391065: handle the case when device is closed before media pipeline is fully initialized. (Closed)

Created:
8 years, 7 months ago by wjia(left Chromium)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

handle the case when device is closed before media pipeline is fully initialized. CaptureVideoDecoder needs a signal for pre-matured closing of device. Then it can fulfill preroll request from VideoRenderBase. Add unit tests for VideoCaptureController. BUG=127552 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139559

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : fix dll #

Total comments: 6

Patch Set 6 : code review #

Total comments: 8

Patch Set 7 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -41 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_event_handler.h View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
A content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +268 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 2 3 4 5 6 2 chunks +17 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 2 3 4 5 6 9 chunks +32 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 2 chunks +9 lines, -8 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/capture_video_decoder.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/capture_video_decoder.cc View 1 2 3 4 5 3 chunks +22 lines, -2 lines 0 comments Download
M media/video/capture/video_capture_device.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Ronghua Wu (Left Chromium)
Can you add unit tests for the new methods? http://codereview.chromium.org/10391065/diff/1011/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): http://codereview.chromium.org/10391065/diff/1011/content/browser/renderer_host/media/video_capture_controller.cc#newcode220 content/browser/renderer_host/media/video_capture_controller.cc:220: ...
8 years, 7 months ago (2012-05-17 22:54:37 UTC) #1
phoglund_chromium
On 2012/05/17 22:54:37, Ronghua Wu wrote: > Can you add unit tests for the new ...
8 years, 7 months ago (2012-05-21 09:39:31 UTC) #2
wjia(left Chromium)
PTAL. http://codereview.chromium.org/10391065/diff/1011/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): http://codereview.chromium.org/10391065/diff/1011/content/browser/renderer_host/media/video_capture_controller.cc#newcode220 content/browser/renderer_host/media/video_capture_controller.cc:220: client->event_handler->OnPaused(client->controller_id); On 2012/05/17 22:54:37, Ronghua Wu wrote: > ...
8 years, 7 months ago (2012-05-23 18:46:48 UTC) #3
wjia(left Chromium)
+mflodman@
8 years, 7 months ago (2012-05-24 00:18:14 UTC) #4
Ronghua Wu (Left Chromium)
LGTM with few minor comments. Nice tests. http://codereview.chromium.org/10391065/diff/35001/content/browser/renderer_host/media/video_capture_controller_unittest.cc File content/browser/renderer_host/media/video_capture_controller_unittest.cc (right): http://codereview.chromium.org/10391065/diff/35001/content/browser/renderer_host/media/video_capture_controller_unittest.cc#newcode30 content/browser/renderer_host/media/video_capture_controller_unittest.cc:30: Remove empty ...
8 years, 6 months ago (2012-05-29 01:16:50 UTC) #5
wjia(left Chromium)
http://codereview.chromium.org/10391065/diff/35001/content/browser/renderer_host/media/video_capture_controller_unittest.cc File content/browser/renderer_host/media/video_capture_controller_unittest.cc (right): http://codereview.chromium.org/10391065/diff/35001/content/browser/renderer_host/media/video_capture_controller_unittest.cc#newcode30 content/browser/renderer_host/media/video_capture_controller_unittest.cc:30: On 2012/05/29 01:16:50, Ronghua Wu wrote: > Remove empty ...
8 years, 6 months ago (2012-05-29 03:51:12 UTC) #6
wjia(left Chromium)
+ jam@ for content/content_tests.gypi scherkus@ for media/video/capture/video_capture_device.h
8 years, 6 months ago (2012-05-29 03:53:45 UTC) #7
mflodman_chromium_OOO
LG, just a minor style nit and one question. http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_host/media/video_capture_controller.h File content/browser/renderer_host/media/video_capture_controller.h (right): http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_host/media/video_capture_controller.h#newcode36 content/browser/renderer_host/media/video_capture_controller.h:36: ...
8 years, 6 months ago (2012-05-29 09:11:03 UTC) #8
wjia(left Chromium)
http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_host/media/video_capture_controller.h File content/browser/renderer_host/media/video_capture_controller.h (right): http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_host/media/video_capture_controller.h#newcode36 content/browser/renderer_host/media/video_capture_controller.h:36: class CONTENT_EXPORT VideoCaptureController On 2012/05/29 09:11:03, mflodman wrote: > ...
8 years, 6 months ago (2012-05-29 16:59:14 UTC) #9
jam
On 2012/05/29 03:53:45, wjia wrote: > + jam@ for content/content_tests.gypi lgtm
8 years, 6 months ago (2012-05-29 17:33:25 UTC) #10
mflodman_chromium_OOO
8 years, 6 months ago (2012-05-29 18:19:53 UTC) #11
LGTM

http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_h...
File content/browser/renderer_host/media/video_capture_controller.h (right):

http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_h...
content/browser/renderer_host/media/video_capture_controller.h:36: class
CONTENT_EXPORT VideoCaptureController
On 2012/05/29 16:59:14, wjia wrote:
> On 2012/05/29 09:11:03, mflodman wrote:
> > Is CONTENT_EXPORT really needed? I didn't find where that should be needed.
> 
> It's needed by VideoCaptureControllerTest.

Ah, got it.

http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_h...
File content/browser/renderer_host/media/video_capture_host.h (right):

http://codereview.chromium.org/10391065/diff/47001/content/browser/renderer_h...
content/browser/renderer_host/media/video_capture_host.h:141: void DoPaused(int
device_id);
On 2012/05/29 16:59:14, wjia wrote:
> On 2012/05/29 09:11:03, mflodman wrote:
> > Do we want a comment it should be called on IO-thread?
> 
> All Do* functions have been renamed to DO*OnIOThread to make it clear that
those
> functions should be called on IO thread.

Nice!

Powered by Google App Engine
This is Rietveld 408576698