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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 1438063002: media: Support SetCdm() on VideoDecodeAccelerator interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/android_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index 67b12595e63c98a88315ee1af234df1f183caeaa..99e169f212c21632b4cb301b655b18ea00acee7d 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -544,6 +544,12 @@ void AndroidVideoDecodeAccelerator::Reset() {
weak_this_factory_.GetWeakPtr()));
}
+void AndroidVideoDecodeAccelerator::SetCdm(int /* cdm_id */) {
+ // TODO(xhwang): Implement CDM setting here.
+ NOTIMPLEMENTED();
+ NotifyCdmSet(false);
+}
+
void AndroidVideoDecodeAccelerator::Destroy() {
DCHECK(thread_checker_.CalledOnValidThread());
@@ -601,6 +607,10 @@ void AndroidVideoDecodeAccelerator::NotifyResetDone() {
client_->NotifyResetDone();
}
+void AndroidVideoDecodeAccelerator::NotifyCdmSet(bool success) {
+ client_->NotifyCdmSet(success);
+}
+
void AndroidVideoDecodeAccelerator::NotifyError(
media::VideoDecodeAccelerator::Error error) {
client_->NotifyError(error);

Powered by Google App Engine
This is Rietveld 408576698