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

Issue 1996763002: Make painting a single frame a permanent API on VideoRendererSink. (Closed)

Created:
4 years, 7 months ago by DaleCurtis
Modified:
4 years, 7 months ago
Reviewers:
danakj, xhwang, alokp
CC:
cc-bugs_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make painting a single frame a permanent API on VideoRendererSink. Having to call VRS::Start(), wait for VRS::RC::Render(), and then queuing a VRS::Stop() across multiple threads just to paint a single frame is not desirable... so remove a bunch of TODOs and rename PaintFrameUsingOldRenderingPath() to PaintSingleFrame(). This allows a lot of simplification in VideoRendererImpl and avoids Chromecast from having to pick up this complexity. It also will likely resolve nullptr crashes due having two sink startup points. BUG=611714 TEST=existing unittests pass. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/e9c89e91623714fe04fd20c5caaee03dcae021e5 Cr-Commit-Position: refs/heads/master@{#395138}

Patch Set 1 : Cleanup. #

Total comments: 2

Patch Set 2 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -214 lines) Patch
M cc/layers/video_frame_provider.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chromecast/renderer/media/cma_renderer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/null_video_sink.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/null_video_sink.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/null_video_sink_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_renderer_sink.h View 1 1 chunk +6 lines, -10 lines 0 comments Download
M media/blink/video_frame_compositor.h View 2 chunks +2 lines, -3 lines 0 comments Download
M media/blink/video_frame_compositor.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M media/blink/video_frame_compositor_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/video_renderer_algorithm.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/video_renderer_impl.h View 6 chunks +14 lines, -16 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 9 chunks +102 lines, -150 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 6 chunks +9 lines, -13 lines 0 comments Download
M media/test/pipeline_integration_test_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/test/pipeline_integration_test_base.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
DaleCurtis
alokp: chromecast/, optional media/ review. xhwang: media/ review. danakj: cc/ comment cleanup.
4 years, 7 months ago (2016-05-19 22:32:26 UTC) #3
danakj
LGTM
4 years, 7 months ago (2016-05-19 22:35:33 UTC) #6
alokp
lgtm
4 years, 7 months ago (2016-05-19 22:39:57 UTC) #8
xhwang
Nice cleanup. LGTM https://chromiumcodereview.appspot.com/1996763002/diff/20001/media/base/video_renderer_sink.h File media/base/video_renderer_sink.h (right): https://chromiumcodereview.appspot.com/1996763002/diff/20001/media/base/video_renderer_sink.h#newcode59 media/base/video_renderer_sink.h:59: // Start() -> Render() -> Stop(). ...
4 years, 7 months ago (2016-05-19 22:47:28 UTC) #9
DaleCurtis
https://chromiumcodereview.appspot.com/1996763002/diff/20001/media/base/video_renderer_sink.h File media/base/video_renderer_sink.h (right): https://chromiumcodereview.appspot.com/1996763002/diff/20001/media/base/video_renderer_sink.h#newcode59 media/base/video_renderer_sink.h:59: // Start() -> Render() -> Stop(). On 2016/05/19 at ...
4 years, 7 months ago (2016-05-20 18:18:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996763002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996763002/40001
4 years, 7 months ago (2016-05-20 18:19:25 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 7 months ago (2016-05-20 19:38:12 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 19:40:52 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e9c89e91623714fe04fd20c5caaee03dcae021e5
Cr-Commit-Position: refs/heads/master@{#395138}

Powered by Google App Engine
This is Rietveld 408576698