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

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

Issue 12378053: Move Mailbox from cc to gpu, and its traits to gpu/ipc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios hate Created 7 years, 9 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
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/checkerboard_draw_quad.h" 7 #include "cc/checkerboard_draw_quad.h"
8 #include "cc/compositor_frame.h" 8 #include "cc/compositor_frame.h"
9 #include "cc/compositor_frame_ack.h" 9 #include "cc/compositor_frame_ack.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
11 #include "cc/draw_quad.h" 11 #include "cc/draw_quad.h"
12 #include "cc/io_surface_draw_quad.h" 12 #include "cc/io_surface_draw_quad.h"
13 #include "cc/render_pass.h" 13 #include "cc/render_pass.h"
14 #include "cc/render_pass_draw_quad.h" 14 #include "cc/render_pass_draw_quad.h"
15 #include "cc/shared_quad_state.h" 15 #include "cc/shared_quad_state.h"
16 #include "cc/solid_color_draw_quad.h" 16 #include "cc/solid_color_draw_quad.h"
17 #include "cc/stream_video_draw_quad.h" 17 #include "cc/stream_video_draw_quad.h"
18 #include "cc/texture_draw_quad.h" 18 #include "cc/texture_draw_quad.h"
19 #include "cc/tile_draw_quad.h" 19 #include "cc/tile_draw_quad.h"
20 #include "cc/transferable_resource.h" 20 #include "cc/transferable_resource.h"
21 #include "cc/video_layer_impl.h" 21 #include "cc/video_layer_impl.h"
22 #include "cc/yuv_video_draw_quad.h" 22 #include "cc/yuv_video_draw_quad.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "gpu/ipc/gpu_command_buffer_traits.h"
24 #include "ipc/ipc_message_macros.h" 25 #include "ipc/ipc_message_macros.h"
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h"
26 27
27 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ 28 #ifndef CONTENT_COMMON_CC_MESSAGES_H_
28 #define CONTENT_COMMON_CC_MESSAGES_H_ 29 #define CONTENT_COMMON_CC_MESSAGES_H_
29 30
30 namespace cc { 31 namespace cc {
31 class CompositorFrame; 32 class CompositorFrame;
32 } 33 }
33 34
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 69
69 template <> 70 template <>
70 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { 71 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
71 typedef cc::RenderPass param_type; 72 typedef cc::RenderPass param_type;
72 static void Write(Message* m, const param_type& p); 73 static void Write(Message* m, const param_type& p);
73 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 74 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
74 static void Log(const param_type& p, std::string* l); 75 static void Log(const param_type& p, std::string* l);
75 }; 76 };
76 77
77 template<> 78 template<>
78 struct CONTENT_EXPORT ParamTraits<cc::Mailbox> {
79 typedef cc::Mailbox param_type;
80 static void Write(Message* m, const param_type& p);
81 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
82 static void Log(const param_type& p, std::string* l);
83 };
84
85 template<>
86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { 79 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
87 typedef cc::CompositorFrame param_type; 80 typedef cc::CompositorFrame param_type;
88 static void Write(Message* m, const param_type& p); 81 static void Write(Message* m, const param_type& p);
89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 82 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
90 static void Log(const param_type& p, std::string* l); 83 static void Log(const param_type& p, std::string* l);
91 }; 84 };
92 85
93 template<> 86 template<>
94 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { 87 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> {
95 typedef cc::CompositorFrameAck param_type; 88 typedef cc::CompositorFrameAck param_type;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) 229 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
237 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) 230 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset)
238 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) 231 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation)
239 IPC_STRUCT_TRAITS_END() 232 IPC_STRUCT_TRAITS_END()
240 233
241 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 234 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
242 IPC_STRUCT_TRAITS_MEMBER(mailbox) 235 IPC_STRUCT_TRAITS_MEMBER(mailbox)
243 IPC_STRUCT_TRAITS_MEMBER(sync_point) 236 IPC_STRUCT_TRAITS_MEMBER(sync_point)
244 IPC_STRUCT_TRAITS_MEMBER(size) 237 IPC_STRUCT_TRAITS_MEMBER(size)
245 IPC_STRUCT_TRAITS_END() 238 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698