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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years 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 c14050c6cf3554f06d9666b9db427625b26ef2d2..462c08b7c724deaf47175b0bf35a155aee6a99bd 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "media/base/bitstream_buffer.h"
#include "media/base/cdm_context.h"
+#include "media/base/encryption_scheme.h"
#include "media/base/surface_manager.h"
#include "media/base/video_decoder_config.h"
#include "media/video/picture.h"
@@ -127,12 +128,13 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
~Config();
std::string AsHumanReadableString() const;
+ bool is_encrypted() const { return encryption_scheme.is_encrypted(); }
// The video codec and profile.
VideoCodecProfile profile = VIDEO_CODEC_PROFILE_UNKNOWN;
- // Whether the stream is encrypted.
- bool is_encrypted = false;
+ // Whether the stream is encrypted, and, if so, the scheme used.
+ EncryptionScheme encryption_scheme;
// The CDM that the VDA should use to decode encrypted streams. Must be
// set to a valid ID if |is_encrypted|.

Powered by Google App Engine
This is Rietveld 408576698