OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) | 54 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) |
55 IPC_STRUCT_MEMBER(int32, renderer_id) | 55 IPC_STRUCT_MEMBER(int32, renderer_id) |
56 IPC_STRUCT_MEMBER(int32, render_view_id) | 56 IPC_STRUCT_MEMBER(int32, render_view_id) |
57 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 57 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
58 IPC_STRUCT_MEMBER(uint64, identifier) | 58 IPC_STRUCT_MEMBER(uint64, identifier) |
59 IPC_STRUCT_MEMBER(int32, route_id) | 59 IPC_STRUCT_MEMBER(int32, route_id) |
60 IPC_STRUCT_END() | 60 IPC_STRUCT_END() |
61 #endif | 61 #endif |
62 | 62 |
63 #if defined(TOUCH_UI) | 63 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
64 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) | 64 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) |
65 IPC_STRUCT_MEMBER(int32, renderer_id) | 65 IPC_STRUCT_MEMBER(int32, renderer_id) |
66 IPC_STRUCT_MEMBER(int32, render_view_id) | 66 IPC_STRUCT_MEMBER(int32, render_view_id) |
67 IPC_STRUCT_MEMBER(int32, width) | 67 IPC_STRUCT_MEMBER(int32, width) |
68 IPC_STRUCT_MEMBER(int32, height) | 68 IPC_STRUCT_MEMBER(int32, height) |
69 IPC_STRUCT_MEMBER(uint64, surface_id) | 69 IPC_STRUCT_MEMBER(uint64, surface_id) |
70 IPC_STRUCT_MEMBER(int32, route_id) | 70 IPC_STRUCT_MEMBER(int32, route_id) |
71 IPC_STRUCT_END() | 71 IPC_STRUCT_END() |
72 | 72 |
73 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 73 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 150 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
151 gfx::PluginWindowHandle, /* compositing_surface */ | 151 gfx::PluginWindowHandle, /* compositing_surface */ |
152 int32, /* render_view_id */ | 152 int32, /* render_view_id */ |
153 int32, /* renderer_id */ | 153 int32, /* renderer_id */ |
154 GPUCreateCommandBufferConfig /* init_params */) | 154 GPUCreateCommandBufferConfig /* init_params */) |
155 | 155 |
156 // Tells the GPU process to create a context for collecting graphics card | 156 // Tells the GPU process to create a context for collecting graphics card |
157 // information. | 157 // information. |
158 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 158 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
159 | 159 |
160 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) | 160 #if defined(TOOLKIT_USES_GTK) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT) || \ |
| 161 defined(OS_WIN) |
161 // Tells the GPU process that the browser process has finished resizing the | 162 // Tells the GPU process that the browser process has finished resizing the |
162 // view. | 163 // view. |
163 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, | 164 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, |
164 int32 /* renderer_id */, | 165 int32 /* renderer_id */, |
165 int32 /* command_buffer_id */) | 166 int32 /* command_buffer_id */) |
166 #endif | 167 #endif |
167 | 168 |
168 #if defined(OS_MACOSX) || defined(TOUCH_UI) | 169 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
169 // Tells the GPU process that it's safe to start rendering to the surface. | 170 // Tells the GPU process that it's safe to start rendering to the surface. |
170 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, | 171 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, |
171 uint64 /* surface_id */, | 172 uint64 /* surface_id */, |
172 TransportDIB::Handle /* shared memory buffer */) | 173 TransportDIB::Handle /* shared memory buffer */) |
173 | 174 |
174 // Tells the GPU process that the browser process handled the swap | 175 // Tells the GPU process that the browser process handled the swap |
175 // buffers request with the given number. | 176 // buffers request with the given number. |
176 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) | 177 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) |
177 #endif | 178 #endif |
178 | 179 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 224 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
224 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 225 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
225 GPUInfo /* GPU logging stats */) | 226 GPUInfo /* GPU logging stats */) |
226 | 227 |
227 // Message from GPU to add a GPU log message to the about:gpu page. | 228 // Message from GPU to add a GPU log message to the about:gpu page. |
228 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 229 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
229 int /*severity*/, | 230 int /*severity*/, |
230 std::string /* header */, | 231 std::string /* header */, |
231 std::string /* message */) | 232 std::string /* message */) |
232 | 233 |
233 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) | 234 #if defined(TOOLKIT_USES_GTK) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT) || \ |
| 235 defined(OS_WIN) |
234 // Resize the window that is being drawn into. It's important that this | 236 // Resize the window that is being drawn into. It's important that this |
235 // resize be synchronized with the swapping of the front and back buffers. | 237 // resize be synchronized with the swapping of the front and back buffers. |
236 IPC_MESSAGE_CONTROL4(GpuHostMsg_ResizeView, | 238 IPC_MESSAGE_CONTROL4(GpuHostMsg_ResizeView, |
237 int32 /* renderer_id */, | 239 int32 /* renderer_id */, |
238 int32 /* render_view_id */, | 240 int32 /* render_view_id */, |
239 int32 /* command_buffer_route_id */, | 241 int32 /* command_buffer_route_id */, |
240 gfx::Size /* size */) | 242 gfx::Size /* size */) |
241 #endif | 243 #endif |
242 | 244 |
243 #if defined(OS_MACOSX) || defined(TOUCH_UI) | 245 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
244 // This message is sent from the GPU process to the browser to notify about a | 246 // This message is sent from the GPU process to the browser to notify about a |
245 // new or resized surface in the GPU. The browser allocates any resources | 247 // new or resized surface in the GPU. The browser allocates any resources |
246 // needed for it on its end and replies with an ACK containing any shared | 248 // needed for it on its end and replies with an ACK containing any shared |
247 // resources/identifiers to be used in the GPU. | 249 // resources/identifiers to be used in the GPU. |
248 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceNew, | 250 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceNew, |
249 GpuHostMsg_AcceleratedSurfaceNew_Params) | 251 GpuHostMsg_AcceleratedSurfaceNew_Params) |
250 | 252 |
251 // This message notifies the browser process that the renderer | 253 // This message notifies the browser process that the renderer |
252 // swapped the buffers associated with the given "window", which | 254 // swapped the buffers associated with the given "window", which |
253 // should cause the browser to redraw the compositor's contents. | 255 // should cause the browser to redraw the compositor's contents. |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 498 |
497 // Confirm decoder has been reset. | 499 // Confirm decoder has been reset. |
498 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 500 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
499 | 501 |
500 // Decoder has faced end of stream marker in the stream. | 502 // Decoder has faced end of stream marker in the stream. |
501 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 503 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
502 | 504 |
503 // Video decoder has encountered an error. | 505 // Video decoder has encountered an error. |
504 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 506 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
505 uint32) /* Error ID */ | 507 uint32) /* Error ID */ |
OLD | NEW |