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

Unified Diff: chrome/renderer/media/cast_receiver_session_delegate.cc

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 years, 7 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 | « chrome/renderer/media/cast_receiver_session.cc ('k') | chrome/renderer/media/cast_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_receiver_session_delegate.cc
diff --git a/chrome/renderer/media/cast_receiver_session_delegate.cc b/chrome/renderer/media/cast_receiver_session_delegate.cc
index 35099894f75366a90217c4abf882ca045ffaefee..9936b36be2ca299d5d2d70240f6b5c32816b4b03 100644
--- a/chrome/renderer/media/cast_receiver_session_delegate.cc
+++ b/chrome/renderer/media/cast_receiver_session_delegate.cc
@@ -27,7 +27,7 @@ void CastReceiverSessionDelegate::Start(
const media::VideoCaptureFormat& format,
const ErrorCallback& error_callback) {
format_ = format;
- DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
+ DCHECK(io_task_runner_->BelongsToCurrentThread());
CastSessionDelegateBase::StartUDP(local_endpoint,
remote_endpoint,
options.Pass(),
@@ -51,7 +51,7 @@ void CastReceiverSessionDelegate::ReceivePacket(
void CastReceiverSessionDelegate::StartAudio(
scoped_refptr<CastReceiverAudioValve> audio_valve) {
- DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
+ DCHECK(io_task_runner_->BelongsToCurrentThread());
audio_valve_ = audio_valve;
cast_receiver_->RequestDecodedAudioFrame(on_audio_decoded_cb_);
}
@@ -60,7 +60,7 @@ void CastReceiverSessionDelegate::OnDecodedAudioFrame(
scoped_ptr<media::AudioBus> audio_bus,
const base::TimeTicks& playout_time,
bool is_continous) {
- DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
+ DCHECK(io_task_runner_->BelongsToCurrentThread());
if (!audio_valve_)
return;
@@ -83,7 +83,7 @@ void CastReceiverSessionDelegate::OnDecodedAudioFrame(
void CastReceiverSessionDelegate::StartVideo(
content::VideoCaptureDeliverFrameCB video_callback) {
- DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
+ DCHECK(io_task_runner_->BelongsToCurrentThread());
frame_callback_ = video_callback;
cast_receiver_->RequestDecodedVideoFrame(on_video_decoded_cb_);
}
« no previous file with comments | « chrome/renderer/media/cast_receiver_session.cc ('k') | chrome/renderer/media/cast_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698