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

Unified Diff: content/common/gpu/media/android_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: content/common/gpu/media/android_video_decode_accelerator.h
diff --git a/content/common/gpu/media/android_video_decode_accelerator.h b/content/common/gpu/media/android_video_decode_accelerator.h
index 75ed78538cf25eb06b9de6536a6091ef1096bee5..d690a69db9373bfc6ff5c38ed4e063e76f50b179 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -94,6 +94,8 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
~AndroidVideoDecodeAccelerator() override;
+ // media::VideoDecodeAccelerator implementation:
+
// Does not take ownership of |client| which must outlive |*this|.
bool Initialize(media::VideoCodecProfile profile, Client* client) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
@@ -102,10 +104,11 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
void ReusePictureBuffer(int32 picture_buffer_id) override;
void Flush() override;
void Reset() override;
+ void SetCdm(int cdm_id) override;
void Destroy() override;
bool CanDecodeOnIOThread() override;
- // AndroidVideoDecodeStateProvider
+ // AVDAStateProvider implementation:
const gfx::Size& GetSize() const override;
const base::ThreadChecker& ThreadChecker() const override;
base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override;
@@ -159,6 +162,9 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// Notifies the client that the decoder was reset.
void NotifyResetDone();
+ // Notifies the client of the CDM setting result.
+ void NotifyCdmSet(bool success);
+
// Notifies about decoding errors.
void NotifyError(media::VideoDecodeAccelerator::Error error);

Powered by Google App Engine
This is Rietveld 408576698