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

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

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 8 years 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 | « cc/video_layer_impl.cc ('k') | content/common/cc_messages.cc » ('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/checkerboard_draw_quad.h" 7 #include "cc/checkerboard_draw_quad.h"
8 #include "cc/debug_border_draw_quad.h" 8 #include "cc/debug_border_draw_quad.h"
9 #include "cc/draw_quad.h" 9 #include "cc/draw_quad.h"
10 #include "cc/io_surface_draw_quad.h" 10 #include "cc/io_surface_draw_quad.h"
11 #include "cc/render_pass.h" 11 #include "cc/render_pass.h"
12 #include "cc/render_pass_draw_quad.h" 12 #include "cc/render_pass_draw_quad.h"
13 #include "cc/shared_quad_state.h" 13 #include "cc/shared_quad_state.h"
14 #include "cc/solid_color_draw_quad.h" 14 #include "cc/solid_color_draw_quad.h"
15 #include "cc/stream_video_draw_quad.h" 15 #include "cc/stream_video_draw_quad.h"
16 #include "cc/texture_draw_quad.h" 16 #include "cc/texture_draw_quad.h"
17 #include "cc/tile_draw_quad.h" 17 #include "cc/tile_draw_quad.h"
18 #include "cc/video_layer_impl.h" 18 #include "cc/video_layer_impl.h"
19 #include "cc/yuv_video_draw_quad.h" 19 #include "cc/yuv_video_draw_quad.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h"
23 23
24 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ 24 #ifndef CONTENT_COMMON_CC_MESSAGES_H_
25 #define CONTENT_COMMON_CC_MESSAGES_H_ 25 #define CONTENT_COMMON_CC_MESSAGES_H_
26 26
27 namespace gfx {
28 class Transform;
29 }
30
27 namespace WebKit { 31 namespace WebKit {
28 class WebData; 32 class WebData;
29 class WebFilterOperations; 33 class WebFilterOperations;
30 class WebTransformationMatrix;
31 } 34 }
32 35
33 namespace IPC { 36 namespace IPC {
34 37
35 template <> 38 template <>
36 struct ParamTraits<WebKit::WebData> { 39 struct ParamTraits<WebKit::WebData> {
37 typedef WebKit::WebData param_type; 40 typedef WebKit::WebData param_type;
38 static void Write(Message* m, const param_type& p); 41 static void Write(Message* m, const param_type& p);
39 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 42 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
40 static void Log(const param_type& p, std::string* l); 43 static void Log(const param_type& p, std::string* l);
41 }; 44 };
42 45
43 template <> 46 template <>
44 struct ParamTraits<WebKit::WebFilterOperation> { 47 struct ParamTraits<WebKit::WebFilterOperation> {
45 typedef WebKit::WebFilterOperation param_type; 48 typedef WebKit::WebFilterOperation param_type;
46 static void Write(Message* m, const param_type& p); 49 static void Write(Message* m, const param_type& p);
47 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 50 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
48 static void Log(const param_type& p, std::string* l); 51 static void Log(const param_type& p, std::string* l);
49 }; 52 };
50 53
51 template <> 54 template <>
52 struct ParamTraits<WebKit::WebFilterOperations> { 55 struct ParamTraits<WebKit::WebFilterOperations> {
53 typedef WebKit::WebFilterOperations param_type; 56 typedef WebKit::WebFilterOperations param_type;
54 static void Write(Message* m, const param_type& p); 57 static void Write(Message* m, const param_type& p);
55 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 58 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
56 static void Log(const param_type& p, std::string* l); 59 static void Log(const param_type& p, std::string* l);
57 }; 60 };
58 61
59 template <> 62 template <>
60 struct ParamTraits<WebKit::WebTransformationMatrix> { 63 struct ParamTraits<gfx::Transform> {
61 typedef WebKit::WebTransformationMatrix param_type; 64 typedef gfx::Transform param_type;
62 static void Write(Message* m, const param_type& p); 65 static void Write(Message* m, const param_type& p);
63 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 66 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
64 static void Log(const param_type& p, std::string* l); 67 static void Log(const param_type& p, std::string* l);
65 }; 68 };
66 69
67 template <> 70 template <>
68 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { 71 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
69 typedef cc::RenderPass param_type; 72 typedef cc::RenderPass param_type;
70 static void Write(Message* m, const param_type& p); 73 static void Write(Message* m, const param_type& p);
71 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 74 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 IPC_STRUCT_TRAITS_END() 177 IPC_STRUCT_TRAITS_END()
175 178
176 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) 179 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState)
177 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform) 180 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform)
178 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect) 181 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect)
179 IPC_STRUCT_TRAITS_MEMBER(clipped_rect_in_target) 182 IPC_STRUCT_TRAITS_MEMBER(clipped_rect_in_target)
180 IPC_STRUCT_TRAITS_MEMBER(clip_rect) 183 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
181 IPC_STRUCT_TRAITS_MEMBER(is_clipped) 184 IPC_STRUCT_TRAITS_MEMBER(is_clipped)
182 IPC_STRUCT_TRAITS_MEMBER(opacity) 185 IPC_STRUCT_TRAITS_MEMBER(opacity)
183 IPC_STRUCT_TRAITS_END() 186 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « cc/video_layer_impl.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698