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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted erroneously added files 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 8384bc801f9991f283ab1d44d96fdd3a280c632b..8a60aed43f0fe3624b077964362e2c0fdf2bd2c8 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -95,7 +95,8 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
~AndroidVideoDecodeAccelerator() override;
// media::VideoDecodeAccelerator implementation:
- bool Initialize(media::VideoCodecProfile profile, Client* client) override;
+ bool Initialize(const media::VideoDecodeAccelerator::InitParams& params,
+ Client* client) override;
void SetCdm(int cdm_id) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(
@@ -178,6 +179,9 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// Codec type. Used when we configure media codec.
media::VideoCodec codec_;
+ // Whether the stream is encrypted.
+ bool is_encrypted_;
+
// The current state of this class. For now, this is used only for setting
// error state.
State state_;

Powered by Google App Engine
This is Rietveld 408576698