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

Side by Side 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 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/output/begin_frame_args.h" 7 #include "cc/output/begin_frame_args.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/filter_operation.h" 10 #include "cc/output/filter_operation.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 template <> 50 template <>
51 struct ParamTraits<cc::FilterOperations> { 51 struct ParamTraits<cc::FilterOperations> {
52 typedef cc::FilterOperations param_type; 52 typedef cc::FilterOperations param_type;
53 static void Write(Message* m, const param_type& p); 53 static void Write(Message* m, const param_type& p);
54 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 54 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
55 static void Log(const param_type& p, std::string* l); 55 static void Log(const param_type& p, std::string* l);
56 }; 56 };
57 57
58 template <> 58 template <>
59 struct ParamTraits<skia::RefPtr<SkImageFilter> > {
60 typedef skia::RefPtr<SkImageFilter> param_type;
61 static void Write(Message* m, const param_type& p);
62 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
63 static void Log(const param_type& p, std::string* l);
64 };
65
66 template <>
59 struct ParamTraits<gfx::Transform> { 67 struct ParamTraits<gfx::Transform> {
60 typedef gfx::Transform param_type; 68 typedef gfx::Transform param_type;
61 static void Write(Message* m, const param_type& p); 69 static void Write(Message* m, const param_type& p);
62 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 70 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
63 static void Log(const param_type& p, std::string* l); 71 static void Log(const param_type& p, std::string* l);
64 }; 72 };
65 73
66 template <> 74 template <>
67 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { 75 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
68 typedef cc::RenderPass param_type; 76 typedef cc::RenderPass param_type;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 IPC_STRUCT_TRAITS_END() 149 IPC_STRUCT_TRAITS_END()
142 150
143 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) 151 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad)
144 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 152 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
145 IPC_STRUCT_TRAITS_MEMBER(render_pass_id) 153 IPC_STRUCT_TRAITS_MEMBER(render_pass_id)
146 IPC_STRUCT_TRAITS_MEMBER(is_replica) 154 IPC_STRUCT_TRAITS_MEMBER(is_replica)
147 IPC_STRUCT_TRAITS_MEMBER(mask_resource_id) 155 IPC_STRUCT_TRAITS_MEMBER(mask_resource_id)
148 IPC_STRUCT_TRAITS_MEMBER(contents_changed_since_last_frame) 156 IPC_STRUCT_TRAITS_MEMBER(contents_changed_since_last_frame)
149 IPC_STRUCT_TRAITS_MEMBER(mask_uv_rect) 157 IPC_STRUCT_TRAITS_MEMBER(mask_uv_rect)
150 IPC_STRUCT_TRAITS_MEMBER(filters) 158 IPC_STRUCT_TRAITS_MEMBER(filters)
151 // TODO(piman): filter isn't being serialized. 159 IPC_STRUCT_TRAITS_MEMBER(filter)
152 // IPC_STRUCT_TRAITS_MEMBER(filter)
153 IPC_STRUCT_TRAITS_MEMBER(background_filters) 160 IPC_STRUCT_TRAITS_MEMBER(background_filters)
154 IPC_STRUCT_TRAITS_END() 161 IPC_STRUCT_TRAITS_END()
155 162
156 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad) 163 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad)
157 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) 164 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad)
158 IPC_STRUCT_TRAITS_MEMBER(color) 165 IPC_STRUCT_TRAITS_MEMBER(color)
159 IPC_STRUCT_TRAITS_MEMBER(force_anti_aliasing_off) 166 IPC_STRUCT_TRAITS_MEMBER(force_anti_aliasing_off)
160 IPC_STRUCT_TRAITS_END() 167 IPC_STRUCT_TRAITS_END()
161 168
162 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad) 169 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 IPC_STRUCT_TRAITS_MEMBER(size) 247 IPC_STRUCT_TRAITS_MEMBER(size)
241 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) 248 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect)
242 IPC_STRUCT_TRAITS_END() 249 IPC_STRUCT_TRAITS_END()
243 250
244 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) 251 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData)
245 IPC_STRUCT_TRAITS_MEMBER(id) 252 IPC_STRUCT_TRAITS_MEMBER(id)
246 IPC_STRUCT_TRAITS_MEMBER(size) 253 IPC_STRUCT_TRAITS_MEMBER(size)
247 IPC_STRUCT_TRAITS_MEMBER(damage_rect) 254 IPC_STRUCT_TRAITS_MEMBER(damage_rect)
248 IPC_STRUCT_TRAITS_MEMBER(handle) 255 IPC_STRUCT_TRAITS_MEMBER(handle)
249 IPC_STRUCT_TRAITS_END() 256 IPC_STRUCT_TRAITS_END()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698