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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
13 #include "content/common/input/did_overscroll_params.h" | 13 #include "content/common/input/did_overscroll_params.h" |
14 #include "content/common/input/input_event_ack_state.h" | 14 #include "content/common/input/input_event_ack_state.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 16 #include "third_party/WebKit/public/web/WebInputEvent.h" |
17 #include "ui/gfx/geometry/scroll_offset.h" | 17 #include "ui/gfx/geometry/scroll_offset.h" |
18 | 18 |
19 #ifndef CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 19 #ifndef CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
20 #define CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 20 #define CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 struct SyncCompositorCommonBrowserParams { | 24 struct SyncCompositorCommonBrowserParams { |
25 SyncCompositorCommonBrowserParams(); | 25 SyncCompositorCommonBrowserParams(); |
26 ~SyncCompositorCommonBrowserParams(); | 26 ~SyncCompositorCommonBrowserParams(); |
27 | 27 |
28 uint32_t bytes_limit; | 28 uint32_t bytes_limit; |
29 uint32_t output_surface_id; | |
29 cc::CompositorFrameAck ack; | 30 cc::CompositorFrameAck ack; |
30 gfx::ScrollOffset root_scroll_offset; | 31 gfx::ScrollOffset root_scroll_offset; |
31 bool update_root_scroll_offset; | 32 bool update_root_scroll_offset; |
32 bool begin_frame_source_paused; | 33 bool begin_frame_source_paused; |
33 }; | 34 }; |
34 | 35 |
35 struct SyncCompositorDemandDrawHwParams { | 36 struct SyncCompositorDemandDrawHwParams { |
36 SyncCompositorDemandDrawHwParams(); | 37 SyncCompositorDemandDrawHwParams(); |
37 SyncCompositorDemandDrawHwParams( | 38 SyncCompositorDemandDrawHwParams( |
38 const gfx::Size& surface_size, | 39 const gfx::Size& surface_size, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 90 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
90 | 91 |
91 // Multiply-included message file, hence no include guard. | 92 // Multiply-included message file, hence no include guard. |
92 | 93 |
93 #undef IPC_MESSAGE_EXPORT | 94 #undef IPC_MESSAGE_EXPORT |
94 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 95 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
95 #define IPC_MESSAGE_START SyncCompositorMsgStart | 96 #define IPC_MESSAGE_START SyncCompositorMsgStart |
96 | 97 |
97 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonBrowserParams) | 98 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonBrowserParams) |
98 IPC_STRUCT_TRAITS_MEMBER(bytes_limit) | 99 IPC_STRUCT_TRAITS_MEMBER(bytes_limit) |
100 IPC_STRUCT_TRAITS_MEMBER(output_surface_id) | |
99 IPC_STRUCT_TRAITS_MEMBER(ack) | 101 IPC_STRUCT_TRAITS_MEMBER(ack) |
100 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) | 102 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) |
101 IPC_STRUCT_TRAITS_MEMBER(update_root_scroll_offset) | 103 IPC_STRUCT_TRAITS_MEMBER(update_root_scroll_offset) |
102 IPC_STRUCT_TRAITS_MEMBER(begin_frame_source_paused) | 104 IPC_STRUCT_TRAITS_MEMBER(begin_frame_source_paused) |
103 IPC_STRUCT_TRAITS_END() | 105 IPC_STRUCT_TRAITS_END() |
104 | 106 |
105 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) | 107 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) |
106 IPC_STRUCT_TRAITS_MEMBER(surface_size) | 108 IPC_STRUCT_TRAITS_MEMBER(surface_size) |
107 IPC_STRUCT_TRAITS_MEMBER(transform) | 109 IPC_STRUCT_TRAITS_MEMBER(transform) |
108 IPC_STRUCT_TRAITS_MEMBER(viewport) | 110 IPC_STRUCT_TRAITS_MEMBER(viewport) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 | 148 |
147 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_BeginFrame, | 149 IPC_SYNC_MESSAGE_ROUTED2_1(SyncCompositorMsg_BeginFrame, |
148 content::SyncCompositorCommonBrowserParams, | 150 content::SyncCompositorCommonBrowserParams, |
149 cc::BeginFrameArgs, | 151 cc::BeginFrameArgs, |
150 content::SyncCompositorCommonRendererParams) | 152 content::SyncCompositorCommonRendererParams) |
151 | 153 |
152 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ComputeScroll, | 154 IPC_MESSAGE_ROUTED2(SyncCompositorMsg_ComputeScroll, |
153 content::SyncCompositorCommonBrowserParams, | 155 content::SyncCompositorCommonBrowserParams, |
154 base::TimeTicks); | 156 base::TimeTicks); |
155 | 157 |
156 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_DemandDrawHw, | 158 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawHw, |
157 content::SyncCompositorCommonBrowserParams, | 159 content::SyncCompositorCommonBrowserParams, |
158 content::SyncCompositorDemandDrawHwParams, | 160 content::SyncCompositorDemandDrawHwParams, |
159 content::SyncCompositorCommonRendererParams, | 161 content::SyncCompositorCommonRendererParams, |
162 uint32_t /* output_surface_id */, | |
hush (inactive)
2016/03/08 23:55:49
where is the renderer change that writes output su
hush (inactive)
2016/03/08 23:56:56
nevermind that. Just saw it.
| |
160 cc::CompositorFrame) | 163 cc::CompositorFrame) |
161 | 164 |
162 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_SetSharedMemory, | 165 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_SetSharedMemory, |
163 content::SyncCompositorCommonBrowserParams, | 166 content::SyncCompositorCommonBrowserParams, |
164 content::SyncCompositorSetSharedMemoryParams, | 167 content::SyncCompositorSetSharedMemoryParams, |
165 bool /* success */, | 168 bool /* success */, |
166 content::SyncCompositorCommonRendererParams); | 169 content::SyncCompositorCommonRendererParams); |
167 | 170 |
168 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); | 171 IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
169 | 172 |
170 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, | 173 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, |
171 content::SyncCompositorCommonBrowserParams, | 174 content::SyncCompositorCommonBrowserParams, |
172 content::SyncCompositorDemandDrawSwParams, | 175 content::SyncCompositorDemandDrawSwParams, |
173 bool /* result */, | 176 bool /* result */, |
174 content::SyncCompositorCommonRendererParams, | 177 content::SyncCompositorCommonRendererParams, |
175 cc::CompositorFrame) | 178 cc::CompositorFrame) |
176 | 179 |
177 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState, | 180 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState, |
178 content::SyncCompositorCommonBrowserParams) | 181 content::SyncCompositorCommonBrowserParams) |
179 | 182 |
180 // ----------------------------------------------------------------------------- | 183 // ----------------------------------------------------------------------------- |
181 // Messages sent from the renderer to the browser. | 184 // Messages sent from the renderer to the browser. |
182 | 185 |
183 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 186 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
184 content::SyncCompositorCommonRendererParams) | 187 content::SyncCompositorCommonRendererParams) |
185 | 188 |
186 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, | 189 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, |
187 content::SyncCompositorCommonRendererParams, | 190 content::SyncCompositorCommonRendererParams, |
188 content::DidOverscrollParams) | 191 content::DidOverscrollParams) |
OLD | NEW |