| 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 size_t bytes_limit; | 28 uint32_t bytes_limit; |
| 29 cc::CompositorFrameAck ack; | 29 cc::CompositorFrameAck ack; |
| 30 gfx::ScrollOffset root_scroll_offset; | 30 gfx::ScrollOffset root_scroll_offset; |
| 31 bool update_root_scroll_offset; | 31 bool update_root_scroll_offset; |
| 32 bool begin_frame_source_paused; | 32 bool begin_frame_source_paused; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 struct SyncCompositorDemandDrawHwParams { | 35 struct SyncCompositorDemandDrawHwParams { |
| 36 SyncCompositorDemandDrawHwParams(); | 36 SyncCompositorDemandDrawHwParams(); |
| 37 SyncCompositorDemandDrawHwParams( | 37 SyncCompositorDemandDrawHwParams( |
| 38 const gfx::Size& surface_size, | 38 const gfx::Size& surface_size, |
| 39 const gfx::Transform& transform, | 39 const gfx::Transform& transform, |
| 40 const gfx::Rect& viewport, | 40 const gfx::Rect& viewport, |
| 41 const gfx::Rect& clip, | 41 const gfx::Rect& clip, |
| 42 const gfx::Rect& viewport_rect_for_tile_priority, | 42 const gfx::Rect& viewport_rect_for_tile_priority, |
| 43 const gfx::Transform& transform_for_tile_priority); | 43 const gfx::Transform& transform_for_tile_priority); |
| 44 ~SyncCompositorDemandDrawHwParams(); | 44 ~SyncCompositorDemandDrawHwParams(); |
| 45 | 45 |
| 46 gfx::Size surface_size; | 46 gfx::Size surface_size; |
| 47 gfx::Transform transform; | 47 gfx::Transform transform; |
| 48 gfx::Rect viewport; | 48 gfx::Rect viewport; |
| 49 gfx::Rect clip; | 49 gfx::Rect clip; |
| 50 gfx::Rect viewport_rect_for_tile_priority; | 50 gfx::Rect viewport_rect_for_tile_priority; |
| 51 gfx::Transform transform_for_tile_priority; | 51 gfx::Transform transform_for_tile_priority; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 struct SyncCompositorSetSharedMemoryParams { | 54 struct SyncCompositorSetSharedMemoryParams { |
| 55 SyncCompositorSetSharedMemoryParams(); | 55 SyncCompositorSetSharedMemoryParams(); |
| 56 | 56 |
| 57 size_t buffer_size; | 57 uint32_t buffer_size; |
| 58 base::SharedMemoryHandle shm_handle; | 58 base::SharedMemoryHandle shm_handle; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 struct SyncCompositorDemandDrawSwParams { | 61 struct SyncCompositorDemandDrawSwParams { |
| 62 SyncCompositorDemandDrawSwParams(); | 62 SyncCompositorDemandDrawSwParams(); |
| 63 ~SyncCompositorDemandDrawSwParams(); | 63 ~SyncCompositorDemandDrawSwParams(); |
| 64 | 64 |
| 65 gfx::Size size; | 65 gfx::Size size; |
| 66 gfx::Rect clip; | 66 gfx::Rect clip; |
| 67 gfx::Transform transform; | 67 gfx::Transform transform; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // ----------------------------------------------------------------------------- | 180 // ----------------------------------------------------------------------------- |
| 181 // Messages sent from the renderer to the browser. | 181 // Messages sent from the renderer to the browser. |
| 182 | 182 |
| 183 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, | 183 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, |
| 184 content::SyncCompositorCommonRendererParams) | 184 content::SyncCompositorCommonRendererParams) |
| 185 | 185 |
| 186 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, | 186 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, |
| 187 content::SyncCompositorCommonRendererParams, | 187 content::SyncCompositorCommonRendererParams, |
| 188 content::DidOverscrollParams) | 188 content::DidOverscrollParams) |
| OLD | NEW |