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_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) | 164 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) |
165 // Tells the GPU process that the browser process has finished resizing the | 165 // Tells the GPU process that the browser process has finished resizing the |
166 // view. | 166 // view. |
167 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, | 167 IPC_MESSAGE_CONTROL2(GpuMsg_ResizeViewACK, |
168 int32 /* renderer_id */, | 168 int32 /* renderer_id */, |
169 int32 /* command_buffer_id */) | 169 int32 /* command_buffer_id */) |
170 #elif defined(OS_MACOSX) | 170 #elif defined(OS_MACOSX) |
171 // Tells the GPU process that the browser process handled the swap | 171 // Tells the GPU process that the browser process handled the swap |
172 // buffers request with the given number. Note that it is possible | 172 // buffers request with the given number. Note that it is possible |
173 // for the browser process to coalesce frames; it is not guaranteed | 173 // for the browser process to coalesce frames; it is not guaranteed |
174 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message | 174 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 // Message from GPU to add a GPU log message to the about:gpu page. | 247 // Message from GPU to add a GPU log message to the about:gpu page. |
248 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 248 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
249 int /*severity*/, | 249 int /*severity*/, |
250 std::string /* header */, | 250 std::string /* header */, |
251 std::string /* message */) | 251 std::string /* message */) |
252 | 252 |
253 // Response from GPU to a GpuMsg_Synchronize message. | 253 // Response from GPU to a GpuMsg_Synchronize message. |
254 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) | 254 IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) |
255 | 255 |
256 #if defined(OS_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) | 256 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) |
257 // Resize the window that is being drawn into. It's important that this | 257 // Resize the window that is being drawn into. It's important that this |
258 // resize be synchronized with the swapping of the front and back buffers. | 258 // resize be synchronized with the swapping of the front and back buffers. |
259 IPC_MESSAGE_CONTROL4(GpuHostMsg_ResizeView, | 259 IPC_MESSAGE_CONTROL4(GpuHostMsg_ResizeView, |
260 int32 /* renderer_id */, | 260 int32 /* renderer_id */, |
261 int32 /* render_view_id */, | 261 int32 /* render_view_id */, |
262 int32 /* command_buffer_route_id */, | 262 int32 /* command_buffer_route_id */, |
263 gfx::Size /* size */) | 263 gfx::Size /* size */) |
264 #elif defined(OS_MACOSX) | 264 #elif defined(OS_MACOSX) |
265 // This message, used on Mac OS X 10.6 and later (where IOSurface is | 265 // This message, used on Mac OS X 10.6 and later (where IOSurface is |
266 // supported), is sent from the GPU process to the browser to indicate that a | 266 // supported), is sent from the GPU process to the browser to indicate that a |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 628 |
629 // Confirm decoder has been aborted. | 629 // Confirm decoder has been aborted. |
630 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 630 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
631 | 631 |
632 // Decoder has faced end of stream marker in the stream. | 632 // Decoder has faced end of stream marker in the stream. |
633 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 633 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
634 | 634 |
635 // Video decoder has encountered an error. | 635 // Video decoder has encountered an error. |
636 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 636 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
637 uint32) /* Error ID */ | 637 uint32) /* Error ID */ |
OLD | NEW |