| 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 "base/optional.h" | 8 #include "base/optional.h" |
| 9 #include "cc/output/begin_frame_args.h" | 9 #include "cc/output/begin_frame_args.h" |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 uint32_t /* compositor_frame_sink_id */, | 134 uint32_t /* compositor_frame_sink_id */, |
| 135 base::Optional<cc::CompositorFrame>); | 135 base::Optional<cc::CompositorFrame>); |
| 136 | 136 |
| 137 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, | 137 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, |
| 138 content::SyncCompositorSetSharedMemoryParams, | 138 content::SyncCompositorSetSharedMemoryParams, |
| 139 bool /* success */, | 139 bool /* success */, |
| 140 content::SyncCompositorCommonRendererParams); | 140 content::SyncCompositorCommonRendererParams); |
| 141 | 141 |
| 142 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); | 142 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
| 143 | 143 |
| 144 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, | 144 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_DemandDrawSw, |
| 145 content::SyncCompositorDemandDrawSwParams, | 145 content::SyncCompositorDemandDrawSwParams, |
| 146 bool /* result */, | |
| 147 content::SyncCompositorCommonRendererParams, | 146 content::SyncCompositorCommonRendererParams, |
| 148 cc::CompositorFrame) | 147 base::Optional<cc::CompositorFrameMetadata>) |
| 149 | 148 |
| 150 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_ZoomBy, | 149 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_ZoomBy, |
| 151 float /* delta */, | 150 float /* delta */, |
| 152 gfx::Point /* anchor */, | 151 gfx::Point /* anchor */, |
| 153 content::SyncCompositorCommonRendererParams) | 152 content::SyncCompositorCommonRendererParams) |
| 154 | 153 |
| 155 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetMemoryPolicy, | 154 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetMemoryPolicy, |
| 156 uint32_t /* bytes_limit */); | 155 uint32_t /* bytes_limit */); |
| 157 | 156 |
| 158 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ReclaimResources, | 157 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ReclaimResources, |
| 159 uint32_t /* compositor_frame_sink_id */, | 158 uint32_t /* compositor_frame_sink_id */, |
| 160 cc::ReturnedResourceArray /* resources */); | 159 cc::ReturnedResourceArray /* resources */); |
| 161 | 160 |
| 162 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 161 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
| 163 | 162 |
| 164 // ----------------------------------------------------------------------------- | 163 // ----------------------------------------------------------------------------- |
| 165 // Messages sent from the renderer to the browser. | 164 // Messages sent from the renderer to the browser. |
| 166 | 165 |
| 167 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_CompositorFrameSinkCreated); | 166 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_CompositorFrameSinkCreated); |
| 168 | 167 |
| 169 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 168 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 170 content::SyncCompositorCommonRendererParams) | 169 content::SyncCompositorCommonRendererParams) |
| 171 | 170 |
| 172 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_ReturnFrame, | 171 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_ReturnFrame, |
| 173 uint32_t /* compositor_frame_sink_id */, | 172 uint32_t /* compositor_frame_sink_id */, |
| 174 base::Optional<cc::CompositorFrame>); | 173 base::Optional<cc::CompositorFrame>); |
| OLD | NEW |