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" |
11 #include "content/common/content_param_traits.h" | 11 #include "content/common/content_param_traits.h" |
12 #include "content/common/input/did_overscroll_params.h" | 12 #include "content/common/input/did_overscroll_params.h" |
13 #include "content/common/input/input_event_ack_state.h" | 13 #include "content/common/input/input_event_ack_state.h" |
14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
15 #include "third_party/WebKit/public/web/WebInputEvent.h" | 15 #include "third_party/WebKit/public/web/WebInputEvent.h" |
16 #include "ui/gfx/geometry/point.h" | 16 #include "ui/gfx/geometry/point.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 SyncCompositorDemandDrawHwParams { | 24 struct SyncCompositorDemandDrawHwParams { |
25 SyncCompositorDemandDrawHwParams(); | 25 SyncCompositorDemandDrawHwParams(); |
26 SyncCompositorDemandDrawHwParams( | 26 SyncCompositorDemandDrawHwParams( |
27 const gfx::Size& surface_size, | 27 const gfx::Size& viewport_size, |
28 const gfx::Transform& transform, | |
29 const gfx::Rect& viewport, | |
30 const gfx::Rect& clip, | |
31 const gfx::Rect& viewport_rect_for_tile_priority, | 28 const gfx::Rect& viewport_rect_for_tile_priority, |
32 const gfx::Transform& transform_for_tile_priority); | 29 const gfx::Transform& transform_for_tile_priority); |
33 ~SyncCompositorDemandDrawHwParams(); | 30 ~SyncCompositorDemandDrawHwParams(); |
34 | 31 |
35 gfx::Size surface_size; | 32 gfx::Size viewport_size; |
36 gfx::Transform transform; | |
37 gfx::Rect viewport; | |
38 gfx::Rect clip; | 33 gfx::Rect clip; |
39 gfx::Rect viewport_rect_for_tile_priority; | 34 gfx::Rect viewport_rect_for_tile_priority; |
40 gfx::Transform transform_for_tile_priority; | 35 gfx::Transform transform_for_tile_priority; |
41 }; | 36 }; |
42 | 37 |
43 struct SyncCompositorSetSharedMemoryParams { | 38 struct SyncCompositorSetSharedMemoryParams { |
44 SyncCompositorSetSharedMemoryParams(); | 39 SyncCompositorSetSharedMemoryParams(); |
45 | 40 |
46 uint32_t buffer_size; | 41 uint32_t buffer_size; |
47 base::SharedMemoryHandle shm_handle; | 42 base::SharedMemoryHandle shm_handle; |
(...skipping 28 matching lines...) Expand all Loading... |
76 | 71 |
77 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 72 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
78 | 73 |
79 // Multiply-included message file, hence no include guard. | 74 // Multiply-included message file, hence no include guard. |
80 | 75 |
81 #undef IPC_MESSAGE_EXPORT | 76 #undef IPC_MESSAGE_EXPORT |
82 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 77 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
83 #define IPC_MESSAGE_START SyncCompositorMsgStart | 78 #define IPC_MESSAGE_START SyncCompositorMsgStart |
84 | 79 |
85 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) | 80 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) |
86 IPC_STRUCT_TRAITS_MEMBER(surface_size) | 81 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
87 IPC_STRUCT_TRAITS_MEMBER(transform) | |
88 IPC_STRUCT_TRAITS_MEMBER(viewport) | |
89 IPC_STRUCT_TRAITS_MEMBER(clip) | |
90 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority) | 82 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority) |
91 IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority) | 83 IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority) |
92 IPC_STRUCT_TRAITS_END() | 84 IPC_STRUCT_TRAITS_END() |
93 | 85 |
94 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorSetSharedMemoryParams) | 86 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorSetSharedMemoryParams) |
95 IPC_STRUCT_TRAITS_MEMBER(buffer_size) | 87 IPC_STRUCT_TRAITS_MEMBER(buffer_size) |
96 IPC_STRUCT_TRAITS_MEMBER(shm_handle) | 88 IPC_STRUCT_TRAITS_MEMBER(shm_handle) |
97 IPC_STRUCT_TRAITS_END() | 89 IPC_STRUCT_TRAITS_END() |
98 | 90 |
99 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawSwParams) | 91 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawSwParams) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 150 |
159 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); | 151 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_SetScroll, gfx::ScrollOffset); |
160 | 152 |
161 // ----------------------------------------------------------------------------- | 153 // ----------------------------------------------------------------------------- |
162 // Messages sent from the renderer to the browser. | 154 // Messages sent from the renderer to the browser. |
163 | 155 |
164 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); | 156 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_OutputSurfaceCreated); |
165 | 157 |
166 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 158 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
167 content::SyncCompositorCommonRendererParams) | 159 content::SyncCompositorCommonRendererParams) |
OLD | NEW |