Chromium Code Reviews| 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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 SyncCompositorMsg_SynchronizeRendererState, | 120 SyncCompositorMsg_SynchronizeRendererState, |
| 121 std::vector<int> /* routing ids*/, | 121 std::vector<int> /* routing ids*/, |
| 122 std::vector<content::SyncCompositorCommonRendererParams>) | 122 std::vector<content::SyncCompositorCommonRendererParams>) |
| 123 | 123 |
| 124 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, | 124 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, |
| 125 base::TimeTicks); | 125 base::TimeTicks); |
| 126 | 126 |
| 127 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_DemandDrawHwAsync, | 127 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_DemandDrawHwAsync, |
| 128 content::SyncCompositorDemandDrawHwParams) | 128 content::SyncCompositorDemandDrawHwParams) |
| 129 | 129 |
| 130 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, | 130 IPC_SYNC_MESSAGE_ROUTED1_4(SyncCompositorMsg_DemandDrawHw, |
| 131 content::SyncCompositorDemandDrawHwParams, | 131 content::SyncCompositorDemandDrawHwParams, |
| 132 content::SyncCompositorCommonRendererParams, | 132 content::SyncCompositorCommonRendererParams, |
| 133 uint32_t /* compositor_frame_sink_id */, | 133 uint32_t /* compositor_frame_sink_id */, |
| 134 cc::CompositorFrame) | 134 cc::CompositorFrame, |
|
boliu
2016/10/27 18:11:46
might be easier to replace this with base::Optiona
| |
| 135 bool /* has_swapped */) | |
| 135 | 136 |
| 136 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, | 137 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, |
| 137 content::SyncCompositorSetSharedMemoryParams, | 138 content::SyncCompositorSetSharedMemoryParams, |
| 138 bool /* success */, | 139 bool /* success */, |
| 139 content::SyncCompositorCommonRendererParams); | 140 content::SyncCompositorCommonRendererParams); |
| 140 | 141 |
| 141 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); | 142 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
| 142 | 143 |
| 143 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, | 144 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, |
| 144 content::SyncCompositorDemandDrawSwParams, | 145 content::SyncCompositorDemandDrawSwParams, |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 161 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 162 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
| 162 | 163 |
| 163 // ----------------------------------------------------------------------------- | 164 // ----------------------------------------------------------------------------- |
| 164 // Messages sent from the renderer to the browser. | 165 // Messages sent from the renderer to the browser. |
| 165 | 166 |
| 166 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_CompositorFrameSinkCreated); | 167 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_CompositorFrameSinkCreated); |
| 167 | 168 |
| 168 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 169 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 169 content::SyncCompositorCommonRendererParams) | 170 content::SyncCompositorCommonRendererParams) |
| 170 | 171 |
| 171 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_ReturnFrame, | 172 IPC_MESSAGE_ROUTED3(SyncCompositorHostMsg_ReturnFrame, |
| 172 uint32_t /* compositor_frame_sink_id */, | 173 uint32_t /* compositor_frame_sink_id */, |
| 173 cc::CompositorFrame); | 174 cc::CompositorFrame, |
| 175 bool /* has_swapped */); | |
| OLD | NEW |