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

Issue 1824763002: Get CdmContext in MojoAudioDecoderService (Closed)

Created:
4 years, 9 months ago by Tima Vaisburd
Modified:
4 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@spitzer-audio-serialize
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get CdmContext in MojoAudioDecoderService This CL assumes that CDM has already been registered in MojoCDMService by the time of audio decoder service initialization. BUG=542910 Committed: https://crrev.com/5ee3f242cefebba7eb0f05424e7308f9158d8388 Cr-Commit-Position: refs/heads/master@{#382459}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Hold MediaKey in a member variable to control its lifetime #

Total comments: 4

Patch Set 3 : Bound CDM into OnInitalized() callback, avoided calling decoder's method if it did not initialize #

Patch Set 4 : Rebased, fixed typo in a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -15 lines) Patch
M media/mojo/interfaces/audio_decoder.mojom View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.h View 1 2 3 chunks +14 lines, -1 line 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.cc View 1 2 3 chunks +39 lines, -12 lines 0 comments Download
M media/mojo/services/service_factory_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Tima Vaisburd
There is a preliminary CL, could you, please, answer a question? https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): ...
4 years, 9 months ago (2016-03-21 20:40:57 UTC) #2
xhwang
Reply to question only. https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode47 media/mojo/services/mojo_audio_decoder_service.cc:47: scoped_refptr<MediaKeys> cdm = mojo_cdm_service_context_->GetCdm(cdm_id); On ...
4 years, 9 months ago (2016-03-21 20:50:49 UTC) #3
xhwang
Looking good. I have one comment. https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode47 media/mojo/services/mojo_audio_decoder_service.cc:47: scoped_refptr<MediaKeys> cdm = ...
4 years, 9 months ago (2016-03-21 20:55:58 UTC) #4
Tima Vaisburd
https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode47 media/mojo/services/mojo_audio_decoder_service.cc:47: scoped_refptr<MediaKeys> cdm = mojo_cdm_service_context_->GetCdm(cdm_id); On 2016/03/21 20:55:58, xhwang wrote: ...
4 years, 9 months ago (2016-03-21 21:53:01 UTC) #5
xhwang
https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc#newcode61 media/mojo/services/mojo_audio_decoder_service.cc:61: cdm_ = cdm; On 2016/03/21 21:53:01, Tima Vaisburd wrote: ...
4 years, 9 months ago (2016-03-21 22:31:23 UTC) #6
Tima Vaisburd
https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc#newcode61 media/mojo/services/mojo_audio_decoder_service.cc:61: cdm_ = cdm; On 2016/03/21 22:31:23, xhwang wrote: > ...
4 years, 9 months ago (2016-03-21 23:07:05 UTC) #7
xhwang
https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1824763002/diff/20001/media/mojo/services/mojo_audio_decoder_service.cc#newcode61 media/mojo/services/mojo_audio_decoder_service.cc:61: cdm_ = cdm; On 2016/03/21 23:07:05, Tima Vaisburd wrote: ...
4 years, 9 months ago (2016-03-21 23:13:03 UTC) #8
xhwang
lgtm
4 years, 9 months ago (2016-03-21 23:14:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824763002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824763002/60001
4 years, 9 months ago (2016-03-21 23:59:10 UTC) #12
Tima Vaisburd
+sandersd@: forgot to add you on this.
4 years, 9 months ago (2016-03-22 00:15:50 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-22 00:37:26 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 00:38:45 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5ee3f242cefebba7eb0f05424e7308f9158d8388
Cr-Commit-Position: refs/heads/master@{#382459}

Powered by Google App Engine
This is Rietveld 408576698