| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) | 145 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) |
| 146 | 146 |
| 147 IPC_MESSAGE_CONTROL3(GpuMsg_VisibilityChanged, | 147 IPC_MESSAGE_CONTROL3(GpuMsg_VisibilityChanged, |
| 148 int32, /*render_view_id */ | 148 int32, /*render_view_id */ |
| 149 int32, /* renderer_id */ | 149 int32, /* renderer_id */ |
| 150 bool /* is_visible */) | 150 bool /* is_visible */) |
| 151 | 151 |
| 152 // Tells the GPU process to create a new command buffer that renders directly | 152 // Tells the GPU process to create a new command buffer that renders directly |
| 153 // to a native view. A corresponding GpuCommandBufferStub is created. | 153 // to a native view. A corresponding GpuCommandBufferStub is created. |
| 154 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 154 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
| 155 gfx::PluginWindowHandle, /* view */ | 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_MACOSX) |
| 165 // Tells the GPU process that the browser process handled the swap | 165 // Tells the GPU process that the browser process handled the swap |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 IPC_MESSAGE_CONTROL1(GpuHostMsg_EstablishGpuChannel, | 203 IPC_MESSAGE_CONTROL1(GpuHostMsg_EstablishGpuChannel, |
| 204 content::CauseForGpuLaunch) | 204 content::CauseForGpuLaunch) |
| 205 | 205 |
| 206 // A renderer sends this to the browser process to provide a synchronization | 206 // A renderer sends this to the browser process to provide a synchronization |
| 207 // point for GPU operations, in particular to make sure the GPU channel has | 207 // point for GPU operations, in particular to make sure the GPU channel has |
| 208 // been established. | 208 // been established. |
| 209 IPC_SYNC_MESSAGE_CONTROL0_0(GpuHostMsg_SynchronizeGpu) | 209 IPC_SYNC_MESSAGE_CONTROL0_0(GpuHostMsg_SynchronizeGpu) |
| 210 | 210 |
| 211 // A renderer sends this to the browser process when it wants to | 211 // A renderer sends this to the browser process when it wants to |
| 212 // create a GL context associated with the given view_id. | 212 // create a GL context associated with the given view_id. |
| 213 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, | 213 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer, |
| 214 gfx::PluginWindowHandle, /* view */ |
| 214 int32, /* render_view_id */ | 215 int32, /* render_view_id */ |
| 215 GPUCreateCommandBufferConfig, /* init_params */ | 216 GPUCreateCommandBufferConfig, /* init_params */ |
| 216 int32 /* route_id */) | 217 int32 /* route_id */) |
| 217 | 218 |
| 218 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 219 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
| 219 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 220 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
| 220 IPC::ChannelHandle /* channel_handle */) | 221 IPC::ChannelHandle /* channel_handle */) |
| 221 | 222 |
| 222 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. | 223 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. |
| 223 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 224 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 593 |
| 593 // Confirm decoder has been aborted. | 594 // Confirm decoder has been aborted. |
| 594 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 595 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
| 595 | 596 |
| 596 // Decoder has faced end of stream marker in the stream. | 597 // Decoder has faced end of stream marker in the stream. |
| 597 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 598 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 598 | 599 |
| 599 // Video decoder has encountered an error. | 600 // Video decoder has encountered an error. |
| 600 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 601 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 601 uint32) /* Error ID */ | 602 uint32) /* Error ID */ |
| OLD | NEW |