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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/cc_messages.h
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h
index e0ee85d91b6d8f4e00801edb3cf81bdc96c99082..d54f5a55c247093997d1586ba6065c0d272f14f0 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -98,6 +98,14 @@ struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> {
static void Log(const param_type& p, std::string* l);
};
+template<>
+struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::AntiAliasing> {
+ typedef cc::DrawQuad::AntiAliasing param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CONTENT_COMMON_CC_MESSAGES_H_
@@ -129,6 +137,7 @@ IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad)
IPC_STRUCT_TRAITS_MEMBER(opaque_rect)
IPC_STRUCT_TRAITS_MEMBER(visible_rect)
IPC_STRUCT_TRAITS_MEMBER(needs_blending)
+ IPC_STRUCT_TRAITS_MEMBER(anti_aliasing)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad)
@@ -186,10 +195,6 @@ IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad)
IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect)
IPC_STRUCT_TRAITS_MEMBER(texture_size)
IPC_STRUCT_TRAITS_MEMBER(swizzle_contents)
- IPC_STRUCT_TRAITS_MEMBER(left_edge_aa)
- IPC_STRUCT_TRAITS_MEMBER(top_edge_aa)
- IPC_STRUCT_TRAITS_MEMBER(right_edge_aa)
- IPC_STRUCT_TRAITS_MEMBER(bottom_edge_aa)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad)

Powered by Google App Engine
This is Rietveld 408576698