| 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 10 matching lines...) Expand all Loading... |
| 21 #include "ipc/ipc_sender.h" | 21 #include "ipc/ipc_sender.h" |
| 22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 23 #include "ui/gl/gl_surface.h" | 23 #include "ui/gl/gl_surface.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class WaitableEvent; | 26 class WaitableEvent; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gfx { | 29 namespace gfx { |
| 30 class GLShareGroup; | 30 class GLShareGroup; |
| 31 struct GpuMemoryBufferHandle; |
| 31 } | 32 } |
| 32 | 33 |
| 33 namespace gpu { | 34 namespace gpu { |
| 34 namespace gles2 { | 35 namespace gles2 { |
| 35 class MailboxManager; | 36 class MailboxManager; |
| 36 class ProgramCache; | 37 class ProgramCache; |
| 37 class ShaderTranslatorCache; | 38 class ShaderTranslatorCache; |
| 38 } | 39 } |
| 39 } | 40 } |
| 40 | 41 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const GPUCreateCommandBufferConfig& init_params, | 121 const GPUCreateCommandBufferConfig& init_params, |
| 121 int32 route_id); | 122 int32 route_id); |
| 122 void CreateImage( | 123 void CreateImage( |
| 123 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); | 124 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); |
| 124 void OnCreateImage( | 125 void OnCreateImage( |
| 125 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); | 126 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); |
| 126 void DeleteImage(int32 client_id, int32 image_id); | 127 void DeleteImage(int32 client_id, int32 image_id); |
| 127 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); | 128 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); |
| 128 void OnDeleteImageSyncPointRetired(ImageOperation*); | 129 void OnDeleteImageSyncPointRetired(ImageOperation*); |
| 129 void OnLoadedShader(std::string shader); | 130 void OnLoadedShader(std::string shader); |
| 131 void OnCreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, |
| 132 const gfx::Size& size, |
| 133 unsigned internalformat, |
| 134 unsigned usage); |
| 135 void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, |
| 136 int32 sync_point); |
| 130 | 137 |
| 131 void OnLoseAllContexts(); | 138 void OnLoseAllContexts(); |
| 132 | 139 |
| 133 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 140 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 134 base::WaitableEvent* shutdown_event_; | 141 base::WaitableEvent* shutdown_event_; |
| 135 | 142 |
| 136 // Used to send and receive IPC messages from the browser process. | 143 // Used to send and receive IPC messages from the browser process. |
| 137 MessageRouter* const router_; | 144 MessageRouter* const router_; |
| 138 | 145 |
| 139 // These objects manage channels to individual renderer processes there is | 146 // These objects manage channels to individual renderer processes there is |
| (...skipping 10 matching lines...) Expand all Loading... |
| 150 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 157 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
| 151 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 158 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
| 152 ImageOperationQueue image_operations_; | 159 ImageOperationQueue image_operations_; |
| 153 | 160 |
| 154 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 161 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 155 }; | 162 }; |
| 156 | 163 |
| 157 } // namespace content | 164 } // namespace content |
| 158 | 165 |
| 159 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 166 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |