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

Unified Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 1134113002: content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build. 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
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 65bfaa2cfee3b8b68b566119906b4463ead7ea8b..fb0a2173e9bfbdc3f32f6117b054aaf616a7b52f 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -35,7 +35,6 @@
#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"
@@ -535,10 +534,8 @@ GLRenderingVDAClient::CreateV4L2VDA() {
decoder.reset(new V4L2VideoDecodeAccelerator(
static_cast<EGLDisplay>(rendering_helper_->GetGLDisplay()),
static_cast<EGLContext>(rendering_helper_->GetGLContextHandle()),
- weak_client,
- base::Bind(&DoNothingReturnTrue),
- device,
- base::MessageLoopProxy::current()));
+ weak_client, base::Bind(&DoNothingReturnTrue), device,
+ base::ThreadTaskRunnerHandle::Get()));
}
#endif
return decoder.Pass();
@@ -552,12 +549,10 @@ GLRenderingVDAClient::CreateV4L2SliceVDA() {
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::MessageLoopProxy::current()));
+ weak_client, base::Bind(&DoNothingReturnTrue),
+ base::ThreadTaskRunnerHandle::Get()));
}
#endif
return decoder.Pass();

Powered by Google App Engine
This is Rietveld 408576698