| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) | 152 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) |
| 153 // Tells the GPU process that the browser process has finished resizing the | 153 // Tells the GPU process that the browser process has finished resizing the |
| 154 // view. | 154 // view. |
| 155 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, | 155 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, |
| 156 int32 /* renderer_id */, | 156 int32 /* renderer_id */, |
| 157 int32 /* command_buffer_id */) | 157 int32 /* command_buffer_id */) |
| 158 #endif | 158 #endif |
| 159 | 159 |
| 160 #if defined(TOUCH_UI) | 160 #if defined(TOUCH_UI) |
| 161 // Tells the GPU process that it's safe to start rendering to the surface. | 161 // Tells the GPU process that it's safe to start rendering to the surface. |
| 162 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceSetIOSurfaceACK, | 162 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_SetSurfaceACK, |
| 163 int /* renderer_id */, | 163 uint64 /* surface_id */) |
| 164 int32 /* route_id */, | |
| 165 uint64 /* surface_id */) | |
| 166 | 164 |
| 167 // Tells the GPU process the surface has been released. | 165 // Tells the GPU process that the browser process handled the swap |
| 168 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceReleaseACK, | 166 // buffers request with the given number. |
| 169 int /* renderer_id */, | 167 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) |
| 170 int32 /* route_id */, | |
| 171 uint64 /* surface_id */) | |
| 172 #endif | 168 #endif |
| 173 | 169 |
| 174 #if defined(OS_MACOSX) || defined(TOUCH_UI) | 170 #if defined(OS_MACOSX) |
| 175 // Tells the GPU process that the browser process handled the swap | 171 // Tells the GPU process that the browser process handled the swap |
| 176 // buffers request with the given number. Note that it is possible | 172 // buffers request with the given number. Note that it is possible |
| 177 // for the browser process to coalesce frames; it is not guaranteed | 173 // for the browser process to coalesce frames; it is not guaranteed |
| 178 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message | 174 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message |
| 179 // will result in a buffer swap on the browser side. | 175 // will result in a buffer swap on the browser side. |
| 180 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, | 176 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, |
| 181 int /* renderer_id */, | 177 int /* renderer_id */, |
| 182 int32 /* route_id */, | 178 int32 /* route_id */, |
| 183 uint64 /* swap_buffers_count */) | 179 uint64 /* swap_buffers_count */) |
| 184 #endif | |
| 185 | 180 |
| 186 #if defined(OS_MACOSX) | |
| 187 // Requests the GPU process to destroy the command buffer and remove the | 181 // Requests the GPU process to destroy the command buffer and remove the |
| 188 // associated route. Further messages to this command buffer will result in a | 182 // associated route. Further messages to this command buffer will result in a |
| 189 // channel error. | 183 // channel error. |
| 190 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyCommandBuffer, | 184 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyCommandBuffer, |
| 191 int /* renderer_id */, | 185 int /* renderer_id */, |
| 192 int32 /* render_view_id */) | 186 int32 /* render_view_id */) |
| 193 #endif | 187 #endif |
| 194 | 188 |
| 195 // Tells the GPU process to remove all contexts. | 189 // Tells the GPU process to remove all contexts. |
| 196 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 190 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 526 |
| 533 // Confirm decoder has been reset. | 527 // Confirm decoder has been reset. |
| 534 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 528 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 535 | 529 |
| 536 // Decoder has faced end of stream marker in the stream. | 530 // Decoder has faced end of stream marker in the stream. |
| 537 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 531 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 538 | 532 |
| 539 // Video decoder has encountered an error. | 533 // Video decoder has encountered an error. |
| 540 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 534 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 541 uint32) /* Error ID */ | 535 uint32) /* Error ID */ |
| OLD | NEW |