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

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

Issue 11649005: cc: Support anti-aliasing for solid color layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add DrawQuad::AntiAliasing struct. Created 7 years, 11 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"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }; 91 };
92 92
93 template<> 93 template<>
94 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { 94 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> {
95 typedef cc::DelegatedFrameData param_type; 95 typedef cc::DelegatedFrameData param_type;
96 static void Write(Message* m, const param_type& p); 96 static void Write(Message* m, const param_type& p);
97 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 97 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
98 static void Log(const param_type& p, std::string* l); 98 static void Log(const param_type& p, std::string* l);
99 }; 99 };
100 100
101 template<>
102 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::AntiAliasing> {
103 typedef cc::DrawQuad::AntiAliasing param_type;
104 static void Write(Message* m, const param_type& p);
105 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
106 static void Log(const param_type& p, std::string* l);
107 };
108
101 } // namespace IPC 109 } // namespace IPC
102 110
103 #endif // CONTENT_COMMON_CC_MESSAGES_H_ 111 #endif // CONTENT_COMMON_CC_MESSAGES_H_
104 112
105 // Multiply-included message file, hence no include guard. 113 // Multiply-included message file, hence no include guard.
106 114
107 #define IPC_MESSAGE_START CCMsgStart 115 #define IPC_MESSAGE_START CCMsgStart
108 #undef IPC_MESSAGE_EXPORT 116 #undef IPC_MESSAGE_EXPORT
109 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 117 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
110 118
(...skipping 11 matching lines...) Expand all
122 IPC_STRUCT_TRAITS_MEMBER(size) 130 IPC_STRUCT_TRAITS_MEMBER(size)
123 IPC_STRUCT_TRAITS_MEMBER(format) 131 IPC_STRUCT_TRAITS_MEMBER(format)
124 IPC_STRUCT_TRAITS_END() 132 IPC_STRUCT_TRAITS_END()
125 133
126 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) 134 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad)
127 IPC_STRUCT_TRAITS_MEMBER(material) 135 IPC_STRUCT_TRAITS_MEMBER(material)
128 IPC_STRUCT_TRAITS_MEMBER(rect) 136 IPC_STRUCT_TRAITS_MEMBER(rect)
129 IPC_STRUCT_TRAITS_MEMBER(opaque_rect) 137 IPC_STRUCT_TRAITS_MEMBER(opaque_rect)
130 IPC_STRUCT_TRAITS_MEMBER(visible_rect) 138 IPC_STRUCT_TRAITS_MEMBER(visible_rect)
131 IPC_STRUCT_TRAITS_MEMBER(needs_blending) 139 IPC_STRUCT_TRAITS_MEMBER(needs_blending)
140 IPC_STRUCT_TRAITS_MEMBER(anti_aliasing)
132 IPC_STRUCT_TRAITS_END() 141 IPC_STRUCT_TRAITS_END()
133 142
134 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad) 143 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad)
135 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 144 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
136 IPC_STRUCT_TRAITS_MEMBER(color) 145 IPC_STRUCT_TRAITS_MEMBER(color)
137 IPC_STRUCT_TRAITS_END() 146 IPC_STRUCT_TRAITS_END()
138 147
139 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) 148 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad)
140 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 149 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
141 IPC_STRUCT_TRAITS_MEMBER(color) 150 IPC_STRUCT_TRAITS_MEMBER(color)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 IPC_STRUCT_TRAITS_MEMBER(uv_rect) 188 IPC_STRUCT_TRAITS_MEMBER(uv_rect)
180 IPC_STRUCT_TRAITS_MEMBER(flipped) 189 IPC_STRUCT_TRAITS_MEMBER(flipped)
181 IPC_STRUCT_TRAITS_END() 190 IPC_STRUCT_TRAITS_END()
182 191
183 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad) 192 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad)
184 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 193 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
185 IPC_STRUCT_TRAITS_MEMBER(resource_id) 194 IPC_STRUCT_TRAITS_MEMBER(resource_id)
186 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect) 195 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect)
187 IPC_STRUCT_TRAITS_MEMBER(texture_size) 196 IPC_STRUCT_TRAITS_MEMBER(texture_size)
188 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents) 197 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents)
189 IPC_STRUCT_TRAITS_MEMBER(left_edge_aa)
190 IPC_STRUCT_TRAITS_MEMBER(top_edge_aa)
191 IPC_STRUCT_TRAITS_MEMBER(right_edge_aa)
192 IPC_STRUCT_TRAITS_MEMBER(bottom_edge_aa)
193 IPC_STRUCT_TRAITS_END() 198 IPC_STRUCT_TRAITS_END()
194 199
195 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) 200 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad)
196 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 201 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
197 IPC_STRUCT_TRAITS_MEMBER(tex_scale) 202 IPC_STRUCT_TRAITS_MEMBER(tex_scale)
198 IPC_STRUCT_TRAITS_MEMBER(y_plane) 203 IPC_STRUCT_TRAITS_MEMBER(y_plane)
199 IPC_STRUCT_TRAITS_MEMBER(u_plane) 204 IPC_STRUCT_TRAITS_MEMBER(u_plane)
200 IPC_STRUCT_TRAITS_MEMBER(v_plane) 205 IPC_STRUCT_TRAITS_MEMBER(v_plane)
201 IPC_STRUCT_TRAITS_END() 206 IPC_STRUCT_TRAITS_END()
202 207
(...skipping 29 matching lines...) Expand all
232 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) 237 IPC_STRUCT_TRAITS_MEMBER(root_layer_size)
233 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) 238 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor)
234 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) 239 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
235 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) 240 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset)
236 IPC_STRUCT_TRAITS_END() 241 IPC_STRUCT_TRAITS_END()
237 242
238 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 243 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
239 IPC_STRUCT_TRAITS_MEMBER(mailbox) 244 IPC_STRUCT_TRAITS_MEMBER(mailbox)
240 IPC_STRUCT_TRAITS_MEMBER(sync_point) 245 IPC_STRUCT_TRAITS_MEMBER(sync_point)
241 IPC_STRUCT_TRAITS_END() 246 IPC_STRUCT_TRAITS_END()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698