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_info.h" | 9 #include "chrome/common/gpu_info.h" |
10 #include "chrome/common/gpu_video_common.h" | 10 #include "chrome/common/gpu_video_common.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // the GPU process reuses an existing channel to that process if it exists. | 40 // the GPU process reuses an existing channel to that process if it exists. |
41 // This ID is a unique opaque identifier generated by the browser process. | 41 // This ID is a unique opaque identifier generated by the browser process. |
42 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | 42 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, |
43 int /* renderer_id */) | 43 int /* renderer_id */) |
44 | 44 |
45 // Tells the GPU process to close the channel identified by IPC channel | 45 // Tells the GPU process to close the channel identified by IPC channel |
46 // handle. If no channel can be identified, do nothing. | 46 // handle. If no channel can be identified, do nothing. |
47 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, | 47 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, |
48 IPC::ChannelHandle /* channel_handle */) | 48 IPC::ChannelHandle /* channel_handle */) |
49 | 49 |
| 50 // Tells the GPU process to enable GPU_TRACE collection |
| 51 IPC_MESSAGE_CONTROL1(GpuMsg_SetTraceEnabled, |
| 52 bool /* enabled */) |
| 53 |
50 // Provides a synchronization point to guarantee that the processing of | 54 // Provides a synchronization point to guarantee that the processing of |
51 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has | 55 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has |
52 // completed. (This message can't be synchronous because the | 56 // completed. (This message can't be synchronous because the |
53 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages | 57 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages |
54 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. | 58 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. |
55 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) | 59 IPC_MESSAGE_CONTROL0(GpuMsg_Synchronize) |
56 | 60 |
57 // Tells the GPU process to create a new command buffer that renders directly | 61 // Tells the GPU process to create a new command buffer that renders directly |
58 // to a native view. A corresponding GpuCommandBufferStub is created. | 62 // to a native view. A corresponding GpuCommandBufferStub is created. |
59 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 63 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 139 |
136 // Message from GPU to add a GPU log message to the about:gpu page. | 140 // Message from GPU to add a GPU log message to the about:gpu page. |
137 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 141 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
138 int /*severity*/, | 142 int /*severity*/, |
139 std::string /* header */, | 143 std::string /* header */, |
140 std::string /* message */) | 144 std::string /* message */) |
141 | 145 |
142 // Response from GPU to a GpuMsg_Synchronize message. | 146 // Response from GPU to a GpuMsg_Synchronize message. |
143 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) | 147 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) |
144 | 148 |
| 149 // GPU_TRACE data being forwarded to browser process |
| 150 IPC_MESSAGE_CONTROL1(GpuHostMsg_TraceDataCollectedRemotely, |
| 151 std::string /* json_events */) |
| 152 |
145 #if defined(OS_LINUX) | 153 #if defined(OS_LINUX) |
146 // Resize the window that is being drawn into. It's important that this | 154 // Resize the window that is being drawn into. It's important that this |
147 // resize be synchronized with the swapping of the front and back buffers. | 155 // resize be synchronized with the swapping of the front and back buffers. |
148 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_ResizeXID, | 156 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_ResizeXID, |
149 unsigned long, /* xid */ | 157 unsigned long, /* xid */ |
150 gfx::Size, /* size */ | 158 gfx::Size, /* size */ |
151 bool /* success */) | 159 bool /* success */) |
152 #elif defined(OS_MACOSX) | 160 #elif defined(OS_MACOSX) |
153 // This message, used on Mac OS X 10.6 and later (where IOSurface is | 161 // This message, used on Mac OS X 10.6 and later (where IOSurface is |
154 // supported), is sent from the GPU process to the browser to indicate that a | 162 // supported), is sent from the GPU process to the browser to indicate that a |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // Release all video frames allocated for a hardware video decoder. | 365 // Release all video frames allocated for a hardware video decoder. |
358 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) | 366 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) |
359 | 367 |
360 // GpuVideoDecoder report output format change. | 368 // GpuVideoDecoder report output format change. |
361 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, | 369 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, |
362 GpuVideoDecoderFormatChangeParam) | 370 GpuVideoDecoderFormatChangeParam) |
363 | 371 |
364 // GpuVideoDecoder report error. | 372 // GpuVideoDecoder report error. |
365 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, | 373 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, |
366 GpuVideoDecoderErrorInfoParam) | 374 GpuVideoDecoderErrorInfoParam) |
OLD | NEW |