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

Unified Diff: media/filters/fake_video_decoder.h

Issue 2650823006: media: Pass CdmContext in decoder reinitialization (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/fake_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/fake_video_decoder.h
diff --git a/media/filters/fake_video_decoder.h b/media/filters/fake_video_decoder.h
index 454762fc50084d15889006d45072871f0b3d3308..3ac932f3f4bb0295721295d357d90ea193243892 100644
--- a/media/filters/fake_video_decoder.h
+++ b/media/filters/fake_video_decoder.h
@@ -39,6 +39,9 @@ class FakeVideoDecoder : public VideoDecoder {
const BytesDecodedCB& bytes_decoded_cb);
~FakeVideoDecoder() override;
+ // Enables encrypted config supported. Must be called before Initialize().
+ void EnableEncryptedConfigSupport();
+
// VideoDecoder implementation.
std::string GetDisplayName() const override;
void Initialize(const VideoDecoderConfig& config,
@@ -99,6 +102,8 @@ class FakeVideoDecoder : public VideoDecoder {
const int max_parallel_decoding_requests_;
BytesDecodedCB bytes_decoded_cb_;
+ bool supports_encrypted_config_ = false;
+
State state_;
CallbackHolder<InitCB> init_cb_;
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/fake_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698