| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Provides a synchronization point to guarantee that the processing of | 147 // Provides a synchronization point to guarantee that the processing of |
| 148 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has | 148 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has |
| 149 // completed. (This message can't be synchronous because the | 149 // completed. (This message can't be synchronous because the |
| 150 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages | 150 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages |
| 151 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. | 151 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. |
| 152 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) | 152 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) |
| 153 | 153 |
| 154 // Tells the GPU process to create a new command buffer that renders directly | 154 // Tells the GPU process to create a new command buffer that renders directly |
| 155 // to a native view. A corresponding GpuCommandBufferStub is created. | 155 // to a native view. A corresponding GpuCommandBufferStub is created. |
| 156 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 156 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
| 157 gfx::PluginWindowHandle, /* view */ | 157 gfx::PluginWindowHandle, /* compositing_surface */ |
| 158 int32, /* render_view_id */ | 158 int32, /* render_view_id */ |
| 159 int32, /* renderer_id */ | 159 int32, /* renderer_id */ |
| 160 GPUCreateCommandBufferConfig /* init_params */) | 160 GPUCreateCommandBufferConfig /* init_params */) |
| 161 | 161 |
| 162 // Tells the GPU process to create a context for collecting graphics card | 162 // Tells the GPU process to create a context for collecting graphics card |
| 163 // information. | 163 // information. |
| 164 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 164 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 165 | 165 |
| 166 #if defined(OS_MACOSX) | 166 #if defined(OS_MACOSX) |
| 167 // Tells the GPU process that the browser process handled the swap | 167 // Tells the GPU process that the browser process handled the swap |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 IPC_MESSAGE_CONTROL1(GpuHostMsg_EstablishGpuChannel, | 205 IPC_MESSAGE_CONTROL1(GpuHostMsg_EstablishGpuChannel, |
| 206 content::CauseForGpuLaunch) | 206 content::CauseForGpuLaunch) |
| 207 | 207 |
| 208 // A renderer sends this to the browser process to provide a synchronization | 208 // A renderer sends this to the browser process to provide a synchronization |
| 209 // point for GPU operations, in particular to make sure the GPU channel has | 209 // point for GPU operations, in particular to make sure the GPU channel has |
| 210 // been established. | 210 // been established. |
| 211 IPC_SYNC_MESSAGE_CONTROL0_0(GpuHostMsg_SynchronizeGpu) | 211 IPC_SYNC_MESSAGE_CONTROL0_0(GpuHostMsg_SynchronizeGpu) |
| 212 | 212 |
| 213 // A renderer sends this to the browser process when it wants to | 213 // A renderer sends this to the browser process when it wants to |
| 214 // create a GL context associated with the given view_id. | 214 // create a GL context associated with the given view_id. |
| 215 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, | 215 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer, |
| 216 gfx::PluginWindowHandle, /* view */ |
| 216 int32, /* render_view_id */ | 217 int32, /* render_view_id */ |
| 217 GPUCreateCommandBufferConfig, /* init_params */ | 218 GPUCreateCommandBufferConfig, /* init_params */ |
| 218 int32 /* route_id */) | 219 int32 /* route_id */) |
| 219 | 220 |
| 220 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 221 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
| 221 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 222 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
| 222 IPC::ChannelHandle /* channel_handle */) | 223 IPC::ChannelHandle /* channel_handle */) |
| 223 | 224 |
| 224 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. | 225 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. |
| 225 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 226 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 586 |
| 586 // Confirm decoder has been flushed. | 587 // Confirm decoder has been flushed. |
| 587 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 588 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 588 | 589 |
| 589 // Decoder has faced end of stream marker in the stream. | 590 // Decoder has faced end of stream marker in the stream. |
| 590 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 591 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 591 | 592 |
| 592 // Video decoder has encountered an error. | 593 // Video decoder has encountered an error. |
| 593 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 594 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 594 uint32) /* Error ID */ | 595 uint32) /* Error ID */ |
| OLD | NEW |