| 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 "cc/output/filter_operations.h" | 8 #include "cc/output/filter_operations.h" |
| 9 #include "cc/quads/largest_draw_quad.h" | 9 #include "cc/quads/largest_draw_quad.h" |
| 10 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 static scoped_ptr<cc::DrawQuad> ReadDrawQuad(const Message* m, | 397 static scoped_ptr<cc::DrawQuad> ReadDrawQuad(const Message* m, |
| 398 PickleIterator* iter) { | 398 PickleIterator* iter) { |
| 399 scoped_ptr<QuadType> quad(new QuadType); | 399 scoped_ptr<QuadType> quad(new QuadType); |
| 400 if (!ReadParam(m, iter, quad.get())) | 400 if (!ReadParam(m, iter, quad.get())) |
| 401 return scoped_ptr<QuadType>().template PassAs<cc::DrawQuad>(); | 401 return scoped_ptr<QuadType>().template PassAs<cc::DrawQuad>(); |
| 402 return quad.template PassAs<cc::DrawQuad>(); | 402 return quad.template PassAs<cc::DrawQuad>(); |
| 403 } | 403 } |
| 404 | 404 |
| 405 bool ParamTraits<cc::RenderPass>::Read( | 405 bool ParamTraits<cc::RenderPass>::Read( |
| 406 const Message* m, PickleIterator* iter, param_type* p) { | 406 const Message* m, PickleIterator* iter, param_type* p) { |
| 407 cc::RenderPass::Id id(-1, -1); | 407 cc::RenderPassId id(-1, -1); |
| 408 gfx::Rect output_rect; | 408 gfx::Rect output_rect; |
| 409 gfx::Rect damage_rect; | 409 gfx::Rect damage_rect; |
| 410 gfx::Transform transform_to_root_target; | 410 gfx::Transform transform_to_root_target; |
| 411 bool has_transparent_background; | 411 bool has_transparent_background; |
| 412 size_t shared_quad_state_list_size; | 412 size_t shared_quad_state_list_size; |
| 413 size_t quad_list_size; | 413 size_t quad_list_size; |
| 414 | 414 |
| 415 if (!ReadParam(m, iter, &id) || | 415 if (!ReadParam(m, iter, &id) || |
| 416 !ReadParam(m, iter, &output_rect) || | 416 !ReadParam(m, iter, &output_rect) || |
| 417 !ReadParam(m, iter, &damage_rect) || | 417 !ReadParam(m, iter, &damage_rect) || |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 l->append(", "); | 795 l->append(", "); |
| 796 LogParam(p.size, l); | 796 LogParam(p.size, l); |
| 797 l->append(", "); | 797 l->append(", "); |
| 798 LogParam(p.damage_rect, l); | 798 LogParam(p.damage_rect, l); |
| 799 l->append(", "); | 799 l->append(", "); |
| 800 LogParam(p.bitmap_id, l); | 800 LogParam(p.bitmap_id, l); |
| 801 l->append(")"); | 801 l->append(")"); |
| 802 } | 802 } |
| 803 | 803 |
| 804 } // namespace IPC | 804 } // namespace IPC |
| OLD | NEW |