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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 // Messages sent from the browser to the renderer. | 118 // Messages sent from the browser to the renderer. |
| 119 // Synchronous IPCs are allowed here to the renderer compositor thread. See | 119 // Synchronous IPCs are allowed here to the renderer compositor thread. See |
| 120 // design doc https://goo.gl/Tn81FW and crbug.com/526842 for details. | 120 // design doc https://goo.gl/Tn81FW and crbug.com/526842 for details. |
| 121 | 121 |
| 122 IPC_SYNC_MESSAGE_ROUTED0_1(SyncCompositorMsg_SynchronizeRendererState, | 122 IPC_SYNC_MESSAGE_ROUTED0_1(SyncCompositorMsg_SynchronizeRendererState, |
| 123 content::SyncCompositorCommonRendererParams) | 123 content::SyncCompositorCommonRendererParams) |
| 124 | 124 |
| 125 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, | 125 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, |
| 126 base::TimeTicks); | 126 base::TimeTicks); |
| 127 | 127 |
| 128 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, | 128 // IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, |
| 129 content::SyncCompositorDemandDrawHwParams, | 129 // content::SyncCompositorDemandDrawHwParams, |
| 130 content::SyncCompositorCommonRendererParams, | 130 // content::SyncCompositorCommonRendererParams, |
| 131 uint32_t /* output_surface_id */, | 131 // uint32_t /* output_surface_id */, |
| 132 cc::CompositorFrame) | 132 // cc::CompositorFrame) |
| 133 | |
| 134 IPC_MESSAGE_ROUTED1(CompositorMsg_DemandDrawHw, | |
| 135 content::SyncCompositorDemandDrawHwParams); | |
| 133 | 136 |
| 134 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, | 137 IPC_SYNC_MESSAGE_ROUTED1_2(SyncCompositorMsg_SetSharedMemory, |
| 135 content::SyncCompositorSetSharedMemoryParams, | 138 content::SyncCompositorSetSharedMemoryParams, |
| 136 bool /* success */, | 139 bool /* success */, |
| 137 content::SyncCompositorCommonRendererParams); | 140 content::SyncCompositorCommonRendererParams); |
| 138 | 141 |
| 139 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); | 142 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
| 140 | 143 |
| 141 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, | 144 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawSw, |
| 142 content::SyncCompositorDemandDrawSwParams, | 145 content::SyncCompositorDemandDrawSwParams, |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 158 | 161 |
| 159 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 162 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
| 160 | 163 |
| 161 // ----------------------------------------------------------------------------- | 164 // ----------------------------------------------------------------------------- |
| 162 // Messages sent from the renderer to the browser. | 165 // Messages sent from the renderer to the browser. |
| 163 | 166 |
| 164 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); | 167 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); |
| 165 | 168 |
| 166 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 169 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 167 content::SyncCompositorCommonRendererParams) | 170 content::SyncCompositorCommonRendererParams) |
| 171 | |
| 172 IPC_MESSAGE_ROUTED3(CompositorHostMsg_Frame, | |
| 173 content::SyncCompositorCommonRendererParams, | |
|
boliu
2016/07/24 17:33:54
Don't need this. CommonRendererParams are sent asy
ojars
2016/07/28 22:53:55
Done.
| |
| 174 uint32_t /* output_surface_id */, | |
| 175 cc::CompositorFrame); | |
| OLD | NEW |