Index: content/common/gpu/media/video_decode_accelerator_unittest.cc |
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
index fb0a2173e9bfbdc3f32f6117b054aaf616a7b52f..65bfaa2cfee3b8b68b566119906b4463ead7ea8b 100644 |
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc |
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
@@ -35,6 +35,7 @@ |
#include "base/files/file_util.h" |
#include "base/format_macros.h" |
#include "base/md5.h" |
+#include "base/message_loop/message_loop_proxy.h" |
#include "base/process/process_handle.h" |
#include "base/stl_util.h" |
#include "base/strings/string_number_conversions.h" |
@@ -534,8 +535,10 @@ |
decoder.reset(new V4L2VideoDecodeAccelerator( |
static_cast<EGLDisplay>(rendering_helper_->GetGLDisplay()), |
static_cast<EGLContext>(rendering_helper_->GetGLContextHandle()), |
- weak_client, base::Bind(&DoNothingReturnTrue), device, |
- base::ThreadTaskRunnerHandle::Get())); |
+ weak_client, |
+ base::Bind(&DoNothingReturnTrue), |
+ device, |
+ base::MessageLoopProxy::current())); |
} |
#endif |
return decoder.Pass(); |
@@ -549,10 +552,12 @@ |
if (device.get()) { |
base::WeakPtr<VideoDecodeAccelerator::Client> weak_client = AsWeakPtr(); |
decoder.reset(new V4L2SliceVideoDecodeAccelerator( |
- device, static_cast<EGLDisplay>(rendering_helper_->GetGLDisplay()), |
+ device, |
+ static_cast<EGLDisplay>(rendering_helper_->GetGLDisplay()), |
static_cast<EGLContext>(rendering_helper_->GetGLContextHandle()), |
- weak_client, base::Bind(&DoNothingReturnTrue), |
- base::ThreadTaskRunnerHandle::Get())); |
+ weak_client, |
+ base::Bind(&DoNothingReturnTrue), |
+ base::MessageLoopProxy::current())); |
} |
#endif |
return decoder.Pass(); |