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

Issue 1358883003: Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink (Closed)

Created:
5 years, 3 months ago by emircan
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@send-gmbs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink MediaStreamVideoRendererSink is the common sink for video playback where we receive both the local camera capture frame and all the remote capture frames from peer connections. They are all hooked to the MediaStream elements. This CL follows dcastagna's CL that applies asynchronous copies to WebMediaPlayerimpl [0]. [0] https://codereview.chromium.org/1273943002/ BUG=440843, 503835 TEST= On Linux: - With and Without the kUseGpuMemoryBuffersForCapture flag, AppRTC loopback runs as expected. - With and Without the kEnableGpuMemoryBufferVideoFrames flag, AppRTC loopback runs as expected Committed: https://crrev.com/d49c3945570e7eff2ce728927f8c9fecd04f3487 Cr-Commit-Position: refs/heads/master@{#353839}

Patch Set 1 : #

Total comments: 17

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Added unittests and refactored mock. #

Patch Set 5 : Rebase #

Patch Set 6 : #

Patch Set 7 : Test issues. #

Total comments: 2

Patch Set 8 : phoglund@ comments. #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : Reland #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -54 lines) Patch
M content/public/renderer/media_stream_renderer_factory.h View 1 2 3 4 2 chunks +14 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_renderer_factory_impl.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_renderer_factory_impl.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_video_renderer_sink.h View 1 2 3 4 chunks +23 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_video_renderer_sink.cc View 1 2 3 4 chunks +39 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_video_renderer_sink_unittest.cc View 1 2 3 4 4 chunks +38 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -7 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 6 7 8 9 4 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -5 lines 0 comments Download
M content/shell/renderer/layout_test/test_media_stream_renderer_factory.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/shell/renderer/layout_test/test_media_stream_renderer_factory.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/media/webrtc_test_utilities.js View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M media/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A media/renderers/mock_gpu_memory_buffer_video_frame_pool.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A media/renderers/mock_gpu_memory_buffer_video_frame_pool.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 2 3 2 chunks +1 line, -15 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
emircan
PTAL. As you review the overall function signature changes RenderFrameImpl to MediaStreamVideoRendererSink, I will change ...
5 years, 3 months ago (2015-09-22 20:43:22 UTC) #5
Daniele Castagna
On 2015/09/22 at 20:43:22, emircan wrote: > PTAL. As you review the overall function signature ...
5 years, 2 months ago (2015-09-25 00:26:33 UTC) #7
emircan
On 2015/09/25 00:26:33, Daniele Castagna wrote: > On 2015/09/22 at 20:43:22, emircan wrote: > > ...
5 years, 2 months ago (2015-09-25 17:54:31 UTC) #8
Daniele Castagna
On 2015/09/25 at 17:54:31, emircan wrote: > On 2015/09/25 00:26:33, Daniele Castagna wrote: > > ...
5 years, 2 months ago (2015-09-25 19:00:58 UTC) #9
mcasas
We should find a way to measure impact in a favourable scenario. f.i. CPU/memory pressure ...
5 years, 2 months ago (2015-10-02 19:30:46 UTC) #10
emircan
https://codereview.chromium.org/1358883003/diff/80001/content/public/renderer/media_stream_renderer_factory.h File content/public/renderer/media_stream_renderer_factory.h (right): https://codereview.chromium.org/1358883003/diff/80001/content/public/renderer/media_stream_renderer_factory.h#newcode13 content/public/renderer/media_stream_renderer_factory.h:13: #include "media/renderers/gpu_video_accelerator_factories.h" On 2015/10/02 19:30:46, mcasas wrote: > Forward ...
5 years, 2 months ago (2015-10-03 00:11:26 UTC) #11
mcasas
lgtm https://chromiumcodereview.appspot.com/1358883003/diff/80001/content/renderer/media/media_stream_video_renderer_sink.cc File content/renderer/media/media_stream_video_renderer_sink.cc (right): https://chromiumcodereview.appspot.com/1358883003/diff/80001/content/renderer/media/media_stream_video_renderer_sink.cc#newcode104 content/renderer/media/media_stream_video_renderer_sink.cc:104: this, frame)); On 2015/10/03 00:11:26, emircan wrote: > ...
5 years, 2 months ago (2015-10-05 17:49:45 UTC) #12
Daniele Castagna
https://codereview.chromium.org/1358883003/diff/100001/content/renderer/media/media_stream_video_renderer_sink.cc File content/renderer/media/media_stream_video_renderer_sink.cc (right): https://codereview.chromium.org/1358883003/diff/100001/content/renderer/media/media_stream_video_renderer_sink.cc#newcode23 content/renderer/media/media_stream_video_renderer_sink.cc:23: const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, You can get this from gpu_factories ...
5 years, 2 months ago (2015-10-05 22:00:32 UTC) #13
emircan
On 2015/10/05 17:49:45, mcasas wrote: > How so? I still see the two methods. Sorry, ...
5 years, 2 months ago (2015-10-07 19:43:52 UTC) #14
emircan
@dcastagna, I added the new signature to media_stream_video_renderer_sink_unittest.cc. What other unittests you think I should ...
5 years, 2 months ago (2015-10-07 19:45:24 UTC) #15
Daniele Castagna
On 2015/10/07 at 19:45:24, emircan wrote: > @dcastagna, I added the new signature to media_stream_video_renderer_sink_unittest.cc. ...
5 years, 2 months ago (2015-10-07 19:57:11 UTC) #16
mcasas
I didn't mean LGTM before but I do now :) (% dcastgna's parts) https://codereview.chromium.org/1358883003/diff/120001/content/renderer/media/webmediaplayer_ms.h File ...
5 years, 2 months ago (2015-10-07 23:44:55 UTC) #17
reveman
No need to wait for my review here. dcastagna@'s review is enough.
5 years, 2 months ago (2015-10-07 23:56:56 UTC) #18
emircan
On 2015/10/07 19:57:11, Daniele Castagna wrote: > On 2015/10/07 at 19:45:24, emircan wrote: > > ...
5 years, 2 months ago (2015-10-08 01:44:24 UTC) #19
emircan
Also, I rebased so that it no longer follows the other patch and can land ...
5 years, 2 months ago (2015-10-08 01:54:27 UTC) #20
Daniele Castagna
LGTM. It seems to be failing consistently on mac though. :/
5 years, 2 months ago (2015-10-08 15:38:36 UTC) #23
emircan
sievers@chromium.org: Please review changes in content/public/*, content/shell/*, and content/renderer/render_frame_impl.cc dalecurtis@chromium.org: Please review changes in media/*
5 years, 2 months ago (2015-10-08 19:56:18 UTC) #25
no sievers
On 2015/10/08 19:56:18, emircan wrote: > mailto:sievers@chromium.org: Please review changes in content/public/*, > content/shell/*, and ...
5 years, 2 months ago (2015-10-08 21:52:52 UTC) #26
emircan
xhwang@chromium.org: Please review changes in media/* . I just realized dalecurtis is OOO. phoglund@chromium.org: Please ...
5 years, 2 months ago (2015-10-13 05:22:31 UTC) #31
phoglund_chromium
lgtm content/test/data/media with one suggestion https://codereview.chromium.org/1358883003/diff/250001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/1358883003/diff/250001/content/test/data/media/getusermedia.html#newcode487 content/test/data/media/getusermedia.html:487: COLOR_BACKGROUND_GREEN_THRESHOLD) I think you ...
5 years, 2 months ago (2015-10-13 08:07:01 UTC) #32
emircan
https://codereview.chromium.org/1358883003/diff/250001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/1358883003/diff/250001/content/test/data/media/getusermedia.html#newcode487 content/test/data/media/getusermedia.html:487: COLOR_BACKGROUND_GREEN_THRESHOLD) On 2015/10/13 08:07:01, phoglund_chrome wrote: > I think ...
5 years, 2 months ago (2015-10-13 18:12:27 UTC) #33
xhwang
media/ lgtm % tiny nits https://codereview.chromium.org/1358883003/diff/290001/media/renderers/mock_gpu_memory_buffer_video_frame_pool.h File media/renderers/mock_gpu_memory_buffer_video_frame_pool.h (right): https://codereview.chromium.org/1358883003/diff/290001/media/renderers/mock_gpu_memory_buffer_video_frame_pool.h#newcode18 media/renderers/mock_gpu_memory_buffer_video_frame_pool.h:18: const FrameReadyCB& frame_ready_cb) override; ...
5 years, 2 months ago (2015-10-13 19:13:31 UTC) #37
emircan
Thanks. https://codereview.chromium.org/1358883003/diff/290001/media/renderers/mock_gpu_memory_buffer_video_frame_pool.h File media/renderers/mock_gpu_memory_buffer_video_frame_pool.h (right): https://codereview.chromium.org/1358883003/diff/290001/media/renderers/mock_gpu_memory_buffer_video_frame_pool.h#newcode18 media/renderers/mock_gpu_memory_buffer_video_frame_pool.h:18: const FrameReadyCB& frame_ready_cb) override; On 2015/10/13 19:13:31, xhwang ...
5 years, 2 months ago (2015-10-13 19:17:36 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358883003/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358883003/310001
5 years, 2 months ago (2015-10-13 19:19:40 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:310001)
5 years, 2 months ago (2015-10-13 20:30:16 UTC) #42
commit-bot: I haz the power
5 years, 2 months ago (2015-10-13 20:30:51 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d49c3945570e7eff2ce728927f8c9fecd04f3487
Cr-Commit-Position: refs/heads/master@{#353839}

Powered by Google App Engine
This is Rietveld 408576698