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

Issue 212973002: Refactor VideoDestinationHandler to implement MediaStreamVideoSource. (Closed)

Created:
6 years, 9 months ago by perkj_chrome
Modified:
6 years, 8 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Refactor VideoDestinationHandler to implement MediaStreamVideoSource. VideoDestinationHandler is moved to media/webrtc since it needs to use libyuv. It also make sence since its a private API only used for WebRtc. This cl also remove the WebRtcVideoCaptureAdapter::SetCurrrentFormat and make sure video resolution constraints are not passed to libJingle. Libjingle do not need to know the capture resolution or the used resolution constraints and that is infact how VideoDestionationHandler can work today. This is needed to simplify the adapter and the use of MediaStreamVideoSource since its currently not possible to call WebRtcVideoCaptureAdapter::SetCurrrentFormat before the MediaStreamVideoSource::OnSupportedFormat has been called. BUG=334243 // TBR Jam for gyp changes, yzshen for the header file path change in Pepper. R=joi@chromium.org, ronghuawu@chromium.org TBR=jam, yzshen1 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261364

Patch Set 1 #

Total comments: 21

Patch Set 2 : Addressed review comments. #

Total comments: 13

Patch Set 3 : Rebased and addressed comments. #

Total comments: 2

Patch Set 4 : Addressed review comments. #

Patch Set 5 : Reverted changes in media_stream_dependency_factory, mock_media_stream_registry and video_source_ha… #

Patch Set 6 : Fix content_renderer.gypi for Android #

Patch Set 7 : Rebased #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -753 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 4 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 3 chunks +12 lines, -7 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 chunks +20 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track_unittest.cc View 4 chunks +4 lines, -34 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
A + content/renderer/media/mock_media_stream_video_sink.h View 1 2 3 1 chunk +21 lines, -16 lines 0 comments Download
A + content/renderer/media/mock_media_stream_video_sink.cc View 1 2 3 1 chunk +15 lines, -19 lines 0 comments Download
M content/renderer/media/rtc_media_constraints.cc View 2 chunks +5 lines, -0 lines 0 comments Download
D content/renderer/media/video_destination_handler.h View 1 chunk +0 lines, -94 lines 0 comments Download
D content/renderer/media/video_destination_handler.cc View 1 chunk +0 lines, -211 lines 0 comments Download
D content/renderer/media/video_destination_handler_unittest.cc View 1 chunk +0 lines, -126 lines 0 comments Download
A + content/renderer/media/webrtc/video_destination_handler.h View 2 chunks +23 lines, -25 lines 0 comments Download
A + content/renderer/media/webrtc/video_destination_handler.cc View 1 2 3 5 chunks +90 lines, -106 lines 0 comments Download
A + content/renderer/media/webrtc/video_destination_handler_unittest.cc View 1 2 3 3 chunks +35 lines, -78 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M content/renderer/pepper/pepper_video_destination_host.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
perkj_chrome
Can you please review?
6 years, 9 months ago (2014-03-26 14:28:56 UTC) #1
Jói
LGTM, nits only. https://codereview.chromium.org/212973002/diff/1/.gitmodules File .gitmodules (right): https://codereview.chromium.org/212973002/diff/1/.gitmodules#newcode1 .gitmodules:1: [submodule "breakpad/src"] You probably don't want ...
6 years, 9 months ago (2014-03-26 21:36:13 UTC) #2
Ronghua Wu (Left Chromium)
https://codereview.chromium.org/212973002/diff/1/.gitmodules File .gitmodules (right): https://codereview.chromium.org/212973002/diff/1/.gitmodules#newcode109 .gitmodules:109: [submodule "third_party/clang_format/script"] changes to this file doesn't belong to ...
6 years, 9 months ago (2014-03-26 22:27:53 UTC) #3
perkj_chrome
Ronghua, PTAL I removed code from MediaStreamDependency factory that is no longer used as well ...
6 years, 9 months ago (2014-03-27 11:24:31 UTC) #4
perkj_chrome
yschen , can you help with the pepper file and the gyp changes? Thanks Per
6 years, 9 months ago (2014-03-27 14:55:03 UTC) #5
Ronghua Wu (Left Chromium)
https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (left): https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc#oldcode181 content/renderer/media/webrtc/video_destination_handler.cc:181: if (stream.isNull() || !stream.extraData()) { why change? https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc File ...
6 years, 9 months ago (2014-03-28 02:30:11 UTC) #6
perkj_chrome
PTAL https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (left): https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc#oldcode181 content/renderer/media/webrtc/video_destination_handler.cc:181: if (stream.isNull() || !stream.extraData()) { On 2014/03/28 02:30:11, ...
6 years, 9 months ago (2014-03-28 08:36:44 UTC) #7
perkj_chrome
On 2014/03/28 08:36:44, perkj wrote: > PTAL > > https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc > File content/renderer/media/webrtc/video_destination_handler.cc (left): > ...
6 years, 8 months ago (2014-03-31 08:15:28 UTC) #8
Ronghua Wu (Left Chromium)
LGTM with minor comments. https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc#newcode106 content/renderer/media/webrtc/video_destination_handler.cc:106: libyuv::BGRAToI420(reinterpret_cast<uint8*>(bitmap->getPixels()), On 2014/03/28 08:36:44, perkj ...
6 years, 8 months ago (2014-04-01 00:01:26 UTC) #9
perkj_chrome
https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/212973002/diff/50001/content/renderer/media/webrtc/video_destination_handler.cc#newcode119 content/renderer/media/webrtc/video_destination_handler.cc:119: // PpFrameWriterProxy is a helper class to make sure ...
6 years, 8 months ago (2014-04-01 10:06:57 UTC) #10
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-01 10:09:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/90001
6 years, 8 months ago (2014-04-01 10:09:45 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 11:30:30 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-01 11:30:31 UTC) #14
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-01 13:05:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/110001
6 years, 8 months ago (2014-04-01 13:05:32 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 13:42:28 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-01 13:42:29 UTC) #18
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-02 05:09:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/110001
6 years, 8 months ago (2014-04-02 05:09:46 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 06:22:14 UTC) #21
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=129009
6 years, 8 months ago (2014-04-02 06:22:15 UTC) #22
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-02 09:20:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/130001
6 years, 8 months ago (2014-04-02 09:20:52 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 12:45:32 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=292576
6 years, 8 months ago (2014-04-02 12:45:33 UTC) #26
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-02 13:36:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/130001
6 years, 8 months ago (2014-04-02 13:37:00 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 18:15:14 UTC) #29
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=60431
6 years, 8 months ago (2014-04-02 18:15:15 UTC) #30
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 8 months ago (2014-04-03 07:35:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/212973002/130001
6 years, 8 months ago (2014-04-03 07:37:33 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 10:12:21 UTC) #33
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 10:12:22 UTC) #34
perkj_chrome
6 years, 8 months ago (2014-04-03 12:10:51 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 manually as r261364 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698