Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: content/common/android/sync_compositor_messages.h

Issue 2458743002: Switching to base::Optional<CompositorFrame> in Android's synchronous compositor IPC messages (Closed)
Patch Set: Style Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "cc/output/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
9 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "content/common/content_param_traits.h" 12 #include "content/common/content_param_traits.h"
12 #include "content/common/input/input_event_ack_state.h" 13 #include "content/common/input/input_event_ack_state.h"
13 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
15 #include "ui/gfx/geometry/point.h" 16 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/geometry/scroll_offset.h" 17 #include "ui/gfx/geometry/scroll_offset.h"
17 18
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll, 125 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_ComputeScroll,
125 base::TimeTicks); 126 base::TimeTicks);
126 127
127 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_DemandDrawHwAsync, 128 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_DemandDrawHwAsync,
128 content::SyncCompositorDemandDrawHwParams) 129 content::SyncCompositorDemandDrawHwParams)
129 130
130 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw, 131 IPC_SYNC_MESSAGE_ROUTED1_3(SyncCompositorMsg_DemandDrawHw,
131 content::SyncCompositorDemandDrawHwParams, 132 content::SyncCompositorDemandDrawHwParams,
132 content::SyncCompositorCommonRendererParams, 133 content::SyncCompositorCommonRendererParams,
133 uint32_t /* compositor_frame_sink_id */, 134 uint32_t /* compositor_frame_sink_id */,
134 cc::CompositorFrame) 135 base::Optional<cc::CompositorFrame>);
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 18 matching lines...) Expand all
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_ROUTED2(SyncCompositorHostMsg_ReturnFrame,
172 uint32_t /* compositor_frame_sink_id */, 173 uint32_t /* compositor_frame_sink_id */,
173 cc::CompositorFrame); 174 base::Optional<cc::CompositorFrame>);
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_host.cc ('k') | content/renderer/android/synchronous_compositor_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698