media: Enable Widevine L1 on Clank behind a feature

Desktop / Chromium - Xiaohan Wang [chromium.org] - 14 June 2017 00:40 EDT

When AnroidOverlay is enabled and used by the media player, enable hardware secure codec support which will also enable L1 on Clank.

Whether AndroidOverlay is enabled will be checked at run-time. Whether media player uses AndroidOverlay is current controlled by a feature and will be enabled by default in the future. To enable this feature for testing, use

--enable-features=use-android_overlay

Cast on Android still has kForceVideoOverlays command line switch and L1 will always be supported (even without AndroidOverlay support). In a future Cast on Android will also switch to the AndroidOverlay model.

AndroidOverlay is not supported on WebView yet. This will be addressed separately in the future.

BUG=459414

Change-Id: I8b20f460f7c2835874a01da1b068125a2fab88ac Reviewed-on: https://chromium-review.googlesource.com/531738

d7a9d38 media: Enable Widevine L1 on Clank behind a feature
android_webview/browser/aw_content_browser_client.cc | 2 +-
chrome/browser/chrome_content_browser_client.cc | 2 +-
chromecast/browser/cast_content_browser_client.cc | 5 ++++-
components/cdm/browser/cdm_message_filter_android.cc | 16 ++++++++++++++--
components/cdm/browser/cdm_message_filter_android.h | 16 ++++++++--------
5 files changed, 28 insertions(+), 13 deletions(-)

Upstream: git.chromium.org


  • Share