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

Unified Diff: content/common/gpu/media/v4l2_video_encode_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_encode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_video_encode_accelerator.h b/content/common/gpu/media/v4l2_video_encode_accelerator.h
index 165da9dc5cc8fef2c9f6f0366e6ad5a357001d0c..d292f22f1c9167ad4c1c809da0bb1268759d78cb 100644
--- a/content/common/gpu/media/v4l2_video_encode_accelerator.h
+++ b/content/common/gpu/media/v4l2_video_encode_accelerator.h
@@ -18,12 +18,6 @@
#include "media/video/video_encode_accelerator.h"
#include "ui/gfx/geometry/size.h"
-namespace base {
-
-class MessageLoopProxy;
-
-} // namespace base
-
namespace media {
class BitstreamBuffer;
@@ -192,8 +186,8 @@ class CONTENT_EXPORT V4L2VideoEncodeAccelerator
// Set controls in |ctrls| and return true if successful.
bool SetExtCtrls(std::vector<struct v4l2_ext_control> ctrls);
- // Our original calling message loop for the child thread.
- const scoped_refptr<base::MessageLoopProxy> child_message_loop_proxy_;
+ // Our original calling task runner for the child thread.
+ const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
gfx::Size visible_size_;
// Input allocated size required by the device.
@@ -262,7 +256,7 @@ class CONTENT_EXPORT V4L2VideoEncodeAccelerator
// To expose client callbacks from VideoEncodeAccelerator.
// NOTE: all calls to these objects *MUST* be executed on
- // child_message_loop_proxy_.
+ // child_task_runner_.
base::WeakPtr<Client> client_;
scoped_ptr<base::WeakPtrFactory<Client> > client_ptr_factory_;
« no previous file with comments | « content/common/gpu/media/v4l2_video_decode_accelerator.cc ('k') | content/common/gpu/media/v4l2_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698