OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "chrome/common/gpu_video_common.h" | 9 #include "chrome/common/gpu_video_common.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // GPU Messages | 26 // GPU Messages |
27 // These are messages from the browser to the GPU process. | 27 // These are messages from the browser to the GPU process. |
28 // Tells the GPU process to create a new channel for communication with a | 28 // Tells the GPU process to create a new channel for communication with a |
29 // given renderer. The channel name is returned in a | 29 // given renderer. The channel name is returned in a |
30 // GpuHostMsg_ChannelEstablished message. The renderer ID is passed so that | 30 // GpuHostMsg_ChannelEstablished message. The renderer ID is passed so that |
31 // the GPU process reuses an existing channel to that process if it exists. | 31 // the GPU process reuses an existing channel to that process if it exists. |
32 // This ID is a unique opaque identifier generated by the browser process. | 32 // This ID is a unique opaque identifier generated by the browser process. |
33 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | 33 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, |
34 int /* renderer_id */) | 34 int /* renderer_id */) |
35 | 35 |
| 36 // Tells the GPU process to close the channel identified by IPC channel |
| 37 // handle. If no channel can be identified, do nothing. |
| 38 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, |
| 39 IPC::ChannelHandle /* channel_handle */) |
| 40 |
36 // Provides a synchronization point to guarantee that the processing of | 41 // Provides a synchronization point to guarantee that the processing of |
37 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has | 42 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has |
38 // completed. (This message can't be synchronous because the | 43 // completed. (This message can't be synchronous because the |
39 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages | 44 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages |
40 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. | 45 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. |
41 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) | 46 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) |
42 | 47 |
43 // Tells the GPU process to create a context for collecting graphics card | 48 // Tells the GPU process to create a context for collecting graphics card |
44 // information. | 49 // information. |
45 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 50 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // Release all video frames allocated for a hardware video decoder. | 321 // Release all video frames allocated for a hardware video decoder. |
317 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) | 322 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) |
318 | 323 |
319 // GpuVideoDecoder report output format change. | 324 // GpuVideoDecoder report output format change. |
320 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, | 325 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, |
321 GpuVideoDecoderFormatChangeParam) | 326 GpuVideoDecoderFormatChangeParam) |
322 | 327 |
323 // GpuVideoDecoder report error. | 328 // GpuVideoDecoder report error. |
324 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, | 329 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, |
325 GpuVideoDecoderErrorInfoParam) | 330 GpuVideoDecoderErrorInfoParam) |
OLD | NEW |