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" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "cc/base/cc_export.h" | |
14 #include "cc/base/scoped_ptr_vector.h" | 13 #include "cc/base/scoped_ptr_vector.h" |
15 #include "cc/quads/list_container.h" | 14 #include "cc/quads/list_container.h" |
16 #include "cc/quads/render_pass_id.h" | 15 #include "cc/quads/render_pass_id.h" |
17 #include "skia/ext/refptr.h" | 16 #include "skia/ext/refptr.h" |
18 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/geometry/rect_f.h" | 18 #include "ui/gfx/geometry/rect_f.h" |
20 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
21 | 20 |
22 namespace base { | 21 namespace base { |
23 namespace trace_event { | 22 namespace trace_event { |
(...skipping 18 matching lines...) Expand all Loading... |
42 typedef QuadList::ConstReverseIterator ConstBackToFrontIterator; | 41 typedef QuadList::ConstReverseIterator ConstBackToFrontIterator; |
43 | 42 |
44 inline BackToFrontIterator BackToFrontBegin() { return rbegin(); } | 43 inline BackToFrontIterator BackToFrontBegin() { return rbegin(); } |
45 inline BackToFrontIterator BackToFrontEnd() { return rend(); } | 44 inline BackToFrontIterator BackToFrontEnd() { return rend(); } |
46 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); } | 45 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); } |
47 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); } | 46 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); } |
48 }; | 47 }; |
49 | 48 |
50 typedef ListContainer<SharedQuadState> SharedQuadStateList; | 49 typedef ListContainer<SharedQuadState> SharedQuadStateList; |
51 | 50 |
52 class CC_EXPORT RenderPass { | 51 class RenderPass { |
53 public: | 52 public: |
54 ~RenderPass(); | 53 ~RenderPass(); |
55 | 54 |
56 static scoped_ptr<RenderPass> Create(); | 55 static scoped_ptr<RenderPass> Create(); |
57 static scoped_ptr<RenderPass> Create(size_t num_layers); | 56 static scoped_ptr<RenderPass> Create(size_t num_layers); |
58 static scoped_ptr<RenderPass> Create(size_t shared_quad_state_list_size, | 57 static scoped_ptr<RenderPass> Create(size_t shared_quad_state_list_size, |
59 size_t quad_list_size); | 58 size_t quad_list_size); |
60 | 59 |
61 // A shallow copy of the render pass, which does not include its quads or copy | 60 // A shallow copy of the render pass, which does not include its quads or copy |
62 // requests. | 61 // requests. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 139 } |
141 }; | 140 }; |
142 } // namespace BASE_HASH_NAMESPACE | 141 } // namespace BASE_HASH_NAMESPACE |
143 | 142 |
144 namespace cc { | 143 namespace cc { |
145 typedef ScopedPtrVector<RenderPass> RenderPassList; | 144 typedef ScopedPtrVector<RenderPass> RenderPassList; |
146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; | 145 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; |
147 } // namespace cc | 146 } // namespace cc |
148 | 147 |
149 #endif // CC_QUADS_RENDER_PASS_H_ | 148 #endif // CC_QUADS_RENDER_PASS_H_ |
OLD | NEW |