Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index b026052bbbe3b55b417936acd33350d5b313b2f4..5c878fca0727a22ca1f12424a63cdf1bc39fc2b6 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -385,9 +385,8 @@ void GpuCommandBufferStub::ScheduleDelayedWork(int64 delay) { |
delay = 0; |
} |
- base::MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, |
- base::Bind(&GpuCommandBufferStub::PollWork, AsWeakPtr()), |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
+ FROM_HERE, base::Bind(&GpuCommandBufferStub::PollWork, AsWeakPtr()), |
base::TimeDelta::FromMilliseconds(delay)); |
} |
@@ -831,7 +830,7 @@ void GpuCommandBufferStub::OnCreateVideoDecoder( |
IPC::Message* reply_message) { |
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); |
GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( |
- decoder_route_id, this, channel_->io_message_loop()); |
+ decoder_route_id, this, channel_->io_task_runner()); |
decoder->Initialize(profile, reply_message); |
// decoder is registered as a DestructionObserver of this stub and will |
// self-delete during destruction of this stub. |