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

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
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..4b5172cd173a4ca82a5fce76a6628dd74573faac 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 GpuChildThread;
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(GpuChildThread* 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
@@ -95,7 +90,9 @@ class GpuChannelManager : public IPC::Channel::Listener,
// 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_;
+
+ // TODO(backer): Merge the GpuChildThread and GpuChannelManager classes.
+ GpuChildThread* 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

Powered by Google App Engine
This is Rietveld 408576698