| 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 // 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" |
| 11 #include "cc/draw_quad.h" | 11 #include "cc/draw_quad.h" |
| 12 #include "cc/io_surface_draw_quad.h" | 12 #include "cc/io_surface_draw_quad.h" |
| 13 #include "cc/render_pass.h" | 13 #include "cc/render_pass.h" |
| 14 #include "cc/render_pass_draw_quad.h" | 14 #include "cc/render_pass_draw_quad.h" |
| 15 #include "cc/shared_quad_state.h" | 15 #include "cc/shared_quad_state.h" |
| 16 #include "cc/solid_color_draw_quad.h" | 16 #include "cc/solid_color_draw_quad.h" |
| 17 #include "cc/stream_video_draw_quad.h" | 17 #include "cc/stream_video_draw_quad.h" |
| 18 #include "cc/texture_draw_quad.h" | 18 #include "cc/texture_draw_quad.h" |
| 19 #include "cc/tile_draw_quad.h" | 19 #include "cc/tile_draw_quad.h" |
| 20 #include "cc/transferable_resource.h" | 20 #include "cc/transferable_resource.h" |
| 21 #include "cc/video_layer_impl.h" | 21 #include "cc/video_layer_impl.h" |
| 22 #include "cc/yuv_video_draw_quad.h" | 22 #include "cc/yuv_video_draw_quad.h" |
| 23 #include "content/common/content_export.h" | 23 #include "content/common/content_export.h" |
| 24 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 24 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" | 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" |
| 26 | 27 |
| 27 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ | 28 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ |
| 28 #define CONTENT_COMMON_CC_MESSAGES_H_ | 29 #define CONTENT_COMMON_CC_MESSAGES_H_ |
| 29 | 30 |
| 30 namespace cc { | 31 namespace cc { |
| 31 class CompositorFrame; | 32 class CompositorFrame; |
| 32 } | 33 } |
| 33 | 34 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 69 |
| 69 template <> | 70 template <> |
| 70 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { | 71 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { |
| 71 typedef cc::RenderPass param_type; | 72 typedef cc::RenderPass param_type; |
| 72 static void Write(Message* m, const param_type& p); | 73 static void Write(Message* m, const param_type& p); |
| 73 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 74 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 74 static void Log(const param_type& p, std::string* l); | 75 static void Log(const param_type& p, std::string* l); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 template<> | 78 template<> |
| 78 struct CONTENT_EXPORT ParamTraits<cc::Mailbox> { | |
| 79 typedef cc::Mailbox param_type; | |
| 80 static void Write(Message* m, const param_type& p); | |
| 81 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | |
| 82 static void Log(const param_type& p, std::string* l); | |
| 83 }; | |
| 84 | |
| 85 template<> | |
| 86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { | 79 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { |
| 87 typedef cc::CompositorFrame param_type; | 80 typedef cc::CompositorFrame param_type; |
| 88 static void Write(Message* m, const param_type& p); | 81 static void Write(Message* m, const param_type& p); |
| 89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 82 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 90 static void Log(const param_type& p, std::string* l); | 83 static void Log(const param_type& p, std::string* l); |
| 91 }; | 84 }; |
| 92 | 85 |
| 93 template<> | 86 template<> |
| 94 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { | 87 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { |
| 95 typedef cc::CompositorFrameAck param_type; | 88 typedef cc::CompositorFrameAck param_type; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) | 232 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) |
| 240 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) | 233 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) |
| 241 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) | 234 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) |
| 242 IPC_STRUCT_TRAITS_END() | 235 IPC_STRUCT_TRAITS_END() |
| 243 | 236 |
| 244 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 237 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
| 245 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 238 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 246 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 239 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 247 IPC_STRUCT_TRAITS_MEMBER(size) | 240 IPC_STRUCT_TRAITS_MEMBER(size) |
| 248 IPC_STRUCT_TRAITS_END() | 241 IPC_STRUCT_TRAITS_END() |
| OLD | NEW |