| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 IPC_SYNC_MESSAGE_ROUTED0_1(SyncCompositorMsg_SynchronizeRendererState, | 123 IPC_SYNC_MESSAGE_ROUTED0_1(SyncCompositorMsg_SynchronizeRendererState, |
| 124 content::SyncCompositorCommonRendererParams) | 124 content::SyncCompositorCommonRendererParams) |
| 125 | 125 |
| 126 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, | 126 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, |
| 127 base::TimeTicks); | 127 base::TimeTicks); |
| 128 | 128 |
| 129 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, | 129 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, |
| 130 content::SyncCompositorDemandDrawHwParams, | 130 content::SyncCompositorDemandDrawHwParams, |
| 131 content::SyncCompositorCommonRendererParams, | 131 content::SyncCompositorCommonRendererParams, |
| 132 uint32_t /* output_surface_id */, | 132 uint32_t /* output_surface_id */, |
| 133 cc::CompositorFrame) | 133 std::unique_ptr<cc::CompositorFrame>) |
| 134 | 134 |
| 135 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, | 135 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, |
| 136 content::SyncCompositorSetSharedMemoryParams, | 136 content::SyncCompositorSetSharedMemoryParams, |
| 137 bool /* success */, | 137 bool /* success */, |
| 138 content::SyncCompositorCommonRendererParams); | 138 content::SyncCompositorCommonRendererParams); |
| 139 | 139 |
| 140 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); | 140 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
| 141 | 141 |
| 142 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, | 142 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, |
| 143 content::SyncCompositorDemandDrawSwParams, | 143 content::SyncCompositorDemandDrawSwParams, |
| 144 bool /* result */, | 144 bool /* result */, |
| 145 content::SyncCompositorCommonRendererParams, | 145 content::SyncCompositorCommonRendererParams, |
| 146 cc::CompositorFrame) | 146 std::unique_ptr<cc::CompositorFrame>) |
| 147 | 147 |
| 148 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_ZoomBy, | 148 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_ZoomBy, |
| 149 float /* delta */, | 149 float /* delta */, |
| 150 gfx::Point /* anchor */, | 150 gfx::Point /* anchor */, |
| 151 content::SyncCompositorCommonRendererParams) | 151 content::SyncCompositorCommonRendererParams) |
| 152 | 152 |
| 153 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetMemoryPolicy, | 153 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetMemoryPolicy, |
| 154 uint32_t /* bytes_limit */); | 154 uint32_t /* bytes_limit */); |
| 155 | 155 |
| 156 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ReclaimResources, | 156 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ReclaimResources, |
| 157 uint32_t /* output_surface_id */, | 157 uint32_t /* output_surface_id */, |
| 158 cc::CompositorFrameAck); | 158 cc::CompositorFrameAck); |
| 159 | 159 |
| 160 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 160 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
| 161 | 161 |
| 162 // ----------------------------------------------------------------------------- | 162 // ----------------------------------------------------------------------------- |
| 163 // Messages sent from the renderer to the browser. | 163 // Messages sent from the renderer to the browser. |
| 164 | 164 |
| 165 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); | 165 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); |
| 166 | 166 |
| 167 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 167 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 168 content::SyncCompositorCommonRendererParams) | 168 content::SyncCompositorCommonRendererParams) |
| OLD | NEW |