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

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

Issue 23125014: Run VDA::Decode on GPU IO thread if VDA supports it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a separate MessageFilter for GVDA Created 7 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
Index: content/common/gpu/media/vaapi_video_decode_accelerator.h
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.h b/content/common/gpu/media/vaapi_video_decode_accelerator.h
index 9ac73da353e7952ec588b4d20f0b5d46c702d54e..6d2bac1a7fb080f2e043e4cd9365ae6a87047333 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.h
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.h
@@ -46,7 +46,8 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator :
VaapiVideoDecodeAccelerator(
Display* x_display, GLXContext glx_context,
Client* client,
- const base::Callback<bool(void)>& make_context_current);
+ const base::Callback<bool(void)>& make_context_current,
+ const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
virtual ~VaapiVideoDecodeAccelerator();
// media::VideoDecodeAccelerator implementation.
@@ -229,6 +230,9 @@ private:
// ChildThread's message loop
base::MessageLoop* message_loop_;
+ // IO message loop proxy
+ scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+
// WeakPtr<> pointing to |this| for use in posting tasks from the decoder
// thread back to the ChildThread. Because the decoder thread is a member of
// this class, any task running on the decoder thread is guaranteed that this

Powered by Google App Engine
This is Rietveld 408576698