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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index 683c9cd13d33a4fb61883fa180756070dbe13b6a..dd176aae9bf7f5b47563ee274daefba10fe49278 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -22,6 +22,7 @@ namespace IPC {
struct ChannelHandle;
}
+class ChildThread;
class GpuChannel;
class GpuWatchdog;
struct GPUCreateCommandBufferConfig;
@@ -39,7 +40,7 @@ struct GPUCreateCommandBufferConfig;
class GpuChannelManager : public IPC::Channel::Listener,
public IPC::Message::Sender {
public:
- GpuChannelManager(IPC::Message::Sender* browser_channel,
+ GpuChannelManager(ChildThread* gpu_child_thread,
GpuWatchdog* watchdog,
base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event);
@@ -58,6 +59,10 @@ class GpuChannelManager : public IPC::Channel::Listener,
ScopedRunnableMethodFactory<GpuChannelManager> method_factory_;
+ int GenerateRouteID();
+ void AddRoute(int32 routing_id, IPC::Channel::Listener* listener);
+ void RemoveRoute(int32 routing_id);
+
private:
// Message handlers.
void OnEstablishChannel(int renderer_id);
@@ -71,19 +76,9 @@ class GpuChannelManager : public IPC::Channel::Listener,
const GPUCreateCommandBufferConfig& init_params);
void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id);
-#if defined(TOUCH_UI)
- void OnAcceleratedSurfaceSetIOSurfaceACK(
- int renderer_id, int32 route_id, uint64 surface_id);
- void OnAcceleratedSurfaceReleaseACK(
- int renderer_id, int32 route_id, uint64 surface_id);
-#endif
-
-#if defined(OS_MACOSX) || defined(TOUCH_UI)
+#if defined(OS_MACOSX)
void OnAcceleratedSurfaceBuffersSwappedACK(
int renderer_id, int32 route_id, uint64 swap_buffers_count);
-#endif
-
-#if defined(OS_MACOSX)
void OnDestroyCommandBuffer(int renderer_id, int32 renderer_view_id);
#endif
@@ -92,10 +87,8 @@ class GpuChannelManager : public IPC::Channel::Listener,
scoped_refptr<base::MessageLoopProxy> io_message_loop_;
base::WaitableEvent* shutdown_event_;
- // Either an IPC channel to the browser or, if the GpuChannelManager is
- // running in the browser process, a Sender implementation that will post
- // IPC messages to the UI thread.
- IPC::Message::Sender* browser_channel_;
+ // Used to send and receive IPC messages from the browser process.
+ ChildThread* gpu_child_thread_;
// These objects manage channels to individual renderer processes there is
// one channel for each renderer process that has connected to this GPU
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698