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

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

Issue 1469773002: sync compositor: Software draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove zero Created 5 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 "base/memory/shared_memory_handle.h"
5 #include "cc/output/begin_frame_args.h" 6 #include "cc/output/begin_frame_args.h"
6 #include "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
7 #include "cc/output/compositor_frame_ack.h" 8 #include "cc/output/compositor_frame_ack.h"
8 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 10 #include "content/common/content_param_traits.h"
10 #include "content/common/input/did_overscroll_params.h" 11 #include "content/common/input/did_overscroll_params.h"
11 #include "content/common/input/input_event_ack_state.h" 12 #include "content/common/input/input_event_ack_state.h"
12 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
13 #include "third_party/WebKit/public/web/WebInputEvent.h" 14 #include "third_party/WebKit/public/web/WebInputEvent.h"
14 #include "ui/gfx/geometry/scroll_offset.h" 15 #include "ui/gfx/geometry/scroll_offset.h"
(...skipping 24 matching lines...) Expand all
39 ~SyncCompositorDemandDrawHwParams(); 40 ~SyncCompositorDemandDrawHwParams();
40 41
41 gfx::Size surface_size; 42 gfx::Size surface_size;
42 gfx::Transform transform; 43 gfx::Transform transform;
43 gfx::Rect viewport; 44 gfx::Rect viewport;
44 gfx::Rect clip; 45 gfx::Rect clip;
45 gfx::Rect viewport_rect_for_tile_priority; 46 gfx::Rect viewport_rect_for_tile_priority;
46 gfx::Transform transform_for_tile_priority; 47 gfx::Transform transform_for_tile_priority;
47 }; 48 };
48 49
50 struct SyncCompositorDemandDrawSwParams {
51 SyncCompositorDemandDrawSwParams();
52 ~SyncCompositorDemandDrawSwParams();
53
54 gfx::Size size;
55 gfx::Rect clip;
56 gfx::Transform transform;
57 base::SharedMemoryHandle shm_handle;
58 };
59
49 struct SyncCompositorCommonRendererParams { 60 struct SyncCompositorCommonRendererParams {
50 SyncCompositorCommonRendererParams(); 61 SyncCompositorCommonRendererParams();
51 ~SyncCompositorCommonRendererParams(); 62 ~SyncCompositorCommonRendererParams();
52 63
53 unsigned int version; 64 unsigned int version;
54 gfx::ScrollOffset total_scroll_offset; 65 gfx::ScrollOffset total_scroll_offset;
55 gfx::ScrollOffset max_scroll_offset; 66 gfx::ScrollOffset max_scroll_offset;
56 gfx::SizeF scrollable_size; 67 gfx::SizeF scrollable_size;
57 float page_scale_factor; 68 float page_scale_factor;
58 float min_page_scale_factor; 69 float min_page_scale_factor;
(...skipping 22 matching lines...) Expand all
81 92
82 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) 93 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams)
83 IPC_STRUCT_TRAITS_MEMBER(surface_size) 94 IPC_STRUCT_TRAITS_MEMBER(surface_size)
84 IPC_STRUCT_TRAITS_MEMBER(transform) 95 IPC_STRUCT_TRAITS_MEMBER(transform)
85 IPC_STRUCT_TRAITS_MEMBER(viewport) 96 IPC_STRUCT_TRAITS_MEMBER(viewport)
86 IPC_STRUCT_TRAITS_MEMBER(clip) 97 IPC_STRUCT_TRAITS_MEMBER(clip)
87 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority) 98 IPC_STRUCT_TRAITS_MEMBER(viewport_rect_for_tile_priority)
88 IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority) 99 IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority)
89 IPC_STRUCT_TRAITS_END() 100 IPC_STRUCT_TRAITS_END()
90 101
102 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawSwParams)
103 IPC_STRUCT_TRAITS_MEMBER(size)
104 IPC_STRUCT_TRAITS_MEMBER(clip)
105 IPC_STRUCT_TRAITS_MEMBER(transform)
106 IPC_STRUCT_TRAITS_MEMBER(shm_handle)
107 IPC_STRUCT_TRAITS_END()
108
91 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonRendererParams) 109 IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonRendererParams)
92 IPC_STRUCT_TRAITS_MEMBER(version) 110 IPC_STRUCT_TRAITS_MEMBER(version)
93 IPC_STRUCT_TRAITS_MEMBER(total_scroll_offset) 111 IPC_STRUCT_TRAITS_MEMBER(total_scroll_offset)
94 IPC_STRUCT_TRAITS_MEMBER(max_scroll_offset) 112 IPC_STRUCT_TRAITS_MEMBER(max_scroll_offset)
95 IPC_STRUCT_TRAITS_MEMBER(scrollable_size) 113 IPC_STRUCT_TRAITS_MEMBER(scrollable_size)
96 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) 114 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor)
97 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) 115 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor)
98 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) 116 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
99 IPC_STRUCT_TRAITS_MEMBER(need_animate_scroll) 117 IPC_STRUCT_TRAITS_MEMBER(need_animate_scroll)
100 IPC_STRUCT_TRAITS_MEMBER(need_invalidate) 118 IPC_STRUCT_TRAITS_MEMBER(need_invalidate)
(...skipping 16 matching lines...) Expand all
117 content::SyncCompositorCommonBrowserParams, 135 content::SyncCompositorCommonBrowserParams,
118 base::TimeTicks, 136 base::TimeTicks,
119 content::SyncCompositorCommonRendererParams) 137 content::SyncCompositorCommonRendererParams)
120 138
121 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_DemandDrawHw, 139 IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_DemandDrawHw,
122 content::SyncCompositorCommonBrowserParams, 140 content::SyncCompositorCommonBrowserParams,
123 content::SyncCompositorDemandDrawHwParams, 141 content::SyncCompositorDemandDrawHwParams,
124 content::SyncCompositorCommonRendererParams, 142 content::SyncCompositorCommonRendererParams,
125 cc::CompositorFrame) 143 cc::CompositorFrame)
126 144
145 IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw,
dcheng 2015/11/23 23:26:35 Can we add section comments like other IPC message
boliu 2015/11/24 00:16:33 Copied the same section headings from content/comm
146 content::SyncCompositorCommonBrowserParams,
147 content::SyncCompositorDemandDrawSwParams,
148 bool /* result */,
149 content::SyncCompositorCommonRendererParams,
150 cc::CompositorFrame)
151
127 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState, 152 IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState,
128 content::SyncCompositorCommonBrowserParams) 153 content::SyncCompositorCommonBrowserParams)
129 154
130 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState, 155 IPC_MESSAGE_ROUTED1(SyncCompositorHostMsg_UpdateState,
131 content::SyncCompositorCommonRendererParams) 156 content::SyncCompositorCommonRendererParams)
132 157
133 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll, 158 IPC_MESSAGE_ROUTED2(SyncCompositorHostMsg_OverScroll,
134 content::SyncCompositorCommonRendererParams, 159 content::SyncCompositorCommonRendererParams,
135 content::DidOverscrollParams) 160 content::DidOverscrollParams)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698