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 13 matching lines...) Expand all Loading... | |
24 #define IPC_MESSAGE_START GpuMsgStart | 24 #define IPC_MESSAGE_START GpuMsgStart |
25 | 25 |
26 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) | 26 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) |
27 IPC_STRUCT_MEMBER(int32, share_group_id) | 27 IPC_STRUCT_MEMBER(int32, share_group_id) |
28 IPC_STRUCT_MEMBER(std::string, allowed_extensions) | 28 IPC_STRUCT_MEMBER(std::string, allowed_extensions) |
29 IPC_STRUCT_MEMBER(std::vector<int>, attribs) | 29 IPC_STRUCT_MEMBER(std::vector<int>, attribs) |
30 IPC_STRUCT_MEMBER(GURL, active_url) | 30 IPC_STRUCT_MEMBER(GURL, active_url) |
31 IPC_STRUCT_END() | 31 IPC_STRUCT_END() |
32 | 32 |
33 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) |
34 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params) | 34 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) |
35 IPC_STRUCT_MEMBER(int32, renderer_id) | 35 IPC_STRUCT_MEMBER(int32, renderer_id) |
36 IPC_STRUCT_MEMBER(int32, render_view_id) | 36 IPC_STRUCT_MEMBER(int32, render_view_id) |
37 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 37 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
38 IPC_STRUCT_MEMBER(int32, width) | 38 IPC_STRUCT_MEMBER(int32, width) |
39 IPC_STRUCT_MEMBER(int32, height) | 39 IPC_STRUCT_MEMBER(int32, height) |
40 IPC_STRUCT_MEMBER(uint64, identifier) | 40 IPC_STRUCT_MEMBER(uint64, identifier) |
41 IPC_STRUCT_END() | 41 IPC_STRUCT_END() |
42 | 42 |
43 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 43 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
44 IPC_STRUCT_MEMBER(int32, renderer_id) | 44 IPC_STRUCT_MEMBER(int32, renderer_id) |
45 IPC_STRUCT_MEMBER(int32, render_view_id) | 45 IPC_STRUCT_MEMBER(int32, render_view_id) |
46 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 46 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
47 IPC_STRUCT_MEMBER(uint64, surface_id) | 47 IPC_STRUCT_MEMBER(uint64, surface_id) |
48 IPC_STRUCT_MEMBER(int32, route_id) | 48 IPC_STRUCT_MEMBER(int32, route_id) |
49 IPC_STRUCT_MEMBER(uint64, swap_buffers_count) | 49 IPC_STRUCT_MEMBER(uint64, swap_buffers_count) |
50 IPC_STRUCT_END() | 50 IPC_STRUCT_END() |
51 #endif | 51 #endif |
52 | 52 |
53 #if defined(TOUCH_UI) | 53 #if defined(TOUCH_UI) |
54 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params) | 54 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_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(int32, width) | 57 IPC_STRUCT_MEMBER(int32, width) |
58 IPC_STRUCT_MEMBER(int32, height) | 58 IPC_STRUCT_MEMBER(int32, height) |
59 IPC_STRUCT_MEMBER(uint64, identifier) | 59 IPC_STRUCT_MEMBER(uint64, identifier) |
60 IPC_STRUCT_MEMBER(int32, route_id) | 60 IPC_STRUCT_MEMBER(int32, route_id) |
61 IPC_STRUCT_END() | 61 IPC_STRUCT_END() |
62 | 62 |
63 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 63 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
64 IPC_STRUCT_MEMBER(int32, renderer_id) | 64 IPC_STRUCT_MEMBER(int32, renderer_id) |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) | 151 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) |
152 // Tells the GPU process that the browser process has finished resizing the | 152 // Tells the GPU process that the browser process has finished resizing the |
153 // view. | 153 // view. |
154 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, | 154 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, |
155 int32 /* renderer_id */, | 155 int32 /* renderer_id */, |
156 int32 /* command_buffer_id */) | 156 int32 /* command_buffer_id */) |
157 #endif | 157 #endif |
158 | 158 |
159 #if defined(TOUCH_UI) | 159 #if defined(TOUCH_UI) |
160 // Tells the GPU process that it's safe to start rendering to the surface. | 160 // Tells the GPU process that it's safe to start rendering to the surface. |
161 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_SetSurfaceACK, | 161 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, |
162 uint64 /* surface_id */) | 162 uint64 /* surface_id */, |
163 TransportDIB::Handle /* shared memory buffer */) | |
163 | 164 |
164 // Tells the GPU process that the browser process handled the swap | 165 // Tells the GPU process that the browser process handled the swap |
165 // buffers request with the given number. | 166 // buffers request with the given number. |
166 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) | 167 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) |
167 #endif | 168 #endif |
168 | 169 |
169 #if defined(OS_MACOSX) | 170 #if defined(OS_MACOSX) |
170 // Tells the GPU process that the browser process handled the swap | 171 // Tells the GPU process that the browser process handled the swap |
171 // buffers request with the given number. Note that it is possible | 172 // buffers request with the given number. Note that it is possible |
172 // for the browser process to coalesce frames; it is not guaranteed | 173 // for the browser process to coalesce frames; it is not guaranteed |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 int32 /* renderer_id */, | 247 int32 /* renderer_id */, |
247 int32 /* render_view_id */, | 248 int32 /* render_view_id */, |
248 int32 /* command_buffer_route_id */, | 249 int32 /* command_buffer_route_id */, |
249 gfx::Size /* size */) | 250 gfx::Size /* size */) |
250 #endif | 251 #endif |
251 | 252 |
252 #if defined(OS_MACOSX) || defined(TOUCH_UI) | 253 #if defined(OS_MACOSX) || defined(TOUCH_UI) |
253 // This message is sent from the GPU process to the browser to indicate that a | 254 // This message is sent from the GPU process to the browser to indicate that a |
254 // new backing store was allocated. The renderer ID and render view ID are | 255 // new backing store was allocated. The renderer ID and render view ID are |
255 // needed in order to uniquely identify the RenderWidgetHostView on the | 256 // needed in order to uniquely identify the RenderWidgetHostView on the |
256 // browser side. | 257 // browser side. |
jonathan.backer
2011/09/21 20:27:36
Update comment.
| |
257 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSetIOSurface, | 258 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceNew, |
258 GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params) | 259 GpuHostMsg_AcceleratedSurfaceNew_Params) |
259 | 260 |
260 // This message notifies the browser process that the renderer | 261 // This message notifies the browser process that the renderer |
261 // swapped the buffers associated with the given "window", which | 262 // swapped the buffers associated with the given "window", which |
262 // should cause the browser to redraw the compositor's contents. | 263 // should cause the browser to redraw the compositor's contents. |
263 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 264 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
264 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 265 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
265 #endif | 266 #endif |
266 | 267 |
267 #if defined(TOUCH_UI) | 268 #if defined(TOUCH_UI) |
268 // Tells the browser to release whatever resources are associated with | 269 // Tells the browser to release whatever resources are associated with |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 | 512 |
512 // Confirm decoder has been reset. | 513 // Confirm decoder has been reset. |
513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 514 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
514 | 515 |
515 // Decoder has faced end of stream marker in the stream. | 516 // Decoder has faced end of stream marker in the stream. |
516 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 517 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
517 | 518 |
518 // Video decoder has encountered an error. | 519 // Video decoder has encountered an error. |
519 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 520 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
520 uint32) /* Error ID */ | 521 uint32) /* Error ID */ |
OLD | NEW |