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

Unified Diff: media/gpu/v4l2_image_processor.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « media/gpu/rendering_helper.cc ('k') | media/gpu/v4l2_slice_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/v4l2_image_processor.cc
diff --git a/media/gpu/v4l2_image_processor.cc b/media/gpu/v4l2_image_processor.cc
index 32095504c870d2ad77e5eab6c906684f42c45cf6..c169255b101795713deb5b6f13a54b8bd0a06f26 100644
--- a/media/gpu/v4l2_image_processor.cc
+++ b/media/gpu/v4l2_image_processor.cc
@@ -150,7 +150,7 @@ bool V4L2ImageProcessor::Initialize(VideoPixelFormat input_format,
}
// StartDevicePoll will NotifyError on failure, so IgnoreResult is fine here.
- device_thread_.message_loop()->PostTask(
+ device_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(base::IgnoreResult(&V4L2ImageProcessor::StartDevicePoll),
base::Unretained(this)));
@@ -228,7 +228,7 @@ void V4L2ImageProcessor::Process(const scoped_refptr<VideoFrame>& frame,
job_record->output_buffer_index = output_buffer_index;
job_record->ready_cb = cb;
- device_thread_.message_loop()->PostTask(
+ device_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&V4L2ImageProcessor::ProcessTask,
base::Unretained(this), base::Passed(&job_record)));
}
@@ -251,7 +251,7 @@ void V4L2ImageProcessor::Destroy() {
// If the device thread is running, destroy using posted task.
if (device_thread_.IsRunning()) {
- device_thread_.message_loop()->PostTask(
+ device_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&V4L2ImageProcessor::DestroyTask, base::Unretained(this)));
// Wait for tasks to finish/early-exit.
@@ -429,7 +429,7 @@ void V4L2ImageProcessor::DevicePollTask(bool poll_device) {
// All processing should happen on ServiceDeviceTask(), since we shouldn't
// touch encoder state from this thread.
- device_thread_.message_loop()->PostTask(
+ device_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&V4L2ImageProcessor::ServiceDeviceTask,
base::Unretained(this)));
}
@@ -453,7 +453,7 @@ void V4L2ImageProcessor::ServiceDeviceTask() {
bool poll_device =
(input_buffer_queued_count_ > 0 || output_buffer_queued_count_ > 0);
- device_poll_thread_.message_loop()->PostTask(
+ device_poll_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&V4L2ImageProcessor::DevicePollTask,
base::Unretained(this), poll_device));
@@ -656,7 +656,7 @@ bool V4L2ImageProcessor::StartDevicePoll() {
}
// Enqueue a poll task with no devices to poll on - will wait only for the
// poll interrupt
- device_poll_thread_.message_loop()->PostTask(
+ device_poll_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&V4L2ImageProcessor::DevicePollTask,
base::Unretained(this), false));
« no previous file with comments | « media/gpu/rendering_helper.cc ('k') | media/gpu/v4l2_slice_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698