summaryrefslogtreecommitdiffstats
path: root/webkit/media/webmediaplayer_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/media/webmediaplayer_proxy.cc')
-rw-r--r--webkit/media/webmediaplayer_proxy.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/webkit/media/webmediaplayer_proxy.cc b/webkit/media/webmediaplayer_proxy.cc
index 6d4222c..4c09b32 100644
--- a/webkit/media/webmediaplayer_proxy.cc
+++ b/webkit/media/webmediaplayer_proxy.cc
@@ -40,8 +40,8 @@ void WebMediaPlayerProxy::Repaint() {
if (outstanding_repaints_ < kMaxOutstandingRepaints) {
++outstanding_repaints_;
- render_loop_->PostTask(FROM_HERE,
- NewRunnableMethod(this, &WebMediaPlayerProxy::RepaintTask));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::RepaintTask, this));
}
}
@@ -99,29 +99,29 @@ void WebMediaPlayerProxy::Detach() {
void WebMediaPlayerProxy::PipelineInitializationCallback(
PipelineStatus status) {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::PipelineInitializationTask, status));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::PipelineInitializationTask, this, status));
}
void WebMediaPlayerProxy::PipelineSeekCallback(PipelineStatus status) {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::PipelineSeekTask, status));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::PipelineSeekTask, this, status));
}
void WebMediaPlayerProxy::PipelineEndedCallback(PipelineStatus status) {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::PipelineEndedTask, status));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::PipelineEndedTask, this, status));
}
void WebMediaPlayerProxy::PipelineErrorCallback(PipelineStatus error) {
DCHECK_NE(error, media::PIPELINE_OK);
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::PipelineErrorTask, error));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::PipelineErrorTask, this, error));
}
void WebMediaPlayerProxy::NetworkEventCallback(NetworkEvent type) {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::NetworkEventTask, type));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::NetworkEventTask, this, type));
}
void WebMediaPlayerProxy::AddDataSource(WebDataSource* data_source) {
@@ -184,14 +184,14 @@ void WebMediaPlayerProxy::PutCurrentFrame(
}
void WebMediaPlayerProxy::DemuxerOpened(media::ChunkDemuxer* demuxer) {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::DemuxerOpenedTask,
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::DemuxerOpenedTask, this,
scoped_refptr<media::ChunkDemuxer>(demuxer)));
}
void WebMediaPlayerProxy::DemuxerClosed() {
- render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::DemuxerClosedTask));
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::DemuxerClosedTask, this));
}
void WebMediaPlayerProxy::DemuxerFlush() {