| 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 GpuMemoryBufferParams; |
| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void OnCreateViewCommandBuffer( | 117 void OnCreateViewCommandBuffer( |
| 117 const gfx::GLSurfaceHandle& window, | 118 const gfx::GLSurfaceHandle& window, |
| 118 int32 render_view_id, | 119 int32 render_view_id, |
| 119 int32 client_id, | 120 int32 client_id, |
| 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); |
| 127 void OnAllocateGpuMemoryBuffer(const gfx::GpuMemoryBufferParams& params); |
| 126 void DeleteImage(int32 client_id, int32 image_id); | 128 void DeleteImage(int32 client_id, int32 image_id); |
| 127 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); | 129 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); |
| 128 void OnDeleteImageSyncPointRetired(ImageOperation*); | 130 void OnDeleteImageSyncPointRetired(ImageOperation*); |
| 129 void OnLoadedShader(std::string shader); | 131 void OnLoadedShader(std::string shader); |
| 130 | 132 |
| 131 void OnLoseAllContexts(); | 133 void OnLoseAllContexts(); |
| 132 | 134 |
| 133 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 135 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 134 base::WaitableEvent* shutdown_event_; | 136 base::WaitableEvent* shutdown_event_; |
| 135 | 137 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 150 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 152 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
| 151 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 153 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
| 152 ImageOperationQueue image_operations_; | 154 ImageOperationQueue image_operations_; |
| 153 | 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 156 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 } // namespace content | 159 } // namespace content |
| 158 | 160 |
| 159 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 161 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |