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

Issue 1658303002: Create abstract interface for media::Pipeline. (Closed)

Created:
4 years, 10 months ago by sandersd (OOO until July 31)
Modified:
4 years, 10 months ago
Reviewers:
*xhwang, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create abstract interface for media::Pipeline. This changes media::Pipeline to be an abstract base, and moves the implementation into media::PipelineImpl. This will make it possible to mock Pipeline in tests. Committed: https://crrev.com/c82a278bd475fd1a68d0b9452e028537f4263043 Cr-Commit-Position: refs/heads/master@{#377035}

Patch Set 1 #

Patch Set 2 : Separate PipelineImpl. #

Total comments: 2

Patch Set 3 : Rebase. #

Patch Set 4 : Remove scoped_ptr pointers. #

Total comments: 18

Patch Set 5 : Split into pipeline_impl.cc #

Patch Set 6 : media_pipeline_impl_integration_apptests #

Patch Set 7 : Revert integration test names. #

Patch Set 8 : That same thing, but correctly. #

Patch Set 9 : Rebase. #

Patch Set 10 : Remove obsolete cdm_context.h include. #

Patch Set 11 : Fix FakeMediaSource includes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -2864 lines) Patch
M content/renderer/media/render_media_log.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/render_media_log.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/media_log.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/media_log.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 5 chunks +45 lines, -322 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 4 1 chunk +0 lines, -873 lines 0 comments Download
A + media/base/pipeline_impl.h View 1 2 3 4 5 6 7 6 chunks +37 lines, -140 lines 0 comments Download
A + media/base/pipeline_impl.cc View 1 2 3 4 35 chunks +137 lines, -142 lines 0 comments Download
A + media/base/pipeline_impl_unittest.cc View 1 2 3 4 51 chunks +108 lines, -116 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1166 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/test/fake_media_source.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/decoder_selector.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/decrypting_video_decoder.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D media/test/pipeline_integration_test.cc View 1 2 3 4 5 6 7 15 chunks +48 lines, -73 lines 0 comments Download
M media/test/pipeline_integration_test_base.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M media/test/pipeline_integration_test_base.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -11 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
sandersd (OOO until July 31)
4 years, 10 months ago (2016-02-02 19:57:42 UTC) #2
sandersd (OOO until July 31)
After discussion with xhwang@, we have agreed to this style of refactor for Pipeline, although ...
4 years, 10 months ago (2016-02-17 00:14:48 UTC) #5
DaleCurtis
sgtm! https://codereview.chromium.org/1658303002/diff/20001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/1658303002/diff/20001/media/base/pipeline.h#newcode79 media/base/pipeline.h:79: scoped_ptr<Renderer>* renderer, Remind me, what was the reason ...
4 years, 10 months ago (2016-02-17 00:19:11 UTC) #6
sandersd (OOO until July 31)
https://codereview.chromium.org/1658303002/diff/20001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/1658303002/diff/20001/media/base/pipeline.h#newcode79 media/base/pipeline.h:79: scoped_ptr<Renderer>* renderer, On 2016/02/17 00:19:11, DaleCurtis wrote: > Remind ...
4 years, 10 months ago (2016-02-18 19:14:47 UTC) #7
sandersd (OOO until July 31)
scoped_ptr pointers removed, PTAL.
4 years, 10 months ago (2016-02-19 01:03:55 UTC) #8
DaleCurtis
+xhwang since I won't have a chance to look over this today.
4 years, 10 months ago (2016-02-19 01:06:52 UTC) #11
xhwang
Overall looks good! I think we should take this opportunity take a more closer look ...
4 years, 10 months ago (2016-02-19 17:06:08 UTC) #12
DaleCurtis
I think we should keep these as a purely mechanical change before tweaking any APIs. ...
4 years, 10 months ago (2016-02-19 23:19:45 UTC) #13
sandersd (OOO until July 31)
https://codereview.chromium.org/1658303002/diff/60001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/1658303002/diff/60001/media/base/pipeline.h#newcode105 media/base/pipeline.h:105: // is suspended. On 2016/02/19 17:06:07, xhwang wrote: > ...
4 years, 10 months ago (2016-02-22 22:32:57 UTC) #14
xhwang
lgtm % one discussion I like the Pipeline/PipelineImpl separation. But it's kinda sad to see ...
4 years, 10 months ago (2016-02-22 22:47:13 UTC) #15
sandersd (OOO until July 31)
On 2016/02/22 22:47:13, xhwang wrote: > lgtm % one discussion > > I like the ...
4 years, 10 months ago (2016-02-22 22:58:50 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1658303002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1658303002/180001
4 years, 10 months ago (2016-02-23 00:52:22 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/160372) linux_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-23 01:20:04 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1658303002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1658303002/200001
4 years, 10 months ago (2016-02-23 01:51:33 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-23 03:29:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1658303002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1658303002/200001
4 years, 10 months ago (2016-02-23 18:46:27 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 10 months ago (2016-02-23 19:15:39 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 19:16:36 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c82a278bd475fd1a68d0b9452e028537f4263043
Cr-Commit-Position: refs/heads/master@{#377035}

Powered by Google App Engine
This is Rietveld 408576698