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

Issue 1531543002: [Chromecast] Adding pause/resume operations to VideoPlaneController. (Closed)

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

[Chromecast] Adding pause/resume operations to VideoPlaneController. Also adding method for initializing resources after they have been granted to cast. BUG=internal b/25812819 TEST=Revoke/Grant resources during youtube playback on redwood. Youtube/Netflix playback on earth (no regressions). Committed: https://crrev.com/8d560a8c717968a3391be2341dc9a5170a4be310 Cr-Commit-Position: refs/heads/master@{#369937}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modifying comment. #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : Just modified a comment back the way it was. #

Total comments: 12

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : Just rebase of Patch Set 6. #

Total comments: 14

Patch Set 8 : Just changed comments. No code changes. #

Patch Set 9 : Rebase of Patch Set 8. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -10 lines) Patch
M chromecast/base/cast_resource.h View 1 2 3 4 5 6 7 4 chunks +34 lines, -5 lines 0 comments Download
M chromecast/base/cast_resource.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/browser/media/cma_media_pipeline_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/media/cma_media_pipeline_client.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chromecast/media/base/video_plane_controller.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M chromecast/media/base/video_plane_controller.cc View 1 2 3 4 5 6 2 chunks +28 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (5 generated)
esum
https://codereview.chromium.org/1531543002/diff/1/chromecast/browser/media/cma_media_pipeline_client.h File chromecast/browser/media/cma_media_pipeline_client.h (right): https://codereview.chromium.org/1531543002/diff/1/chromecast/browser/media/cma_media_pipeline_client.h#newcode32 chromecast/browser/media/cma_media_pipeline_client.h:32: void InitializeResource(CastResource::Resource resource) override {} I don't think anything ...
5 years ago (2015-12-15 22:22:10 UTC) #2
derekjchow1
https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h#newcode59 chromecast/base/cast_resource.h:59: virtual void InitializeResource(Resource resource) = 0; What thread does ...
5 years ago (2015-12-15 22:40:36 UTC) #3
yucliu1
https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h#newcode59 chromecast/base/cast_resource.h:59: virtual void InitializeResource(Resource resource) = 0; On 2015/12/15 22:40:35, ...
5 years ago (2015-12-15 23:05:58 UTC) #4
yucliu1
On 2015/12/15 22:40:36, derekjchow1 wrote: > https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h > File chromecast/base/cast_resource.h (right): > > https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h#newcode59 > ...
5 years ago (2015-12-16 08:18:09 UTC) #5
esum
Please have a look at PatchSet 4. +Tavis/Byungchul for info. and review if you want. ...
5 years ago (2015-12-17 08:28:12 UTC) #7
esum
> Making InitializeResource asynchronous reminds me of TCP handshake. CastResource > is the client and ...
5 years ago (2015-12-17 08:31:02 UTC) #8
halliwell
https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/20001/chromecast/base/cast_resource.h#newcode59 chromecast/base/cast_resource.h:59: virtual void InitializeResource(Resource resource) = 0; On 2015/12/17 08:28:12, ...
5 years ago (2015-12-17 14:46:32 UTC) #9
byungchul
https://codereview.chromium.org/1531543002/diff/60001/chromecast/browser/media/cma_media_pipeline_client.cc File chromecast/browser/media/cma_media_pipeline_client.cc (right): https://codereview.chromium.org/1531543002/diff/60001/chromecast/browser/media/cma_media_pipeline_client.cc#newcode40 chromecast/browser/media/cma_media_pipeline_client.cc:40: CastResource::Resource resource) {} wrap line between { and }? ...
5 years ago (2015-12-18 00:28:28 UTC) #10
byungchul
https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h#newcode13 chromecast/base/cast_resource.h:13: class CastResource { Can we rename this as CastResourceContainer ...
5 years ago (2015-12-18 00:53:21 UTC) #11
esum
Please have a look at Patch Set 5. Thanks. https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h#newcode13 chromecast/base/cast_resource.h:13: ...
5 years ago (2015-12-21 00:39:21 UTC) #12
halliwell
https://codereview.chromium.org/1531543002/diff/80001/chromecast/media/base/video_plane_controller.h File chromecast/media/base/video_plane_controller.h (right): https://codereview.chromium.org/1531543002/diff/80001/chromecast/media/base/video_plane_controller.h#newcode49 chromecast/media/base/video_plane_controller.h:49: void ResetGeometry(); nit: blank line before comment. I don't ...
4 years, 12 months ago (2015-12-28 22:22:31 UTC) #13
derekjchow1
https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h#newcode63 chromecast/base/cast_resource.h:63: virtual void InitializeResource(Resource resource) = 0; On 2015/12/21 00:39:21, ...
4 years, 11 months ago (2016-01-04 17:29:10 UTC) #14
esum
Rebase coming shortly. https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/60001/chromecast/base/cast_resource.h#newcode63 chromecast/base/cast_resource.h:63: virtual void InitializeResource(Resource resource) = 0; ...
4 years, 11 months ago (2016-01-11 16:28:57 UTC) #15
esum
Patch Set 7 is just rebase of Patch Set 6. Please have a look. Sorry ...
4 years, 11 months ago (2016-01-11 17:05:46 UTC) #16
halliwell
Looking really close, although just reminded me how much the resource classes need cleanup and ...
4 years, 11 months ago (2016-01-12 03:25:07 UTC) #17
esum
Let me think how best to rename/reword things in CastResource for 1.18 tomorrow. Byungchul, Tavis, ...
4 years, 11 months ago (2016-01-12 04:51:47 UTC) #18
halliwell
https://codereview.chromium.org/1531543002/diff/120001/chromecast/media/base/video_plane_controller.h File chromecast/media/base/video_plane_controller.h (right): https://codereview.chromium.org/1531543002/diff/120001/chromecast/media/base/video_plane_controller.h#newcode63 chromecast/media/base/video_plane_controller.h:63: // made except for any pending calls already scheduled ...
4 years, 11 months ago (2016-01-12 15:40:38 UTC) #19
esum
This is just my take on the CURRENT model. Yuchen, please correct me if I'm ...
4 years, 11 months ago (2016-01-12 19:58:15 UTC) #20
yucliu1
On 2016/01/12 19:58:15, esum wrote: > This is just my take on the CURRENT model. ...
4 years, 11 months ago (2016-01-12 21:09:52 UTC) #21
esum
> CastResource is a holder/container for CastResource::Resource (I don't like the > name consumer, because ...
4 years, 11 months ago (2016-01-12 21:25:03 UTC) #22
yucliu1
On 2016/01/12 21:25:03, esum wrote: > > CastResource is a holder/container for CastResource::Resource (I don't ...
4 years, 11 months ago (2016-01-12 21:41:13 UTC) #23
esum
> For example, cma media pipeline (client) can hold/own hardware resource (primary > screen and ...
4 years, 11 months ago (2016-01-12 22:01:21 UTC) #24
esum
Also if "Resource is never consumed, it's transferred" is the terminology we are using, then ...
4 years, 11 months ago (2016-01-12 22:12:23 UTC) #25
yucliu1
On 2016/01/12 22:01:21, esum wrote: > > For example, cma media pipeline (client) can hold/own ...
4 years, 11 months ago (2016-01-12 22:18:29 UTC) #26
esum
> I would recommend to add prefix/namespace/outer class to Resource, otherwise it > will be ...
4 years, 11 months ago (2016-01-12 22:27:40 UTC) #27
byungchul
On 2016/01/12 22:27:40, esum wrote: > > I would recommend to add prefix/namespace/outer class to ...
4 years, 11 months ago (2016-01-12 23:01:59 UTC) #28
esum
> SGTM for PlatformResource though I want more change like: > > class PlatformResource { ...
4 years, 11 months ago (2016-01-13 23:27:48 UTC) #29
derekjchow1
On 2016/01/13 23:27:48, esum wrote: > > SGTM for PlatformResource though I want more change ...
4 years, 11 months ago (2016-01-13 23:31:22 UTC) #30
halliwell
On 2016/01/13 23:27:48, esum wrote: > > SGTM for PlatformResource though I want more change ...
4 years, 11 months ago (2016-01-13 23:32:37 UTC) #31
yucliu1
On 2016/01/13 23:32:37, halliwell wrote: > On 2016/01/13 23:27:48, esum wrote: > > > SGTM ...
4 years, 11 months ago (2016-01-13 23:40:19 UTC) #32
esum
> > I'm fine with just renaming for now. Maybe can run the other plan ...
4 years, 11 months ago (2016-01-13 23:56:22 UTC) #33
esum
On 2016/01/13 23:56:22, esum wrote: > > > I'm fine with just renaming for now. ...
4 years, 11 months ago (2016-01-13 23:57:35 UTC) #34
esum
> > namespace chromecast { > > > > // Named PlatformResource to avoid confusion ...
4 years, 11 months ago (2016-01-15 01:35:26 UTC) #35
halliwell
On 2016/01/15 01:35:26, esum wrote: > > > namespace chromecast { > > > > ...
4 years, 11 months ago (2016-01-15 01:56:10 UTC) #36
esum
> Let's just leave naming, sorry your review has been pretty derailed by > discussion ...
4 years, 11 months ago (2016-01-15 23:01:58 UTC) #37
esum
Rebase coming shortly. Just adding more comments. https://codereview.chromium.org/1531543002/diff/120001/chromecast/base/cast_resource.h File chromecast/base/cast_resource.h (right): https://codereview.chromium.org/1531543002/diff/120001/chromecast/base/cast_resource.h#newcode12 chromecast/base/cast_resource.h:12: // Interface ...
4 years, 11 months ago (2016-01-15 23:02:28 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531543002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531543002/160001
4 years, 11 months ago (2016-01-16 04:14:21 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 11 months ago (2016-01-16 04:43:07 UTC) #42
commit-bot: I haz the power
4 years, 11 months ago (2016-01-16 04:44:01 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8d560a8c717968a3391be2341dc9a5170a4be310
Cr-Commit-Position: refs/heads/master@{#369937}

Powered by Google App Engine
This is Rietveld 408576698