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

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

Issue 2668393002: Rename DemuxerStreamProvider into MediaResource (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.cc
diff --git a/content/renderer/media/android/media_player_renderer_client.cc b/content/renderer/media/android/media_player_renderer_client.cc
index 3bd225c7cff3b0717d4075cb8d59b5a36f4c4468..43cfa0db7bb3eb6cca0e5e43540707d75bf91839 100644
--- a/content/renderer/media/android/media_player_renderer_client.cc
+++ b/content/renderer/media/android/media_player_renderer_client.cc
@@ -25,7 +25,7 @@ MediaPlayerRendererClient::MediaPlayerRendererClient(
MediaPlayerRendererClient::~MediaPlayerRendererClient() {}
void MediaPlayerRendererClient::Initialize(
- media::DemuxerStreamProvider* demuxer_stream_provider,
+ media::MediaResource* media_resource,
media::RendererClient* client,
const media::PipelineStatusCB& init_cb) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
@@ -46,11 +46,11 @@ void MediaPlayerRendererClient::Initialize(
base::Unretained(this)),
gfx::Size(1, 1), compositor_task_runner_,
base::Bind(&MediaPlayerRendererClient::OnStreamTextureWrapperInitialized,
- weak_factory_.GetWeakPtr(), demuxer_stream_provider));
+ weak_factory_.GetWeakPtr(), media_resource));
}
void MediaPlayerRendererClient::OnStreamTextureWrapperInitialized(
- media::DemuxerStreamProvider* demuxer_stream_provider,
+ media::MediaResource* media_resource,
bool success) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
if (!success) {
@@ -60,7 +60,7 @@ void MediaPlayerRendererClient::OnStreamTextureWrapperInitialized(
}
mojo_renderer_->Initialize(
- demuxer_stream_provider, this,
+ media_resource, this,
base::Bind(&MediaPlayerRendererClient::OnRemoteRendererInitialized,
weak_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698