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

Unified Diff: content/common/cc_messages.h

Issue 21271002: Added SkImageFilter serialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Skia API changes 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 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 d3b02ef6019d74d10ac85469e51eb9ca19ec5a4e..380d453358d33f1b79b2fad07ed63499fd183435 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -56,6 +56,14 @@ struct ParamTraits<cc::FilterOperations> {
};
template <>
+struct ParamTraits<skia::RefPtr<SkImageFilter> > {
+ typedef skia::RefPtr<SkImageFilter> param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct ParamTraits<gfx::Transform> {
typedef gfx::Transform param_type;
static void Write(Message* m, const param_type& p);
@@ -148,8 +156,7 @@ IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad)
IPC_STRUCT_TRAITS_MEMBER(contents_changed_since_last_frame)
IPC_STRUCT_TRAITS_MEMBER(mask_uv_rect)
IPC_STRUCT_TRAITS_MEMBER(filters)
- // TODO(piman): filter isn't being serialized.
- // IPC_STRUCT_TRAITS_MEMBER(filter)
+ IPC_STRUCT_TRAITS_MEMBER(filter)
IPC_STRUCT_TRAITS_MEMBER(background_filters)
IPC_STRUCT_TRAITS_END()

Powered by Google App Engine
This is Rietveld 408576698