| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 int32 client_id, | 117 int32 client_id, |
| 118 const GPUCreateCommandBufferConfig& init_params); | 118 const GPUCreateCommandBufferConfig& init_params); |
| 119 void CreateImage( | 119 void CreateImage( |
| 120 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); | 120 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); |
| 121 void OnCreateImage( | 121 void OnCreateImage( |
| 122 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); | 122 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); |
| 123 void DeleteImage(int32 client_id, int32 image_id); | 123 void DeleteImage(int32 client_id, int32 image_id); |
| 124 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); | 124 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); |
| 125 void OnDeleteImageSyncPointRetired(ImageOperation*); | 125 void OnDeleteImageSyncPointRetired(ImageOperation*); |
| 126 void OnLoadedShader(std::string shader); | 126 void OnLoadedShader(std::string shader); |
| 127 void OnCreateSurfaceTexture(int32 surface_texture_id, int32 process_handle); |
| 127 | 128 |
| 128 void OnLoseAllContexts(); | 129 void OnLoseAllContexts(); |
| 129 | 130 |
| 130 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 131 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 131 base::WaitableEvent* shutdown_event_; | 132 base::WaitableEvent* shutdown_event_; |
| 132 | 133 |
| 133 // Used to send and receive IPC messages from the browser process. | 134 // Used to send and receive IPC messages from the browser process. |
| 134 MessageRouter* const router_; | 135 MessageRouter* const router_; |
| 135 | 136 |
| 136 // These objects manage channels to individual renderer processes there is | 137 // These objects manage channels to individual renderer processes there is |
| 137 // one channel for each renderer process that has connected to this GPU | 138 // one channel for each renderer process that has connected to this GPU |
| 138 // process. | 139 // process. |
| 139 GpuChannelMap gpu_channels_; | 140 GpuChannelMap gpu_channels_; |
| 140 scoped_refptr<gfx::GLShareGroup> share_group_; | 141 scoped_refptr<gfx::GLShareGroup> share_group_; |
| 141 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 142 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
| 142 GpuMemoryManager gpu_memory_manager_; | 143 GpuMemoryManager gpu_memory_manager_; |
| 143 GpuEventsDispatcher gpu_devtools_events_dispatcher_; | 144 GpuEventsDispatcher gpu_devtools_events_dispatcher_; |
| 144 GpuWatchdog* watchdog_; | 145 GpuWatchdog* watchdog_; |
| 145 scoped_refptr<SyncPointManager> sync_point_manager_; | 146 scoped_refptr<SyncPointManager> sync_point_manager_; |
| 146 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; | 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; |
| 147 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
| 148 ImageOperationQueue image_operations_; | 149 ImageOperationQueue image_operations_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace content | 154 } // namespace content |
| 154 | 155 |
| 155 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |