OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_QUADS_RENDER_PASS_H_ | 5 #ifndef CC_QUADS_RENDER_PASS_H_ |
6 #define CC_QUADS_RENDER_PASS_H_ | 6 #define CC_QUADS_RENDER_PASS_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // A shallow copy of the render pass, which does not include its quads or copy | 70 // A shallow copy of the render pass, which does not include its quads or copy |
71 // requests. | 71 // requests. |
72 scoped_ptr<RenderPass> Copy(Id new_id) const; | 72 scoped_ptr<RenderPass> Copy(Id new_id) const; |
73 | 73 |
74 // A deep copy of the render passes in the list including the quads. | 74 // A deep copy of the render passes in the list including the quads. |
75 static void CopyAll(const ScopedPtrVector<RenderPass>& in, | 75 static void CopyAll(const ScopedPtrVector<RenderPass>& in, |
76 ScopedPtrVector<RenderPass>* out); | 76 ScopedPtrVector<RenderPass>* out); |
77 | 77 |
78 void SetNew(Id id, | 78 void SetNew(Id id, |
79 gfx::Rect output_rect, | 79 const gfx::Rect& output_rect, |
80 gfx::RectF damage_rect, | 80 const gfx::RectF& damage_rect, |
81 const gfx::Transform& transform_to_root_target); | 81 const gfx::Transform& transform_to_root_target); |
82 | 82 |
83 void SetAll(Id id, | 83 void SetAll(Id id, |
84 gfx::Rect output_rect, | 84 const gfx::Rect& output_rect, |
85 gfx::RectF damage_rect, | 85 const gfx::RectF& damage_rect, |
86 const gfx::Transform& transform_to_root_target, | 86 const gfx::Transform& transform_to_root_target, |
87 bool has_transparent_background); | 87 bool has_transparent_background); |
88 | 88 |
89 scoped_ptr<base::Value> AsValue() const; | 89 scoped_ptr<base::Value> AsValue() const; |
90 | 90 |
91 // Uniquely identifies the render pass in the compositor's current frame. | 91 // Uniquely identifies the render pass in the compositor's current frame. |
92 Id id; | 92 Id id; |
93 | 93 |
94 // These are in the space of the render pass' physical pixels. | 94 // These are in the space of the render pass' physical pixels. |
95 gfx::Rect output_rect; | 95 gfx::Rect output_rect; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 #error define a hash function for your compiler | 137 #error define a hash function for your compiler |
138 #endif // COMPILER | 138 #endif // COMPILER |
139 } // namespace BASE_HASH_NAMESPACE | 139 } // namespace BASE_HASH_NAMESPACE |
140 | 140 |
141 namespace cc { | 141 namespace cc { |
142 typedef ScopedPtrVector<RenderPass> RenderPassList; | 142 typedef ScopedPtrVector<RenderPass> RenderPassList; |
143 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; | 143 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; |
144 } // namespace cc | 144 } // namespace cc |
145 | 145 |
146 #endif // CC_QUADS_RENDER_PASS_H_ | 146 #endif // CC_QUADS_RENDER_PASS_H_ |
OLD | NEW |