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

Issue 1448303002: media: Add static MojoCdmService::GetCdm(). (Closed)

Created:
5 years, 1 month ago by xhwang
Modified:
5 years, 1 month 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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add static MojoCdmService::GetCdm(). This provides a way to statically lookup all CDMs created by MojoCdmService by their CDM IDs. BUG=545099 Committed: https://crrev.com/13eab7473462c47b59ff811e7076784c4a8efbee Cr-Commit-Position: refs/heads/master@{#360402}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Add CdmManager #

Total comments: 10

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -2 lines) Patch
M content/common/BUILD.gn View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 chunks +14 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.cc View 1 2 3 4 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
xhwang
dalecurtis / timav: PTAL! timav: With this CL and https://chromiumcodereview.appspot.com/1450173002/, you should be able to ...
5 years, 1 month ago (2015-11-17 23:53:53 UTC) #3
DaleCurtis
https://chromiumcodereview.appspot.com/1448303002/diff/20001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://chromiumcodereview.appspot.com/1448303002/diff/20001/media/mojo/services/mojo_cdm_service.cc#newcode30 media/mojo/services/mojo_cdm_service.cc:30: base::LazyInstance<CdmMap>::Leaky g_cdm_map = LAZY_INSTANCE_INITIALIZER; Instead of two lazy instances ...
5 years, 1 month ago (2015-11-17 23:57:05 UTC) #4
xhwang
https://chromiumcodereview.appspot.com/1448303002/diff/20001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://chromiumcodereview.appspot.com/1448303002/diff/20001/media/mojo/services/mojo_cdm_service.cc#newcode30 media/mojo/services/mojo_cdm_service.cc:30: base::LazyInstance<CdmMap>::Leaky g_cdm_map = LAZY_INSTANCE_INITIALIZER; On 2015/11/17 23:57:05, DaleCurtis wrote: ...
5 years, 1 month ago (2015-11-18 00:52:53 UTC) #5
DaleCurtis
lgtm % optional changes https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc#newcode37 media/mojo/services/mojo_cdm_service.cc:37: return cdm_map_.count(cdm_id) ? cdm_map_[cdm_id] : ...
5 years, 1 month ago (2015-11-18 01:00:21 UTC) #6
Tima Vaisburd
lgtm % nits https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc#newcode55 media/mojo/services/mojo_cdm_service.cc:55: base::Lock cdm_map_lock_; nit: I would rename ...
5 years, 1 month ago (2015-11-18 01:24:20 UTC) #7
xhwang
sievers: Please OWNERS review changes in content/common/BUILD.gn.
5 years, 1 month ago (2015-11-18 18:31:59 UTC) #9
xhwang
comments addressed
5 years, 1 month ago (2015-11-18 18:45:17 UTC) #10
xhwang
https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://chromiumcodereview.appspot.com/1448303002/diff/40001/media/mojo/services/mojo_cdm_service.cc#newcode37 media/mojo/services/mojo_cdm_service.cc:37: return cdm_map_.count(cdm_id) ? cdm_map_[cdm_id] : nullptr; On 2015/11/18 01:00:21, ...
5 years, 1 month ago (2015-11-18 18:45:39 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448303002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448303002/60001
5 years, 1 month ago (2015-11-18 18:49:11 UTC) #13
no sievers
On 2015/11/18 18:31:59, xhwang wrote: > sievers: Please OWNERS review changes in content/common/BUILD.gn. lgtm
5 years, 1 month ago (2015-11-18 19:22:51 UTC) #14
DaleCurtis
Since I hadn't seen the benchmark recently, I wrote a small comparison of vector/map for ...
5 years, 1 month ago (2015-11-18 19:24:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448303002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448303002/60001
5 years, 1 month ago (2015-11-18 19:25:31 UTC) #19
xhwang
On 2015/11/18 19:24:25, DaleCurtis wrote: > Since I hadn't seen the benchmark recently, I wrote ...
5 years, 1 month ago (2015-11-18 20:16:00 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-18 20:29:45 UTC) #21
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 20:30:42 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/13eab7473462c47b59ff811e7076784c4a8efbee
Cr-Commit-Position: refs/heads/master@{#360402}

Powered by Google App Engine
This is Rietveld 408576698