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

Issue 1306843003: CmaMediaPipelineClient to watch media pipeline status (Closed)

Created:
5 years, 4 months ago by yucliu1
Modified:
5 years, 3 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, 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

CmaMediaPipelineClient to watch media pipeline status cma pipeline use CmaMediaPipelineClient to create media pipeline backend and report creation and deletion of media pipeline backend. BUG=internal 20612516 Committed: https://crrev.com/b26f03db16a4752572e136d3c531234bfa45eb63 Cr-Commit-Position: refs/heads/master@{#346977}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Nit #

Patch Set 3 : CmaMediaPipelineClient #

Total comments: 4

Patch Set 4 : DISALLOW_COPY_AND_ASSIGN for CmaMediaPipelineClient #

Patch Set 5 : CastResource #

Total comments: 4

Patch Set 6 : Move CastResource to chromecast/cast #

Total comments: 32

Patch Set 7 : Move CastResource to chromecast/base #

Patch Set 8 : Dummy callback in cma renderer #

Total comments: 2

Patch Set 9 : Doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -22 lines) Patch
A chromecast/base/cast_resource.h View 1 2 3 4 5 6 7 8 1 chunk +71 lines, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 chunks +6 lines, -9 lines 0 comments Download
A chromecast/browser/media/cma_media_pipeline_client.h View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
A chromecast/browser/media/cma_media_pipeline_client.cc View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
M chromecast/browser/media/cma_message_filter_host.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chromecast/browser/media/cma_message_filter_host.cc View 1 2 3 chunks +13 lines, -5 lines 0 comments Download
M chromecast/browser/media/media_pipeline_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/chromecast.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chromecast/media/cma/filters/cma_renderer.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_client.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.cc View 1 3 chunks +14 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (5 generated)
yucliu1
5 years, 4 months ago (2015-08-25 00:30:13 UTC) #2
yucliu1
+gunsch, gfhuang
5 years, 4 months ago (2015-08-25 00:33:46 UTC) #4
halliwell
On 2015/08/25 00:33:46, yucliu1 wrote: > +gunsch, gfhuang Mostly nits. Consider adding a test that ...
5 years, 4 months ago (2015-08-25 00:48:26 UTC) #5
halliwell
https://codereview.chromium.org/1306843003/diff/1/chromecast/browser/cast_content_browser_client.h File chromecast/browser/cast_content_browser_client.h (right): https://codereview.chromium.org/1306843003/diff/1/chromecast/browser/cast_content_browser_client.h#newcode68 chromecast/browser/cast_content_browser_client.h:68: virtual void OnMediaPipelineBackendDestroy(); nit: created, destroyed. https://codereview.chromium.org/1306843003/diff/1/chromecast/browser/media/cma_message_filter_host.h File chromecast/browser/media/cma_message_filter_host.h ...
5 years, 4 months ago (2015-08-25 00:48:35 UTC) #6
yucliu1
https://codereview.chromium.org/1306843003/diff/1/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1306843003/diff/1/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode77 chromecast/media/cma/pipeline/media_pipeline_impl.cc:77: client_.device_components_destroy_cb.Run(); On 2015/08/25 00:48:34, halliwell wrote: > I think ...
5 years, 4 months ago (2015-08-25 00:53:11 UTC) #7
halliwell
https://codereview.chromium.org/1306843003/diff/1/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1306843003/diff/1/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode77 chromecast/media/cma/pipeline/media_pipeline_impl.cc:77: client_.device_components_destroy_cb.Run(); On 2015/08/25 00:53:11, yucliu1 wrote: > On 2015/08/25 ...
5 years, 4 months ago (2015-08-25 01:02:49 UTC) #8
yucliu1
https://codereview.chromium.org/1306843003/diff/1/chromecast/browser/cast_content_browser_client.h File chromecast/browser/cast_content_browser_client.h (right): https://codereview.chromium.org/1306843003/diff/1/chromecast/browser/cast_content_browser_client.h#newcode68 chromecast/browser/cast_content_browser_client.h:68: virtual void OnMediaPipelineBackendDestroy(); On 2015/08/25 00:48:34, halliwell wrote: > ...
5 years, 4 months ago (2015-08-25 04:27:58 UTC) #9
yucliu1
New patch uploaded.
5 years, 3 months ago (2015-08-28 08:28:41 UTC) #10
gunsch
Most of my comments are on the internal CL. I think the structure of that ...
5 years, 3 months ago (2015-08-31 15:56:52 UTC) #11
yucliu1
https://codereview.chromium.org/1306843003/diff/40001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1306843003/diff/40001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode88 chromecast/media/cma/pipeline/media_pipeline_impl.cc:88: if (!client_.pipeline_backend_created_cb.is_null()) On 2015/08/31 15:56:52, gunsch wrote: > can ...
5 years, 3 months ago (2015-08-31 17:30:08 UTC) #12
yucliu1
https://codereview.chromium.org/1306843003/diff/40001/chromecast/browser/media/cma_media_pipeline_client.h File chromecast/browser/media/cma_media_pipeline_client.h (right): https://codereview.chromium.org/1306843003/diff/40001/chromecast/browser/media/cma_media_pipeline_client.h#newcode33 chromecast/browser/media/cma_media_pipeline_client.h:33: friend class base::RefCounted<CmaMediaPipelineClient>; On 2015/08/31 15:56:52, gunsch wrote: > ...
5 years, 3 months ago (2015-08-31 17:47:40 UTC) #13
yucliu1
Add DISALLOW_COPY_AND_ASSIGN and remove TODO in cma_media_pipeline_client.h
5 years, 3 months ago (2015-08-31 18:22:04 UTC) #14
gunsch
One thing that bothers me a lot about this structure is that we don't have ...
5 years, 3 months ago (2015-08-31 22:03:08 UTC) #15
halliwell
On 2015/08/31 22:03:08, gunsch wrote: > One thing that bothers me a lot about this ...
5 years, 3 months ago (2015-09-01 00:04:30 UTC) #16
gunsch
On 2015/09/01 00:04:30, halliwell wrote: > On 2015/08/31 22:03:08, gunsch wrote: > > One thing ...
5 years, 3 months ago (2015-09-01 00:08:01 UTC) #17
halliwell
https://codereview.chromium.org/1306843003/diff/80001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/80001/chromecast/base/cast_resource.h#newcode34 chromecast/base/cast_resource.h:34: virtual void OnResourceReleased(CastResource* cast_resource) = 0; add virtual dtor, ...
5 years, 3 months ago (2015-09-01 15:24:05 UTC) #18
yucliu1
New patch uploaded. Move CastResource to chromecast/cast. What's the best location for this file? https://codereview.chromium.org/1306843003/diff/80001/chromecast/base/cast_resource.h ...
5 years, 3 months ago (2015-09-01 18:41:33 UTC) #19
halliwell
I'm not very keen on introducing chromecast/cast. Always felt they were a confusing pair of ...
5 years, 3 months ago (2015-09-01 19:42:24 UTC) #20
yucliu1
https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h File chromecast/cast/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode7 chromecast/cast/cast_resource.h:7: namespace cast { On 2015/09/01 19:42:23, halliwell wrote: > ...
5 years, 3 months ago (2015-09-01 20:15:47 UTC) #21
halliwell
https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.h File chromecast/browser/media/cma_media_pipeline_client.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.h#newcode18 chromecast/browser/media/cma_media_pipeline_client.h:18: public cast::CastResource { Is this class really necessary any ...
5 years, 3 months ago (2015-09-01 20:16:34 UTC) #22
halliwell
https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h File chromecast/cast/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode17 chromecast/cast/cast_resource.h:17: kResourceAudio = 1 << 0, On 2015/09/01 20:15:47, yucliu1 ...
5 years, 3 months ago (2015-09-01 20:24:39 UTC) #23
yucliu1
https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h File chromecast/cast/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode19 chromecast/cast/cast_resource.h:19: // pipeline, primary graphics plane, display, etc. On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 20:36:42 UTC) #24
halliwell
On 2015/09/01 20:36:42, yucliu1 wrote: > https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h > File chromecast/cast/cast_resource.h (right): > > https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode19 > ...
5 years, 3 months ago (2015-09-01 20:53:33 UTC) #25
yucliu1
On 2015/09/01 20:53:33, halliwell wrote: > On 2015/09/01 20:36:42, yucliu1 wrote: > > > https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h ...
5 years, 3 months ago (2015-09-01 21:12:09 UTC) #26
halliwell
On 2015/09/01 21:12:09, yucliu1 wrote: > On 2015/09/01 20:53:33, halliwell wrote: > > On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 22:37:26 UTC) #27
halliwell
On 2015/09/01 22:37:26, halliwell wrote: > On 2015/09/01 21:12:09, yucliu1 wrote: > > On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 22:40:34 UTC) #28
gunsch
https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.cc File chromecast/browser/media/cma_media_pipeline_client.cc (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.cc#newcode33 chromecast/browser/media/cma_media_pipeline_client.cc:33: if (!(resource & cast::CastResource::kResourceScreenPrimary)) { What threads are these ...
5 years, 3 months ago (2015-09-01 22:56:08 UTC) #29
gunsch
Oh sorry, I didn't read the rest of the thread. I just noticed there was ...
5 years, 3 months ago (2015-09-01 22:57:26 UTC) #30
gunsch
https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h File chromecast/cast/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode35 chromecast/cast/cast_resource.h:35: Resource resource) = 0; I just noticed in the ...
5 years, 3 months ago (2015-09-01 23:04:15 UTC) #31
gunsch
How difficult would it be to add a test that a) creates a pipeline using ...
5 years, 3 months ago (2015-09-01 23:06:28 UTC) #32
yucliu1
https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.cc File chromecast/browser/media/cma_media_pipeline_client.cc (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/browser/media/cma_media_pipeline_client.cc#newcode33 chromecast/browser/media/cma_media_pipeline_client.cc:33: if (!(resource & cast::CastResource::kResourceScreenPrimary)) { On 2015/09/01 22:56:08, gunsch ...
5 years, 3 months ago (2015-09-01 23:42:13 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306843003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306843003/120001
5 years, 3 months ago (2015-09-02 15:34:23 UTC) #35
yucliu1
On 2015/09/01 23:06:28, gunsch wrote: > How difficult would it be to add a test ...
5 years, 3 months ago (2015-09-02 15:48:25 UTC) #36
gunsch
In the spirit of "testability is good design", I think the difficult parts you raise ...
5 years, 3 months ago (2015-09-02 17:10:50 UTC) #37
yucliu1
https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h File chromecast/cast/cast_resource.h (right): https://codereview.chromium.org/1306843003/diff/100001/chromecast/cast/cast_resource.h#newcode47 chromecast/cast/cast_resource.h:47: virtual ~CastResource() {} On 2015/09/02 17:10:50, gunsch wrote: > ...
5 years, 3 months ago (2015-09-02 17:30:18 UTC) #38
yucliu1
On 2015/09/02 17:10:50, gunsch wrote: > In the spirit of "testability is good design", I ...
5 years, 3 months ago (2015-09-02 17:36:27 UTC) #39
gunsch
lgtm
5 years, 3 months ago (2015-09-02 17:48:50 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306843003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306843003/160001
5 years, 3 months ago (2015-09-02 18:13:54 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-09-02 18:38:48 UTC) #44
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 18:39:31 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b26f03db16a4752572e136d3c531234bfa45eb63
Cr-Commit-Position: refs/heads/master@{#346977}

Powered by Google App Engine
This is Rietveld 408576698