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

Unified Diff: content/common/gpu/gpu_channel.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/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 0692b903b4fab7128f9c171a3c6a8dd24fcdc945..23c27e0a0a491333c1bee334dfa225e1fe31bcb8 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -86,6 +86,10 @@ class GpuChannel : public IPC::Listener,
base::ProcessId renderer_pid() const { return channel_->peer_pid(); }
+ scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
Ami GONE FROM CHROMIUM 2013/08/26 17:20:03 Since this is a process-wide singleton, it would m
wuchengli 2013/08/27 12:32:24 GpuChannelManager manages more than one GpuChannel
+ return io_message_loop_;
+ }
+
// IPC::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
@@ -156,6 +160,9 @@ class GpuChannel : public IPC::Listener,
void CacheShader(const std::string& key, const std::string& shader);
+ void AddFilter(IPC::ChannelProxy::MessageFilter* filter);
+ void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter);
+
protected:
virtual ~GpuChannel();
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/media/android_video_decode_accelerator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698