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

Unified Diff: content/common/gpu/media/v4l2_video_decode_accelerator.h

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/v4l2_video_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h
index d0b7d592911337578ccce6683296e59d35f89cc3..3dfd8606b82445706beed09b2ec7f3484cc52185 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h
@@ -27,10 +27,6 @@
#include "ui/gfx/geometry/size.h"
#include "ui/gl/gl_bindings.h"
-namespace base {
-class MessageLoopProxy;
-} // namespace base
-
namespace media {
class H264Parser;
} // namespace media
@@ -82,7 +78,7 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
const base::WeakPtr<Client>& io_client_,
const base::Callback<bool(void)>& make_context_current,
const scoped_refptr<V4L2Device>& device,
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy);
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
~V4L2VideoDecodeAccelerator() override;
// media::VideoDecodeAccelerator implementation.
@@ -315,11 +311,11 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// - V4L2_CID_MIN_BUFFERS_FOR_CAPTURE has changed.
bool IsResolutionChangeNecessary();
- // Our original calling message loop for the child thread.
- scoped_refptr<base::MessageLoopProxy> child_message_loop_proxy_;
+ // Our original calling task runner for the child thread.
+ scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
- // Message loop of the IO thread.
- scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
+ // Task runner of the IO thread.
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// WeakPtr<> pointing to |this| for use in posting tasks from the decoder or
// device worker threads back to the child thread. Because the worker threads
@@ -331,10 +327,10 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// To expose client callbacks from VideoDecodeAccelerator.
// NOTE: all calls to these objects *MUST* be executed on
- // child_message_loop_proxy_.
+ // child_task_runner_.
scoped_ptr<base::WeakPtrFactory<Client> > client_ptr_factory_;
base::WeakPtr<Client> client_;
- // Callbacks to |io_client_| must be executed on |io_message_loop_proxy_|.
+ // Callbacks to |io_client_| must be executed on |io_task_runner_|.
base::WeakPtr<Client> io_client_;
//

Powered by Google App Engine
This is Rietveld 408576698