| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/memory/shared_memory_handle.h" | 7 #include "base/memory/shared_memory_handle.h" |
| 8 #include "cc/output/begin_frame_args.h" | 8 #include "cc/output/begin_frame_args.h" |
| 9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 #include "cc/output/compositor_frame_ack.h" | 10 #include "cc/output/compositor_frame_ack.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 IPC_STRUCT_TRAITS_MEMBER(need_animate_scroll) | 126 IPC_STRUCT_TRAITS_MEMBER(need_animate_scroll) |
| 127 IPC_STRUCT_TRAITS_MEMBER(need_invalidate_count) | 127 IPC_STRUCT_TRAITS_MEMBER(need_invalidate_count) |
| 128 IPC_STRUCT_TRAITS_MEMBER(need_begin_frame) | 128 IPC_STRUCT_TRAITS_MEMBER(need_begin_frame) |
| 129 IPC_STRUCT_TRAITS_MEMBER(did_activate_pending_tree_count) | 129 IPC_STRUCT_TRAITS_MEMBER(did_activate_pending_tree_count) |
| 130 IPC_STRUCT_TRAITS_END() | 130 IPC_STRUCT_TRAITS_END() |
| 131 | 131 |
| 132 // Messages sent from the browser to the renderer. | 132 // Messages sent from the browser to the renderer. |
| 133 // Synchronous IPCs are allowed here to the renderer compositor thread. See | 133 // Synchronous IPCs are allowed here to the renderer compositor thread. See |
| 134 // design doc https://goo.gl/Tn81FW and crbug.com/526842 for details. | 134 // design doc https://goo.gl/Tn81FW and crbug.com/526842 for details. |
| 135 | 135 |
| 136 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_HandleInputEvent, | |
| 137 content::SyncCompositorCommonBrowserParams, | |
| 138 IPC::WebInputEventPointer, | |
| 139 content::SyncCompositorCommonRendererParams, | |
| 140 content::InputEventAckState) | |
| 141 | |
| 142 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_BeginFrame, | 136 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_BeginFrame, |
| 143 content::SyncCompositorCommonBrowserParams, | 137 content::SyncCompositorCommonBrowserParams, |
| 144 cc::BeginFrameArgs, | 138 cc::BeginFrameArgs, |
| 145 content::SyncCompositorCommonRendererParams) | 139 content::SyncCompositorCommonRendererParams) |
| 146 | 140 |
| 147 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ComputeScroll, | 141 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ComputeScroll, |
| 148 content::SyncCompositorCommonBrowserParams, | 142 content::SyncCompositorCommonBrowserParams, |
| 149 base::TimeTicks); | 143 base::TimeTicks); |
| 150 | 144 |
| 151 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawHw, | 145 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawHw, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 182 |
| 189 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 183 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
| 190 | 184 |
| 191 // ----------------------------------------------------------------------------- | 185 // ----------------------------------------------------------------------------- |
| 192 // Messages sent from the renderer to the browser. | 186 // Messages sent from the renderer to the browser. |
| 193 | 187 |
| 194 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); | 188 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); |
| 195 | 189 |
| 196 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 190 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 197 content::SyncCompositorCommonRendererParams) | 191 content::SyncCompositorCommonRendererParams) |
| 198 | |
| 199 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, | |
| 200 content::SyncCompositorCommonRendererParams, | |
| 201 content::DidOverscrollParams) | |
| OLD | NEW |