| 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 #include <vector> | 5 #include <vector> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 | 8 |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 154 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
| 155 gfx::PluginWindowHandle, /* compositing_surface */ | 155 gfx::PluginWindowHandle, /* compositing_surface */ |
| 156 int32, /* render_view_id */ | 156 int32, /* render_view_id */ |
| 157 int32, /* renderer_id */ | 157 int32, /* renderer_id */ |
| 158 GPUCreateCommandBufferConfig /* init_params */) | 158 GPUCreateCommandBufferConfig /* init_params */) |
| 159 | 159 |
| 160 // Tells the GPU process to create a context for collecting graphics card | 160 // Tells the GPU process to create a context for collecting graphics card |
| 161 // information. | 161 // information. |
| 162 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 162 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 163 | 163 |
| 164 #if defined(OS_MACOSX) | 164 #if defined(OS_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) |
| 165 // Tells the GPU process that the browser process has finished resizing the |
| 166 // view. |
| 167 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, |
| 168 int32 /* renderer_id */, |
| 169 int32 /* command_buffer_id */) |
| 170 #elif defined(OS_MACOSX) |
| 165 // Tells the GPU process that the browser process handled the swap | 171 // Tells the GPU process that the browser process handled the swap |
| 166 // buffers request with the given number. Note that it is possible | 172 // buffers request with the given number. Note that it is possible |
| 167 // for the browser process to coalesce frames; it is not guaranteed | 173 // for the browser process to coalesce frames; it is not guaranteed |
| 168 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message | 174 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message |
| 169 // will result in a buffer swap on the browser side. | 175 // will result in a buffer swap on the browser side. |
| 170 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, | 176 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, |
| 171 int /* renderer_id */, | 177 int /* renderer_id */, |
| 172 int32 /* route_id */, | 178 int32 /* route_id */, |
| 173 uint64 /* swap_buffers_count */) | 179 uint64 /* swap_buffers_count */) |
| 180 #endif |
| 174 | 181 |
| 175 // Requests the GPU process to destroy the command buffer and remove the | 182 // Requests the GPU process to destroy the command buffer and remove the |
| 176 // associated route. Further messages to this command buffer will result in a | 183 // associated route. Further messages to this command buffer will result in a |
| 177 // channel error. | 184 // channel error. |
| 178 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyCommandBuffer, | 185 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyCommandBuffer, |
| 179 int /* renderer_id */, | 186 int /* renderer_id */, |
| 180 int32 /* render_view_id */) | 187 int32 /* render_view_id */) |
| 181 #endif | |
| 182 | 188 |
| 183 // Tells the GPU process to crash. | 189 // Tells the GPU process to crash. |
| 184 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 190 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
| 185 | 191 |
| 186 // Tells the GPU process to hang. | 192 // Tells the GPU process to hang. |
| 187 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 193 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
| 188 | 194 |
| 189 // The browser sends this to a renderer process in response to a | 195 // The browser sends this to a renderer process in response to a |
| 190 // GpuHostMsg_EstablishGpuChannel message. | 196 // GpuHostMsg_EstablishGpuChannel message. |
| 191 IPC_MESSAGE_CONTROL3(GpuMsg_GpuChannelEstablished, | 197 IPC_MESSAGE_CONTROL3(GpuMsg_GpuChannelEstablished, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 243 |
| 238 // Message from GPU to add a GPU log message to the about:gpu page. | 244 // Message from GPU to add a GPU log message to the about:gpu page. |
| 239 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 245 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 240 int /*severity*/, | 246 int /*severity*/, |
| 241 std::string /* header */, | 247 std::string /* header */, |
| 242 std::string /* message */) | 248 std::string /* message */) |
| 243 | 249 |
| 244 // Response from GPU to a GpuMsg_Synchronize message. | 250 // Response from GPU to a GpuMsg_Synchronize message. |
| 245 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) | 251 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) |
| 246 | 252 |
| 247 #if defined(OS_LINUX) && !defined(TOUCH_UI) | 253 #if defined(OS_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) |
| 248 // Resize the window that is being drawn into. It's important that this | 254 // Resize the window that is being drawn into. It's important that this |
| 249 // resize be synchronized with the swapping of the front and back buffers. | 255 // resize be synchronized with the swapping of the front and back buffers. |
| 250 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_ResizeXID, | 256 IPC_MESSAGE_CONTROL4(GpuHostMsg_ResizeView, |
| 251 unsigned long, /* xid */ | 257 int32 /* renderer_id */, |
| 252 gfx::Size, /* size */ | 258 int32 /* render_view_id */, |
| 253 bool /* success */) | 259 int32 /* command_buffer_route_id */, |
| 260 gfx::Size /* size */) |
| 254 #elif defined(OS_MACOSX) | 261 #elif defined(OS_MACOSX) |
| 255 // This message, used on Mac OS X 10.6 and later (where IOSurface is | 262 // This message, used on Mac OS X 10.6 and later (where IOSurface is |
| 256 // supported), is sent from the GPU process to the browser to indicate that a | 263 // supported), is sent from the GPU process to the browser to indicate that a |
| 257 // new backing store was allocated for the given "window" (fake | 264 // new backing store was allocated for the given "window" (fake |
| 258 // PluginWindowHandle). The renderer ID and render view ID are needed in | 265 // PluginWindowHandle). The renderer ID and render view ID are needed in |
| 259 // order to uniquely identify the RenderWidgetHostView on the browser side. | 266 // order to uniquely identify the RenderWidgetHostView on the browser side. |
| 260 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSetIOSurface, | 267 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSetIOSurface, |
| 261 GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params) | 268 GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params) |
| 262 | 269 |
| 263 // This message notifies the browser process that the renderer | 270 // This message notifies the browser process that the renderer |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 | 600 |
| 594 // Confirm decoder has been aborted. | 601 // Confirm decoder has been aborted. |
| 595 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 602 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
| 596 | 603 |
| 597 // Decoder has faced end of stream marker in the stream. | 604 // Decoder has faced end of stream marker in the stream. |
| 598 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 605 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 599 | 606 |
| 600 // Video decoder has encountered an error. | 607 // Video decoder has encountered an error. |
| 601 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 608 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 602 uint32) /* Error ID */ | 609 uint32) /* Error ID */ |
| OLD | NEW |