OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 IPC_STRUCT_MEMBER(std::vector<int>, attribs) | 39 IPC_STRUCT_MEMBER(std::vector<int>, attribs) |
40 IPC_STRUCT_MEMBER(GURL, active_url) | 40 IPC_STRUCT_MEMBER(GURL, active_url) |
41 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) | 41 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) |
42 IPC_STRUCT_END() | 42 IPC_STRUCT_END() |
43 | 43 |
44 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) | 44 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) |
45 IPC_STRUCT_MEMBER(int32, surface_id) | 45 IPC_STRUCT_MEMBER(int32, surface_id) |
46 IPC_STRUCT_MEMBER(int32, width) | 46 IPC_STRUCT_MEMBER(int32, width) |
47 IPC_STRUCT_MEMBER(int32, height) | 47 IPC_STRUCT_MEMBER(int32, height) |
48 IPC_STRUCT_MEMBER(uint64, surface_handle) | 48 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 49 IPC_STRUCT_MEMBER(std::vector<signed char>, mailbox_name) |
49 IPC_STRUCT_MEMBER(int32, route_id) | 50 IPC_STRUCT_MEMBER(int32, route_id) |
50 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
51 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 52 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
52 IPC_STRUCT_MEMBER(bool, create_transport_dib) | 53 IPC_STRUCT_MEMBER(bool, create_transport_dib) |
53 #endif | 54 #endif |
54 IPC_STRUCT_END() | 55 IPC_STRUCT_END() |
55 | 56 |
56 #undef IPC_MESSAGE_EXPORT | 57 #undef IPC_MESSAGE_EXPORT |
57 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 58 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
58 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 59 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
59 IPC_STRUCT_MEMBER(int32, surface_id) | 60 IPC_STRUCT_MEMBER(int32, surface_id) |
60 IPC_STRUCT_MEMBER(uint64, surface_handle) | 61 IPC_STRUCT_MEMBER(uint64, surface_handle) |
61 IPC_STRUCT_MEMBER(int32, route_id) | 62 IPC_STRUCT_MEMBER(int32, route_id) |
62 IPC_STRUCT_MEMBER(gfx::Size, size) | 63 IPC_STRUCT_MEMBER(gfx::Size, size) |
63 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
64 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 65 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
65 #endif | 66 #endif |
66 IPC_STRUCT_MEMBER(uint32, protection_state_id) | |
67 IPC_STRUCT_MEMBER(bool, skip_ack) | |
68 IPC_STRUCT_END() | 67 IPC_STRUCT_END() |
69 #undef IPC_MESSAGE_EXPORT | 68 #undef IPC_MESSAGE_EXPORT |
70 #define IPC_MESSAGE_EXPORT | 69 #define IPC_MESSAGE_EXPORT |
71 | 70 |
72 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) | 71 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) |
73 IPC_STRUCT_MEMBER(int32, surface_id) | 72 IPC_STRUCT_MEMBER(int32, surface_id) |
74 IPC_STRUCT_MEMBER(uint64, surface_handle) | 73 IPC_STRUCT_MEMBER(uint64, surface_handle) |
75 IPC_STRUCT_MEMBER(int32, route_id) | 74 IPC_STRUCT_MEMBER(int32, route_id) |
76 IPC_STRUCT_MEMBER(int, x) | 75 IPC_STRUCT_MEMBER(int, x) |
77 IPC_STRUCT_MEMBER(int, y) | 76 IPC_STRUCT_MEMBER(int, y) |
78 IPC_STRUCT_MEMBER(int, width) | 77 IPC_STRUCT_MEMBER(int, width) |
79 IPC_STRUCT_MEMBER(int, height) | 78 IPC_STRUCT_MEMBER(int, height) |
80 IPC_STRUCT_MEMBER(gfx::Size, surface_size) | 79 IPC_STRUCT_MEMBER(gfx::Size, surface_size) |
81 #if defined(OS_MACOSX) | 80 #if defined(OS_MACOSX) |
82 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 81 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
83 #endif | 82 #endif |
84 IPC_STRUCT_MEMBER(uint32, protection_state_id) | |
85 IPC_STRUCT_END() | 83 IPC_STRUCT_END() |
86 | 84 |
87 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) | 85 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) |
88 IPC_STRUCT_MEMBER(int32, surface_id) | 86 IPC_STRUCT_MEMBER(int32, surface_id) |
89 IPC_STRUCT_MEMBER(uint64, identifier) | 87 IPC_STRUCT_MEMBER(uint64, identifier) |
90 IPC_STRUCT_MEMBER(int32, route_id) | 88 IPC_STRUCT_MEMBER(int32, route_id) |
91 #if defined(OS_MACOSX) | 89 #if defined(OS_MACOSX) |
92 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 90 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
93 #endif | 91 #endif |
94 IPC_STRUCT_END() | 92 IPC_STRUCT_END() |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 IPC_STRUCT_TRAITS_BEGIN(content::GpuMemoryAllocationForRenderer) | 175 IPC_STRUCT_TRAITS_BEGIN(content::GpuMemoryAllocationForRenderer) |
178 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 176 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
179 IPC_STRUCT_TRAITS_MEMBER(have_backbuffer_when_not_visible) | 177 IPC_STRUCT_TRAITS_MEMBER(have_backbuffer_when_not_visible) |
180 IPC_STRUCT_TRAITS_END() | 178 IPC_STRUCT_TRAITS_END() |
181 | 179 |
182 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 180 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
183 IPC_STRUCT_TRAITS_MEMBER(handle) | 181 IPC_STRUCT_TRAITS_MEMBER(handle) |
184 IPC_STRUCT_TRAITS_MEMBER(transport) | 182 IPC_STRUCT_TRAITS_MEMBER(transport) |
185 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) | 183 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) |
186 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) | 184 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) |
187 IPC_STRUCT_TRAITS_MEMBER(parent_context_id) | |
188 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0]) | |
189 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1]) | |
190 IPC_STRUCT_TRAITS_MEMBER(sync_point) | |
191 IPC_STRUCT_TRAITS_END() | 185 IPC_STRUCT_TRAITS_END() |
192 | 186 |
193 IPC_ENUM_TRAITS(content::CauseForGpuLaunch) | 187 IPC_ENUM_TRAITS(content::CauseForGpuLaunch) |
194 IPC_ENUM_TRAITS(gfx::GpuPreference) | 188 IPC_ENUM_TRAITS(gfx::GpuPreference) |
195 IPC_ENUM_TRAITS(gpu::error::ContextLostReason) | 189 IPC_ENUM_TRAITS(gpu::error::ContextLostReason) |
196 | 190 |
197 IPC_ENUM_TRAITS(media::VideoCodecProfile) | 191 IPC_ENUM_TRAITS(media::VideoCodecProfile) |
198 | 192 |
199 IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats) | 193 IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats) |
200 IPC_STRUCT_TRAITS_MEMBER(global_texture_upload_count) | 194 IPC_STRUCT_TRAITS_MEMBER(global_texture_upload_count) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 254 |
261 // Tells the GPU process' memory manager how many visible windows there are, so | 255 // Tells the GPU process' memory manager how many visible windows there are, so |
262 // it can partition memory amongst them. | 256 // it can partition memory amongst them. |
263 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount, | 257 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount, |
264 uint32 /* window_count */) | 258 uint32 /* window_count */) |
265 | 259 |
266 // Tells the GPU process that the browser process has finished resizing the | 260 // Tells the GPU process that the browser process has finished resizing the |
267 // view. | 261 // view. |
268 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) | 262 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) |
269 | 263 |
270 // Tells the GPU process if it's worth suggesting release of the front surface. | |
271 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected, | |
272 bool /* is_protected */, | |
273 uint32 /* protection_state_id */) | |
274 | |
275 // Tells the GPU process that the browser process has handled the swap | 264 // Tells the GPU process that the browser process has handled the swap |
276 // buffers or post sub-buffer request. A non-zero sync point means | 265 // buffers or post sub-buffer request. A non-zero sync point means |
277 // that we should wait for the sync point. | 266 // that we should wait for the sync point. |
278 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, | 267 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, |
279 uint32 /* sync_point */) | 268 uint32 /* sync_point */) |
280 | 269 |
281 // Tells the GPU process to remove all contexts. | 270 // Tells the GPU process to remove all contexts. |
282 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 271 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
283 | 272 |
284 // Tells the GPU process to crash. | 273 // Tells the GPU process to crash. |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 | 638 |
650 // Confirm decoder has been flushed. | 639 // Confirm decoder has been flushed. |
651 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 640 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
652 | 641 |
653 // Confirm decoder has been reset. | 642 // Confirm decoder has been reset. |
654 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 643 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
655 | 644 |
656 // Video decoder has encountered an error. | 645 // Video decoder has encountered an error. |
657 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 646 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
658 uint32) /* Error ID */ | 647 uint32) /* Error ID */ |
OLD | NEW |