summaryrefslogtreecommitdiffstats
path: root/media/video/video_decode_accelerator.cc
diff options
context:
space:
mode:
authorxhwang <xhwang@chromium.org>2015-11-13 15:57:09 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-13 23:58:28 +0000
commit5acd08322f6402c527b3197e973b727370584797 (patch)
treeacd64b30a566713ee4a9de26b6771b420a2a8a99 /media/video/video_decode_accelerator.cc
parentc033ac1acfbe6226b10239a53d3d4b60f7cf9577 (diff)
downloadchromium_src-5acd08322f6402c527b3197e973b727370584797.zip
chromium_src-5acd08322f6402c527b3197e973b727370584797.tar.gz
chromium_src-5acd08322f6402c527b3197e973b727370584797.tar.bz2
media: Support SetCdm() on VideoDecodeAccelerator interface.
This is needed to support encrypted stream handling in VideoDecodeAccelerator (VDA) implmentations on certain platforms (e.g. Android). BUG=545099 Review URL: https://codereview.chromium.org/1438063002 Cr-Commit-Position: refs/heads/master@{#359696}
Diffstat (limited to 'media/video/video_decode_accelerator.cc')
-rw-r--r--media/video/video_decode_accelerator.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/video/video_decode_accelerator.cc b/media/video/video_decode_accelerator.cc
index 6ffbda5..0c6b2b9 100644
--- a/media/video/video_decode_accelerator.cc
+++ b/media/video/video_decode_accelerator.cc
@@ -9,8 +9,16 @@
namespace media {
+void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) {
+ NOTREACHED() << "By default CDM is not supported.";
+}
+
VideoDecodeAccelerator::~VideoDecodeAccelerator() {}
+void VideoDecodeAccelerator::SetCdm(int cdm_id) {
+ NOTREACHED() << "By default CDM is not supported.";
+}
+
bool VideoDecodeAccelerator::CanDecodeOnIOThread() {
// GPU process subclasses must override this.
LOG(FATAL) << "This should only get called in the GPU process";