OLD | NEW |
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 #include "content/common/cc_messages.h" | 5 #include "content/common/cc_messages.h" |
6 | 6 |
7 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
8 #include "content/public/common/common_param_traits.h" | 8 #include "content/public/common/common_param_traits.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 9 #include "third_party/WebKit/public/platform/WebFilterOperations.h" |
10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
11 | 11 |
12 namespace IPC { | 12 namespace IPC { |
13 | 13 |
14 void ParamTraits<WebKit::WebFilterOperation>::Write( | 14 void ParamTraits<WebKit::WebFilterOperation>::Write( |
15 Message* m, const param_type& p) { | 15 Message* m, const param_type& p) { |
16 WriteParam(m, p.type()); | 16 WriteParam(m, p.type()); |
17 switch (p.type()) { | 17 switch (p.type()) { |
18 case WebKit::WebFilterOperation::FilterTypeGrayscale: | 18 case WebKit::WebFilterOperation::FilterTypeGrayscale: |
19 case WebKit::WebFilterOperation::FilterTypeSepia: | 19 case WebKit::WebFilterOperation::FilterTypeSepia: |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 l->append(", ["); | 708 l->append(", ["); |
709 for (size_t i = 0; i < p.render_pass_list.size(); ++i) { | 709 for (size_t i = 0; i < p.render_pass_list.size(); ++i) { |
710 if (i) | 710 if (i) |
711 l->append(", "); | 711 l->append(", "); |
712 LogParam(*p.render_pass_list[i], l); | 712 LogParam(*p.render_pass_list[i], l); |
713 } | 713 } |
714 l->append("])"); | 714 l->append("])"); |
715 } | 715 } |
716 | 716 |
717 } // namespace IPC | 717 } // namespace IPC |
OLD | NEW |