| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 void SetAll(Id id, | 83 void SetAll(Id id, |
| 84 const gfx::Rect& output_rect, | 84 const gfx::Rect& output_rect, |
| 85 const gfx::Rect& damage_rect, | 85 const gfx::Rect& 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 SharedQuadState* CreateAndAppendSharedQuadState(); | 91 SharedQuadState* CreateAndAppendSharedQuadState(); |
| 92 void AppendDrawQuad(scoped_ptr<DrawQuad> draw_quad); |
| 92 | 93 |
| 93 // Uniquely identifies the render pass in the compositor's current frame. | 94 // Uniquely identifies the render pass in the compositor's current frame. |
| 94 Id id; | 95 Id id; |
| 95 | 96 |
| 96 // These are in the space of the render pass' physical pixels. | 97 // These are in the space of the render pass' physical pixels. |
| 97 gfx::Rect output_rect; | 98 gfx::Rect output_rect; |
| 98 gfx::Rect damage_rect; | 99 gfx::Rect damage_rect; |
| 99 | 100 |
| 100 // Transforms from the origin of the |output_rect| to the origin of the root | 101 // Transforms from the origin of the |output_rect| to the origin of the root |
| 101 // render pass' |output_rect|. | 102 // render pass' |output_rect|. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 #error define a hash function for your compiler | 140 #error define a hash function for your compiler |
| 140 #endif // COMPILER | 141 #endif // COMPILER |
| 141 } // namespace BASE_HASH_NAMESPACE | 142 } // namespace BASE_HASH_NAMESPACE |
| 142 | 143 |
| 143 namespace cc { | 144 namespace cc { |
| 144 typedef ScopedPtrVector<RenderPass> RenderPassList; | 145 typedef ScopedPtrVector<RenderPass> RenderPassList; |
| 145 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; | 146 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; |
| 146 } // namespace cc | 147 } // namespace cc |
| 147 | 148 |
| 148 #endif // CC_QUADS_RENDER_PASS_H_ | 149 #endif // CC_QUADS_RENDER_PASS_H_ |
| OLD | NEW |