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

Issue 246033002: Store SupportedCodecs in KeySystemInfo and KeySystems. (Closed)

Created:
6 years, 8 months ago by xhwang
Modified:
6 years, 8 months ago
Reviewers:
jam, ddorwin, dcheng, boliu
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Store SupportedCodecs in KeySystemInfo and KeySystems. Previously we convert SupportedCodecs (a uint32 bit mask indicating which codec is supported) to ContainerCodecMap (a map from a container type to a set of supported codecs in that container). Then we pass ContainerCodecMap to KeySystems and store it there for easy look up. This results in a lot of duplicate converting code. This CL stores SupportedCodecs in KeySystmeInfo and KeySystems so that we don't need to convert anything. Then when IsTypeSupported() is called, we find the bit masks for queried container and codec types and compare it with the SupportedCodecs stored in KeySystems. BUG=362769 TEST=All existing tests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266148

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase only #

Patch Set 3 : Fix Android build. #

Total comments: 50

Patch Set 4 : fix COMPILE_ASSERT #

Patch Set 5 : Address parts of the comments. #

Patch Set 6 : UNIT_TEST #

Patch Set 7 : Move encrypted_media_codecs.h to content/public/common/ #

Patch Set 8 : namespace: media -> content #

Patch Set 9 : Ready for review. #

Total comments: 10

Patch Set 10 : Fix Windows build warning. #

Patch Set 11 : comments addressed #

Patch Set 12 : rebase only #

Total comments: 2

Patch Set 13 : Rename enums. #

Total comments: 2

Patch Set 14 : eme_codec.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -255 lines) Patch
M android_webview/renderer/aw_key_systems.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/media/encrypted_media_message_filter_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -11 lines 0 comments Download
M chrome/common/encrypted_media_messages_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -33 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +15 lines, -94 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/eme_codec.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
M content/public/renderer/key_system_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -11 lines 0 comments Download
M content/renderer/media/crypto/key_systems.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/media/crypto/key_systems.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +167 lines, -68 lines 0 comments Download
M content/renderer/media/crypto/key_systems_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +45 lines, -28 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
xhwang
PTAL https://codereview.chromium.org/246033002/diff/1/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc File chrome/browser/media/encrypted_media_istypesupported_browsertest.cc (right): https://codereview.chromium.org/246033002/diff/1/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc#newcode868 chrome/browser/media/encrypted_media_istypesupported_browsertest.cc:868: EXPECT_WVAAC(IsSupportedKeySystemWithMediaMimeType( +ddorwin: When AAC is not supported for ...
6 years, 8 months ago (2014-04-21 23:12:19 UTC) #1
xhwang
rebase only
6 years, 8 months ago (2014-04-22 00:12:22 UTC) #2
xhwang
FYI, I need to fix Android build. You are welcome to review the rest of ...
6 years, 8 months ago (2014-04-22 00:42:54 UTC) #3
ddorwin
https://codereview.chromium.org/246033002/diff/40001/android_webview/renderer/DEPS File android_webview/renderer/DEPS (right): https://codereview.chromium.org/246033002/diff/40001/android_webview/renderer/DEPS#newcode1 android_webview/renderer/DEPS:1: include_rules = [ Interesting: The OWNERS inherits DEPS=* from ...
6 years, 8 months ago (2014-04-22 21:24:41 UTC) #4
xhwang
Thanks for the valuable comments. I think I addressed most of the comments. PTAL again. ...
6 years, 8 months ago (2014-04-23 17:29:14 UTC) #5
ddorwin
lgtm % comments https://codereview.chromium.org/246033002/diff/140001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): https://codereview.chromium.org/246033002/diff/140001/content/public/common/encrypted_media_codecs.h#newcode29 content/public/common/encrypted_media_codecs.h:29: // Defines bitmask values used to ...
6 years, 8 months ago (2014-04-23 21:07:20 UTC) #6
xhwang
comments addressed
6 years, 8 months ago (2014-04-23 23:30:18 UTC) #7
xhwang
https://codereview.chromium.org/246033002/diff/140001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): https://codereview.chromium.org/246033002/diff/140001/content/public/common/encrypted_media_codecs.h#newcode29 content/public/common/encrypted_media_codecs.h:29: // Defines bitmask values used to specify supported codecs. ...
6 years, 8 months ago (2014-04-23 23:30:37 UTC) #8
xhwang
boliu/jam/dcheng: This CL further simplifies the key system related code. Please do OWNERS review: boliu@: ...
6 years, 8 months ago (2014-04-23 23:34:08 UTC) #9
xhwang
On 2014/04/23 23:34:08, xhwang wrote: > boliu/jam/dcheng: > > This CL further simplifies the key ...
6 years, 8 months ago (2014-04-23 23:39:30 UTC) #10
xhwang
rebase only
6 years, 8 months ago (2014-04-23 23:49:43 UTC) #11
boliu
android_webview lgtm
6 years, 8 months ago (2014-04-24 00:45:22 UTC) #12
jam
lgtm with comment https://codereview.chromium.org/246033002/diff/190001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): https://codereview.chromium.org/246033002/diff/190001/content/public/common/encrypted_media_codecs.h#newcode13 content/public/common/encrypted_media_codecs.h:13: enum SupportedCodecMask { see the convention ...
6 years, 8 months ago (2014-04-24 16:21:06 UTC) #13
dcheng
lgtm
6 years, 8 months ago (2014-04-24 16:28:36 UTC) #14
xhwang
ddorwin: Please take another look at the new enum names. Thanks! https://codereview.chromium.org/246033002/diff/190001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): ...
6 years, 8 months ago (2014-04-24 17:08:20 UTC) #15
ddorwin
encrypted_media_codecs.h changes LGTM
6 years, 8 months ago (2014-04-24 18:27:25 UTC) #16
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 8 months ago (2014-04-24 18:50:15 UTC) #17
jam
https://codereview.chromium.org/246033002/diff/230001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): https://codereview.chromium.org/246033002/diff/230001/content/public/common/encrypted_media_codecs.h#newcode1 content/public/common/encrypted_media_codecs.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 8 months ago (2014-04-24 19:34:12 UTC) #18
jam
The CQ bit was unchecked by jam@chromium.org
6 years, 8 months ago (2014-04-24 19:34:20 UTC) #19
xhwang
https://codereview.chromium.org/246033002/diff/230001/content/public/common/encrypted_media_codecs.h File content/public/common/encrypted_media_codecs.h (right): https://codereview.chromium.org/246033002/diff/230001/content/public/common/encrypted_media_codecs.h#newcode1 content/public/common/encrypted_media_codecs.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 8 months ago (2014-04-24 20:04:29 UTC) #20
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 8 months ago (2014-04-24 20:04:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/246033002/250001
6 years, 8 months ago (2014-04-24 21:46:40 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 23:09:31 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-24 23:09:32 UTC) #24
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 8 months ago (2014-04-24 23:11:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/246033002/250001
6 years, 8 months ago (2014-04-24 23:18:32 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 23:53:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-24 23:53:01 UTC) #28
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 8 months ago (2014-04-25 00:36:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/246033002/250001
6 years, 8 months ago (2014-04-25 00:37:10 UTC) #30
commit-bot: I haz the power
6 years, 8 months ago (2014-04-25 07:34:48 UTC) #31
Message was sent while issue was closed.
Change committed as 266148

Powered by Google App Engine
This is Rietveld 408576698