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

Unified Diff: media/renderers/renderer_impl.h

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: media/renderers/renderer_impl.h
diff --git a/media/renderers/renderer_impl.h b/media/renderers/renderer_impl.h
index fc13ddbe122a9f1d95f9e4c6073ff12bb1cbab63..6f2819fd0976dd756d251f13b97b85d987bd1cb0 100644
--- a/media/renderers/renderer_impl.h
+++ b/media/renderers/renderer_impl.h
@@ -77,6 +77,7 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
private:
enum State {
STATE_UNINITIALIZED,
+ STATE_INIT_PENDING_CDM,
STATE_INITIALIZING,
STATE_FLUSHING,
STATE_PLAYING,
@@ -86,11 +87,9 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps,
std::vector<base::TimeTicks>* wall_clock_times);
- // Requests that this object notifies when a CDM is ready through the
- // |cdm_ready_cb| provided.
- // If |cdm_ready_cb| is null, the existing callback will be fired with
- // nullptr immediately and reset.
- void SetCdmReadyCallback(const CdmReadyCB& cdm_ready_cb);
+ bool HasEncryptedStream();
+
+ void FinishInitialization(PipelineStatus status);
// Helper functions and callbacks for Initialize().
void InitializeAudioRenderer();
@@ -169,14 +168,7 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
bool video_ended_;
CdmContext* cdm_context_;
-
- // Callback registered by filters (decoder or demuxer) to be informed of a
- // CDM.
- // Note: We could have multiple filters registering this callback. One
- // callback is okay because:
- // 1, We always initialize filters in sequence.
- // 2, Filter initialization will not finish until this callback is satisfied.
- CdmReadyCB cdm_ready_cb_;
+ CdmAttachedCB pending_cdm_attached_cb_;
bool underflow_disabled_for_testing_;
bool clockless_video_playback_enabled_for_testing_;

Powered by Google App Engine
This is Rietveld 408576698