| Index: content/common/gpu/client/gpu_video_encode_accelerator_host.cc
|
| diff --git a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
|
| index 214b32d16aff3c3bd2770af34c988dea0c7f1a22..1cbfeaa025a5a3c300068a36dba5e7d87b91a0db 100644
|
| --- a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
|
| +++ b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
|
| @@ -5,7 +5,6 @@
|
| #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
|
|
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop_proxy.h"
|
| #include "content/common/gpu/client/gpu_channel_host.h"
|
| #include "content/common/gpu/gpu_messages.h"
|
| #include "content/common/gpu/media/gpu_video_accelerator_util.h"
|
| @@ -200,11 +199,9 @@ void GpuVideoEncodeAcceleratorHost::PostNotifyError(Error error) {
|
| DCHECK(CalledOnValidThread());
|
| DVLOG(2) << "PostNotifyError(): error=" << error;
|
| // Post the error notification back to this thread, to avoid re-entrancy.
|
| - base::MessageLoopProxy::current()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&GpuVideoEncodeAcceleratorHost::OnNotifyError,
|
| - weak_this_factory_.GetWeakPtr(),
|
| - error));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&GpuVideoEncodeAcceleratorHost::OnNotifyError,
|
| + weak_this_factory_.GetWeakPtr(), error));
|
| }
|
|
|
| void GpuVideoEncodeAcceleratorHost::Send(IPC::Message* message) {
|
|
|