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

Issue 2792743002: Use Stub CDM for building libwidevinecdmadapter.so (Closed)

Created:
3 years, 8 months ago by hmchen1
Modified:
3 years, 8 months ago
Reviewers:
Haoming Chen, xhwang
CC:
chromium-reviews, eme-reviews_chromium.org, tinskip1, krasin1, Rintaro Kuroiwa, jrummell
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Stub CDM for building libwidevinecdmadapter.so - This is a temporary fix for unblocking LLD. - We use the stub CDM to build the CDM adapter. - We ship the copied (real) CDM and the CDM adapter. - Even though the CDM adapter is built against the stub cdm at "stub_cdm/libwidevinecdm.so", only the filename is baked into the adapter because of the gn dependency, e.g., readelf -d libwidevinecdmadapter.so : 0x0000000000000001 (NEEDED) Shared library: [libwidevinecdm.so] - At run time, when loading the CDM adapter, the system will search for the CDM in the same dir where the adapter is located. Hence the real CDM will be loaded. BUG=707488 Review-Url: https://codereview.chromium.org/2792743002 Cr-Commit-Position: refs/heads/master@{#462104} Committed: https://chromium.googlesource.com/chromium/src/+/4bd7678fefa459f3f29a4ea511ff26971cfb5648

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use Stub CDM for building widevinecdmadapter. #

Total comments: 4

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Fix chromeos. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -2 lines) Patch
M third_party/widevine/cdm/BUILD.gn View 1 2 3 3 chunks +45 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
Haoming Chen
Prototype CL to use stub CDM in chrome build. PTAL.
3 years, 8 months ago (2017-04-01 00:49:48 UTC) #2
xhwang
For the context, there are chromium-based browsers (is_chrome_branded=false) using enable_widevine=true to build the stub CDM. ...
3 years, 8 months ago (2017-04-01 00:56:41 UTC) #3
Haoming Chen
xhwang: PTAL tinskip, pcc, krasin, rkuroiwa: FYI
3 years, 8 months ago (2017-04-01 18:31:29 UTC) #7
xhwang
pcc1 / krasin1: Does this fix the linker issue? hmchen: thanks for working out a ...
3 years, 8 months ago (2017-04-04 06:48:52 UTC) #8
xhwang
Please also provide more details about what we are doing in the CL description. For ...
3 years, 8 months ago (2017-04-04 07:00:10 UTC) #9
Haoming Chen
xhwang: thanks for you review. PTAL. https://codereview.chromium.org/2792743002/diff/60001/third_party/widevine/cdm/BUILD.gn File third_party/widevine/cdm/BUILD.gn (right): https://codereview.chromium.org/2792743002/diff/60001/third_party/widevine/cdm/BUILD.gn#newcode28 third_party/widevine/cdm/BUILD.gn:28: enable_widevine = true ...
3 years, 8 months ago (2017-04-04 17:16:15 UTC) #12
xhwang
lgtm! Please double check with pcc1 and krasin1 to make sure this solves the problem ...
3 years, 8 months ago (2017-04-04 17:35:45 UTC) #13
xhwang
https://codereview.chromium.org/2792743002/diff/80001/third_party/widevine/cdm/BUILD.gn File third_party/widevine/cdm/BUILD.gn (right): https://codereview.chromium.org/2792743002/diff/80001/third_party/widevine/cdm/BUILD.gn#newcode27 third_party/widevine/cdm/BUILD.gn:27: if (is_chrome_branded && (is_linux || is_chromeos)) { is_linux includes ...
3 years, 8 months ago (2017-04-04 17:45:10 UTC) #14
Haoming Chen
PTAL. pcc1 / krasin1: can you check if this change solves the LLD issue? https://codereview.chromium.org/2792743002/diff/80001/third_party/widevine/cdm/BUILD.gn ...
3 years, 8 months ago (2017-04-04 18:11:45 UTC) #15
pcc1
On 2017/04/04 18:11:45, Haoming Chen wrote: > pcc1 / krasin1: can you check if this ...
3 years, 8 months ago (2017-04-04 18:41:29 UTC) #18
xhwang
On 2017/04/04 18:41:29, pcc1 wrote: > On 2017/04/04 18:11:45, Haoming Chen wrote: > > pcc1 ...
3 years, 8 months ago (2017-04-04 18:44:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2792743002/100001
3 years, 8 months ago (2017-04-05 16:21:50 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://chromium.googlesource.com/chromium/src/+/4bd7678fefa459f3f29a4ea511ff26971cfb5648
3 years, 8 months ago (2017-04-05 16:28:11 UTC) #27
Haoming Chen
3 years, 7 months ago (2017-05-18 17:26:36 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/2893853003/ by hmchen@chromium.org.

The reason for reverting is: Using stub cdm is a workaround and it breaks the
load_library_perf_test.
This change reverts the stub cdm because the unaligned ELF header issue
has been fixed for libwidevinecdm.so, so that we can re-enable the
load_library_perf_test..

Powered by Google App Engine
This is Rietveld 408576698