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

Issue 1907263003: media: Set MediaClientAndroid in the GPU process. (Closed)

Created:
4 years, 8 months ago by xhwang
Modified:
4 years, 7 months ago
Reviewers:
Lei Zhang, slan, boliu, nasko
CC:
chromium-reviews, droger+watchlist_chromium.org, eme-reviews_chromium.org, blundell+watchlist_chromium.org, lcwu+watch_chromium.org, sdefresne+watchlist_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, piman+watch_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Set MediaClientAndroid in the GPU process. Now on Android we use MediaDrmBridge in the GPU process. We should set MediaClientAndroid the same as we do in the Browser process. Summary of changes: - Add ContentClient::GetMediaClientAndroid() API. - SetMediaClientAndroid() in GPU process. Today in the browser, we call media::SetMediaClientAndroid() directly from content embedders (e.g. ChromeBrowserMainPartsAndroid), which seems hacky. We should use ContentClient::GetMediaClientAndroid() in the browser process as well so that content will talk to the embedder, and then talk to media. I'll work on it after this CL. TBR=slan@chromium.org BUG=605330 TEST=Encrypted Widevine contents plays in the GPU process on Android K. Committed: https://crrev.com/f258baab74abe43f7f77bdae8b74c61c07f95f51 Cr-Commit-Position: refs/heads/master@{#390517}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : rebase only #

Patch Set 4 : fix gn deps #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -185 lines) Patch
M android_webview/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_media_client_android.h View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/android/chrome_media_client_android.h View 1 chunk +0 lines, -29 lines 0 comments Download
D chrome/browser/android/chrome_media_client_android.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 17 chunks +25 lines, -27 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
A + chrome/common/chrome_media_client_android.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/common/chrome_media_client_android.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chromecast/browser/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/cast_media_client_android.h View 1 chunk +1 line, -1 line 0 comments Download
M components/cdm.gypi View 2 chunks +8 lines, -2 lines 0 comments Download
M components/cdm/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/cdm/browser/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D components/cdm/browser/widevine_drm_delegate_android.h View 1 chunk +0 lines, -34 lines 0 comments Download
D components/cdm/browser/widevine_drm_delegate_android.cc View 1 chunk +0 lines, -48 lines 0 comments Download
M components/cdm/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A + components/cdm/common/widevine_drm_delegate_android.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/cdm/common/widevine_drm_delegate_android.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M content/gpu/BUILD.gn View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/gpu/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_process_control_impl.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/common/content_client.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
xhwang
nasko: PTAL Please see the CL description for details. The existing code (in browser process) ...
4 years, 8 months ago (2016-04-23 00:02:30 UTC) #3
nasko
content/ LGTM
4 years, 8 months ago (2016-04-25 23:23:47 UTC) #4
xhwang
boliu@chromium.org: Please OWNERS review changes in webview slan@chromium.org: Please OWNERS review changes in chromecast/ thestig@chromium.org: ...
4 years, 8 months ago (2016-04-25 23:34:46 UTC) #6
boliu
On 2016/04/25 23:34:46, xhwang wrote: > mailto:boliu@chromium.org: Please OWNERS review changes in webview rs lgtm ...
4 years, 8 months ago (2016-04-25 23:38:28 UTC) #7
Lei Zhang
https://chromiumcodereview.appspot.com/1907263003/diff/20001/content/public/common/content_client.h File content/public/common/content_client.h (right): https://chromiumcodereview.appspot.com/1907263003/diff/20001/content/public/common/content_client.h#newcode172 content/public/common/content_client.h:172: virtual media::MediaClientAndroid* GetMediaClientAndroid(); Can this go into ContentGpuClient instead?
4 years, 8 months ago (2016-04-26 00:02:21 UTC) #8
xhwang
https://chromiumcodereview.appspot.com/1907263003/diff/20001/content/public/common/content_client.h File content/public/common/content_client.h (right): https://chromiumcodereview.appspot.com/1907263003/diff/20001/content/public/common/content_client.h#newcode172 content/public/common/content_client.h:172: virtual media::MediaClientAndroid* GetMediaClientAndroid(); On 2016/04/26 00:02:21, Lei Zhang wrote: ...
4 years, 8 months ago (2016-04-26 03:25:45 UTC) #9
Lei Zhang
On 2016/04/26 03:25:45, xhwang wrote: > So this code will be called in both the ...
4 years, 8 months ago (2016-04-26 04:27:49 UTC) #10
xhwang
On 2016/04/26 04:27:49, Lei Zhang wrote: > On 2016/04/26 03:25:45, xhwang wrote: > > So ...
4 years, 8 months ago (2016-04-26 20:02:56 UTC) #11
Lei Zhang
lgtm
4 years, 8 months ago (2016-04-26 20:47:59 UTC) #12
xhwang
rebase only
4 years, 7 months ago (2016-04-28 00:24:19 UTC) #13
xhwang
TBRing slan on trivial chromecast changes.
4 years, 7 months ago (2016-04-28 21:22:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907263003/100001
4 years, 7 months ago (2016-04-28 21:22:45 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-04-28 22:13:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907263003/100001
4 years, 7 months ago (2016-04-28 22:23:41 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 7 months ago (2016-04-28 22:44:31 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:22:18 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f258baab74abe43f7f77bdae8b74c61c07f95f51
Cr-Commit-Position: refs/heads/master@{#390517}

Powered by Google App Engine
This is Rietveld 408576698