| Index: content/browser/media/capture/web_contents_video_capture_device.cc
|
| diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
|
| index def9f9a744781c5fb930faa65d089d3bc8030701..dca65d372608f867c1c8feb45cec5a50f282b5a0 100644
|
| --- a/content/browser/media/capture/web_contents_video_capture_device.cc
|
| +++ b/content/browser/media/capture/web_contents_video_capture_device.cc
|
| @@ -53,12 +53,13 @@
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| #include "base/callback_helpers.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "base/message_loop/message_loop_proxy.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/sequenced_task_runner.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/threading/thread.h"
|
| #include "base/threading/thread_checker.h"
|
| #include "base/time/time.h"
|
| @@ -633,9 +634,9 @@ void WebContentsCaptureMachine::DidCopyFromBackingStore(
|
| UMA_HISTOGRAM_TIMES("TabCapture.CopyTimeBitmap", now - start_time);
|
| TRACE_EVENT_ASYNC_STEP_INTO0("gpu.capture", "Capture", target.get(),
|
| "Render");
|
| - render_thread_->message_loop_proxy()->PostTask(FROM_HERE, base::Bind(
|
| - &RenderVideoFrame, bitmap, target,
|
| - base::Bind(deliver_frame_cb, start_time)));
|
| + render_thread_->task_runner()->PostTask(
|
| + FROM_HERE, base::Bind(&RenderVideoFrame, bitmap, target,
|
| + base::Bind(deliver_frame_cb, start_time)));
|
| } else {
|
| // Capture can fail due to transient issues, so just skip this frame.
|
| DVLOG(1) << "CopyFromBackingStore failed; skipping frame.";
|
|
|