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

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: comments addressed 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..8384bc801f9991f283ab1d44d96fdd3a280c632b 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -94,8 +94,9 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
~AndroidVideoDecodeAccelerator() override;
- // Does not take ownership of |client| which must outlive |*this|.
+ // media::VideoDecodeAccelerator implementation:
bool Initialize(media::VideoCodecProfile profile, Client* client) override;
+ void SetCdm(int cdm_id) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(
const std::vector<media::PictureBuffer>& buffers) override;
@@ -105,7 +106,7 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
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;
@@ -146,6 +147,9 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// Requests picture buffers from the client.
void RequestPictureBuffers();
+ // Notifies the client of the CDM setting result.
+ void NotifyCdmAttached(bool success);
+
// Notifies the client about the availability of a picture.
void NotifyPictureReady(const media::Picture& picture);

Powered by Google App Engine
This is Rietveld 408576698