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

Side by Side Diff: content/common/cc_messages.h

Issue 23097005: cc: return resources via a ReturnedResource struct rather than TransferableResource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nits Created 7 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC Messages sent between compositor instances. 5 // IPC Messages sent between compositor instances.
6 6
7 #include "cc/output/begin_frame_args.h" 7 #include "cc/output/begin_frame_args.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/filter_operation.h" 10 #include "cc/output/filter_operation.h"
11 #include "cc/quads/checkerboard_draw_quad.h" 11 #include "cc/quads/checkerboard_draw_quad.h"
12 #include "cc/quads/debug_border_draw_quad.h" 12 #include "cc/quads/debug_border_draw_quad.h"
13 #include "cc/quads/draw_quad.h" 13 #include "cc/quads/draw_quad.h"
14 #include "cc/quads/io_surface_draw_quad.h" 14 #include "cc/quads/io_surface_draw_quad.h"
15 #include "cc/quads/picture_draw_quad.h" 15 #include "cc/quads/picture_draw_quad.h"
16 #include "cc/quads/render_pass.h" 16 #include "cc/quads/render_pass.h"
17 #include "cc/quads/render_pass_draw_quad.h" 17 #include "cc/quads/render_pass_draw_quad.h"
18 #include "cc/quads/shared_quad_state.h" 18 #include "cc/quads/shared_quad_state.h"
19 #include "cc/quads/solid_color_draw_quad.h" 19 #include "cc/quads/solid_color_draw_quad.h"
20 #include "cc/quads/stream_video_draw_quad.h" 20 #include "cc/quads/stream_video_draw_quad.h"
21 #include "cc/quads/texture_draw_quad.h" 21 #include "cc/quads/texture_draw_quad.h"
22 #include "cc/quads/tile_draw_quad.h" 22 #include "cc/quads/tile_draw_quad.h"
23 #include "cc/quads/yuv_video_draw_quad.h" 23 #include "cc/quads/yuv_video_draw_quad.h"
24 #include "cc/resources/returned_resource.h"
24 #include "cc/resources/transferable_resource.h" 25 #include "cc/resources/transferable_resource.h"
25 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
26 #include "gpu/ipc/gpu_command_buffer_traits.h" 27 #include "gpu/ipc/gpu_command_buffer_traits.h"
27 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
28 29
29 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ 30 #ifndef CONTENT_COMMON_CC_MESSAGES_H_
30 #define CONTENT_COMMON_CC_MESSAGES_H_ 31 #define CONTENT_COMMON_CC_MESSAGES_H_
31 32
32 namespace gfx { 33 namespace gfx {
33 class Transform; 34 class Transform;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 215
215 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) 216 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource)
216 IPC_STRUCT_TRAITS_MEMBER(id) 217 IPC_STRUCT_TRAITS_MEMBER(id)
217 IPC_STRUCT_TRAITS_MEMBER(sync_point) 218 IPC_STRUCT_TRAITS_MEMBER(sync_point)
218 IPC_STRUCT_TRAITS_MEMBER(format) 219 IPC_STRUCT_TRAITS_MEMBER(format)
219 IPC_STRUCT_TRAITS_MEMBER(filter) 220 IPC_STRUCT_TRAITS_MEMBER(filter)
220 IPC_STRUCT_TRAITS_MEMBER(size) 221 IPC_STRUCT_TRAITS_MEMBER(size)
221 IPC_STRUCT_TRAITS_MEMBER(mailbox) 222 IPC_STRUCT_TRAITS_MEMBER(mailbox)
222 IPC_STRUCT_TRAITS_END() 223 IPC_STRUCT_TRAITS_END()
223 224
225 IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource)
226 IPC_STRUCT_TRAITS_MEMBER(id)
227 IPC_STRUCT_TRAITS_MEMBER(sync_point)
228 IPC_STRUCT_TRAITS_MEMBER(filter)
229 IPC_STRUCT_TRAITS_MEMBER(count)
230 IPC_STRUCT_TRAITS_END()
231
224 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs) 232 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs)
225 IPC_STRUCT_TRAITS_MEMBER(frame_time) 233 IPC_STRUCT_TRAITS_MEMBER(frame_time)
226 IPC_STRUCT_TRAITS_MEMBER(deadline) 234 IPC_STRUCT_TRAITS_MEMBER(deadline)
227 IPC_STRUCT_TRAITS_MEMBER(interval) 235 IPC_STRUCT_TRAITS_MEMBER(interval)
228 IPC_STRUCT_TRAITS_END() 236 IPC_STRUCT_TRAITS_END()
229 237
230 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) 238 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata)
231 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) 239 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor)
232 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) 240 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset)
233 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) 241 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor)
(...skipping 13 matching lines...) Expand all
247 IPC_STRUCT_TRAITS_MEMBER(size) 255 IPC_STRUCT_TRAITS_MEMBER(size)
248 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) 256 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect)
249 IPC_STRUCT_TRAITS_END() 257 IPC_STRUCT_TRAITS_END()
250 258
251 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) 259 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData)
252 IPC_STRUCT_TRAITS_MEMBER(id) 260 IPC_STRUCT_TRAITS_MEMBER(id)
253 IPC_STRUCT_TRAITS_MEMBER(size) 261 IPC_STRUCT_TRAITS_MEMBER(size)
254 IPC_STRUCT_TRAITS_MEMBER(damage_rect) 262 IPC_STRUCT_TRAITS_MEMBER(damage_rect)
255 IPC_STRUCT_TRAITS_MEMBER(handle) 263 IPC_STRUCT_TRAITS_MEMBER(handle)
256 IPC_STRUCT_TRAITS_END() 264 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698