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

Unified Diff: media/video/video_decode_accelerator.h

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: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 2b71d65ab075926a56d690856d7de1b95a595406..fe23031e88ad871b423178212322e8e3560a1497 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -83,6 +83,9 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Reset completion callback.
virtual void NotifyResetDone() = 0;
+ // SetCdm completion callback.
liberato (no reviews please) 2015/11/11 23:29:10 might want to describe default behavior, here and
xhwang 2015/11/13 01:16:55 Done.
+ virtual void NotifyCdmSet(bool success);
+
// Callback to notify about decoding errors. Note that errors in
// Initialize() will not be reported here, but will instead be indicated by
// a false return value there.
@@ -142,6 +145,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// "seek".
virtual void Reset() = 0;
+ // Sets a CDM to be used by the video decoder to handle encrypted buffers,
+ // followed by Client::NotifyCdmSet() being called with the setting result.
liberato (no reviews please) 2015/11/11 23:29:10 right now, AVDA::Initialize, which is called very
xhwang 2015/11/13 01:16:55 As discussed offline, there's no way to finish cod
+ virtual void SetCdm(int cdm_id);
+
// Destroys the decoder: all pending inputs are dropped immediately and the
// component is freed. This call may asynchornously free system resources,
// but its client-visible effects are synchronous. After this method returns

Powered by Google App Engine
This is Rietveld 408576698