Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
nasko
2013/12/20 17:21:05
nit: 2013
awong
2013/12/20 23:53:38
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Allows for sharing of IPC param structures between BrowserPlugin code and | |
| 6 // RenderFrame code. All these should be folded directly back into the IPCs in | |
| 7 // frame_messages.h once BrowserPlugin has been fully converted over to use | |
| 8 // the RenderFrame infrastructure. | |
|
nasko
2013/12/20 17:21:05
nit: Maybe a TODO for easy searching later on?
awong
2013/12/20 23:53:38
Good idea. Also created a bug. Done.
| |
| 9 | |
| 10 #ifndef CONTENT_COMMON_FRAME_PARAM_MACROS_H_ | |
| 11 #define CONTENT_COMMON_FRAME_PARAM_MACROS_H_ | |
| 12 | |
| 13 #include "cc/output/compositor_frame_ack.h" | |
| 14 #include "cc/output/compositor_frame.h" | |
| 15 #include "content/public/common/common_param_traits.h" | |
| 16 #include "ipc/ipc_message_macros.h" | |
| 17 | |
| 18 #undef IPC_MESSAGE_EXPORT | |
| 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
| 20 | |
| 21 IPC_STRUCT_BEGIN(FrameMsg_BuffersSwapped_Params) | |
| 22 IPC_STRUCT_MEMBER(int, gpu_host_id) | |
| 23 IPC_STRUCT_MEMBER(int, gpu_route_id) | |
| 24 IPC_STRUCT_MEMBER(std::string, mailbox_name) | |
| 25 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 26 IPC_STRUCT_END() | |
| 27 | |
| 28 IPC_STRUCT_BEGIN(FrameMsg_CompositorFrameSwapped_Params) | |
| 29 // Specifies which RenderWidget produced the CompositorFrame. | |
| 30 IPC_STRUCT_MEMBER(int, producing_host_id) | |
| 31 IPC_STRUCT_MEMBER(int, producing_route_id) | |
| 32 | |
| 33 IPC_STRUCT_MEMBER(cc::CompositorFrame, frame) | |
| 34 IPC_STRUCT_MEMBER(uint32, output_surface_id) | |
| 35 IPC_STRUCT_END() | |
| 36 | |
| 37 IPC_STRUCT_BEGIN(FrameHostMsg_BuffersSwappedACK_Params) | |
| 38 IPC_STRUCT_MEMBER(int, gpu_host_id) | |
| 39 IPC_STRUCT_MEMBER(int, gpu_route_id) | |
| 40 IPC_STRUCT_MEMBER(std::string, mailbox_name) | |
| 41 IPC_STRUCT_MEMBER(uint32, sync_point) | |
| 42 IPC_STRUCT_END() | |
| 43 | |
| 44 IPC_STRUCT_BEGIN(FrameHostMsg_CompositorFrameSwappedACK_Params) | |
| 45 // Specifies which RenderWidget produced the CompositorFrame. | |
| 46 IPC_STRUCT_MEMBER(int, producing_host_id) | |
| 47 IPC_STRUCT_MEMBER(int, producing_route_id) | |
| 48 | |
| 49 IPC_STRUCT_MEMBER(uint32, output_surface_id) | |
| 50 IPC_STRUCT_MEMBER(cc::CompositorFrameAck, ack) | |
| 51 IPC_STRUCT_END() | |
| 52 | |
| 53 #endif // CONTENT_COMMON_FRAME_PARAM_MACROS_H_ | |
| OLD | NEW |