OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ | 5 #ifndef CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ |
6 #define CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ | 6 #define CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "cc/ipc/quads_struct_traits.h" | 9 #include "cc/ipc/quads_struct_traits.h" |
10 #include "cc/ipc/render_pass.mojom-shared.h" | 10 #include "cc/ipc/render_pass.mojom-shared.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 static const gfx::Rect& damage_rect( | 29 static const gfx::Rect& damage_rect( |
30 const std::unique_ptr<cc::RenderPass>& input) { | 30 const std::unique_ptr<cc::RenderPass>& input) { |
31 return input->damage_rect; | 31 return input->damage_rect; |
32 } | 32 } |
33 | 33 |
34 static const gfx::Transform& transform_to_root_target( | 34 static const gfx::Transform& transform_to_root_target( |
35 const std::unique_ptr<cc::RenderPass>& input) { | 35 const std::unique_ptr<cc::RenderPass>& input) { |
36 return input->transform_to_root_target; | 36 return input->transform_to_root_target; |
37 } | 37 } |
38 | 38 |
| 39 static const cc::FilterOperations& filters( |
| 40 const std::unique_ptr<cc::RenderPass>& input) { |
| 41 return input->filters; |
| 42 } |
| 43 |
| 44 static const cc::FilterOperations& background_filters( |
| 45 const std::unique_ptr<cc::RenderPass>& input) { |
| 46 return input->background_filters; |
| 47 } |
| 48 |
39 static bool has_transparent_background( | 49 static bool has_transparent_background( |
40 const std::unique_ptr<cc::RenderPass>& input) { | 50 const std::unique_ptr<cc::RenderPass>& input) { |
41 return input->has_transparent_background; | 51 return input->has_transparent_background; |
42 } | 52 } |
43 | 53 |
44 static const cc::QuadList& quad_list( | 54 static const cc::QuadList& quad_list( |
45 const std::unique_ptr<cc::RenderPass>& input) { | 55 const std::unique_ptr<cc::RenderPass>& input) { |
46 return input->quad_list; | 56 return input->quad_list; |
47 } | 57 } |
48 | 58 |
49 static bool Read(cc::mojom::RenderPassDataView data, | 59 static bool Read(cc::mojom::RenderPassDataView data, |
50 std::unique_ptr<cc::RenderPass>* out); | 60 std::unique_ptr<cc::RenderPass>* out); |
51 }; | 61 }; |
52 | 62 |
53 } // namespace mojo | 63 } // namespace mojo |
54 | 64 |
55 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ | 65 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ |
OLD | NEW |