| 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 #ifndef CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| 6 #define CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| 7 |
| 5 #include <stddef.h> | 8 #include <stddef.h> |
| 6 | 9 |
| 7 #include "base/memory/shared_memory_handle.h" | 10 #include "base/memory/shared_memory_handle.h" |
| 8 #include "base/optional.h" | 11 #include "base/optional.h" |
| 9 #include "cc/output/begin_frame_args.h" | 12 #include "cc/output/begin_frame_args.h" |
| 10 #include "cc/output/compositor_frame.h" | 13 #include "cc/output/compositor_frame.h" |
| 11 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 12 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
| 13 #include "content/common/input/input_event_ack_state.h" | 16 #include "content/common/input/input_event_ack_state.h" |
| 14 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 15 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 16 #include "ui/gfx/geometry/point.h" | 19 #include "ui/gfx/geometry/point.h" |
| 17 #include "ui/gfx/geometry/scroll_offset.h" | 20 #include "ui/gfx/geometry/scroll_offset.h" |
| 18 | 21 |
| 19 #ifndef CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 22 #ifndef INTERNAL_CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| 20 #define CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 23 #define INTERNAL_CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| 21 | 24 |
| 22 namespace content { | 25 namespace content { |
| 23 | 26 |
| 24 struct SyncCompositorDemandDrawHwParams { | 27 struct SyncCompositorDemandDrawHwParams { |
| 25 SyncCompositorDemandDrawHwParams(); | 28 SyncCompositorDemandDrawHwParams(); |
| 26 SyncCompositorDemandDrawHwParams( | 29 SyncCompositorDemandDrawHwParams( |
| 27 const gfx::Size& viewport_size, | 30 const gfx::Size& viewport_size, |
| 28 const gfx::Rect& viewport_rect_for_tile_priority, | 31 const gfx::Rect& viewport_rect_for_tile_priority, |
| 29 const gfx::Transform& transform_for_tile_priority); | 32 const gfx::Transform& transform_for_tile_priority); |
| 30 ~SyncCompositorDemandDrawHwParams(); | 33 ~SyncCompositorDemandDrawHwParams(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 float page_scale_factor = 0.f; | 71 float page_scale_factor = 0.f; |
| 69 float min_page_scale_factor = 0.f; | 72 float min_page_scale_factor = 0.f; |
| 70 float max_page_scale_factor = 0.f; | 73 float max_page_scale_factor = 0.f; |
| 71 bool need_animate_scroll = false; | 74 bool need_animate_scroll = false; |
| 72 uint32_t need_invalidate_count = 0u; | 75 uint32_t need_invalidate_count = 0u; |
| 73 uint32_t did_activate_pending_tree_count = 0u; | 76 uint32_t did_activate_pending_tree_count = 0u; |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 } // namespace content | 79 } // namespace content |
| 77 | 80 |
| 78 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ | 81 #endif // INTERNAL_CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| 79 | 82 |
| 80 // Multiply-included message file, hence no include guard. | 83 // Multiply-included message file, hence no include guard. |
| 81 | 84 |
| 82 #undef IPC_MESSAGE_EXPORT | 85 #undef IPC_MESSAGE_EXPORT |
| 83 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 86 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 84 #define IPC_MESSAGE_START SyncCompositorMsgStart | 87 #define IPC_MESSAGE_START SyncCompositorMsgStart |
| 85 | 88 |
| 86 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) | 89 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) |
| 87 IPC_STRUCT_TRAITS_MEMBER(viewport_size) | 90 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
| 88 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority) | 91 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // Messages sent from the renderer to the browser. | 167 // Messages sent from the renderer to the browser. |
| 165 | 168 |
| 166 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_LayerTreeFrameSinkCreated); | 169 IPC_MESSAGE_ROUTED0(SyncCompositorHostMsg_LayerTreeFrameSinkCreated); |
| 167 | 170 |
| 168 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 171 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 169 content::SyncCompositorCommonRendererParams) | 172 content::SyncCompositorCommonRendererParams) |
| 170 | 173 |
| 171 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_ReturnFrame, | 174 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_ReturnFrame, |
| 172 uint32_t /* layer_tree_frame_sink_id */, | 175 uint32_t /* layer_tree_frame_sink_id */, |
| 173 base::Optional<cc::CompositorFrame>); | 176 base::Optional<cc::CompositorFrame>); |
| 177 |
| 178 #endif // CONTENT_COMMON_ANDROID_SYNC_COMPOSITOR_MESSAGES_H_ |
| OLD | NEW |