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

Unified Diff: content/renderer/media/android/media_player_renderer_client.h

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: rebase 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
Index: content/renderer/media/android/media_player_renderer_client.h
diff --git a/content/renderer/media/android/media_player_renderer_client.h b/content/renderer/media/android/media_player_renderer_client.h
index 1f63e358440152c50bea92f122605ffe2586dbd2..d2347100a79a0daf17e41d0e292086291e1c86f0 100644
--- a/content/renderer/media/android/media_player_renderer_client.h
+++ b/content/renderer/media/android/media_player_renderer_client.h
@@ -10,7 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "media/base/android/stream_texture_wrapper.h"
-#include "media/base/demuxer_stream_provider.h"
+#include "media/base/media_resource.h"
#include "media/base/renderer.h"
#include "media/base/renderer_client.h"
#include "media/base/video_renderer_sink.h"
@@ -45,7 +45,7 @@ class CONTENT_EXPORT MediaPlayerRendererClient : public media::Renderer,
~MediaPlayerRendererClient() override;
// media::Renderer implementation.
- void Initialize(media::DemuxerStreamProvider* demuxer_stream_provider,
+ void Initialize(media::MediaResource* media_resource,
media::RendererClient* client,
const media::PipelineStatusCB& init_cb) override;
void SetCdm(media::CdmContext* cdm_context,
@@ -71,9 +71,8 @@ class CONTENT_EXPORT MediaPlayerRendererClient : public media::Renderer,
void OnFrameAvailable();
private:
- void OnStreamTextureWrapperInitialized(
- media::DemuxerStreamProvider* demuxer_stream_provider,
- bool success);
+ void OnStreamTextureWrapperInitialized(media::MediaResource* media_resource,
+ bool success);
void OnRemoteRendererInitialized(media::PipelineStatus status);
void OnScopedSurfaceRequested(const base::UnguessableToken& request_token);

Powered by Google App Engine
This is Rietveld 408576698