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_RENDER_PASS_H_ | 5 #ifndef CC_RENDER_PASS_H_ |
6 #define CC_RENDER_PASS_H_ | 6 #define CC_RENDER_PASS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "cc/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/draw_quad.h" | |
13 #include "cc/hash_pair.h" | 12 #include "cc/hash_pair.h" |
14 #include "cc/scoped_ptr_hash_map.h" | 13 #include "cc/scoped_ptr_hash_map.h" |
15 #include "cc/scoped_ptr_vector.h" | 14 #include "cc/scoped_ptr_vector.h" |
16 #include "cc/shared_quad_state.h" | |
17 #include "skia/ext/refptr.h" | 15 #include "skia/ext/refptr.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" |
20 #include "third_party/skia/include/core/SkImageFilter.h" | 18 #include "third_party/skia/include/core/SkImageFilter.h" |
21 #include "ui/gfx/rect_f.h" | 19 #include "ui/gfx/rect_f.h" |
22 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
23 | 21 |
24 namespace cc { | 22 namespace cc { |
25 | 23 |
| 24 class DrawQuad; |
| 25 class SharedQuadState; |
| 26 |
26 // A list of DrawQuad objects, sorted internally in front-to-back order. | 27 // A list of DrawQuad objects, sorted internally in front-to-back order. |
27 class QuadList : public ScopedPtrVector<DrawQuad> { | 28 class QuadList : public ScopedPtrVector<DrawQuad> { |
28 public: | 29 public: |
29 typedef reverse_iterator backToFrontIterator; | 30 typedef reverse_iterator backToFrontIterator; |
30 typedef const_reverse_iterator constBackToFrontIterator; | 31 typedef const_reverse_iterator constBackToFrontIterator; |
31 | 32 |
32 inline backToFrontIterator backToFrontBegin() { return rbegin(); } | 33 inline backToFrontIterator backToFrontBegin() { return rbegin(); } |
33 inline backToFrontIterator backToFrontEnd() { return rend(); } | 34 inline backToFrontIterator backToFrontEnd() { return rend(); } |
34 inline constBackToFrontIterator backToFrontBegin() const { return rbegin(); } | 35 inline constBackToFrontIterator backToFrontBegin() const { return rbegin(); } |
35 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } | 36 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 #error define a hash function for your compiler | 125 #error define a hash function for your compiler |
125 #endif // COMPILER | 126 #endif // COMPILER |
126 } | 127 } |
127 | 128 |
128 namespace cc { | 129 namespace cc { |
129 typedef ScopedPtrVector<RenderPass> RenderPassList; | 130 typedef ScopedPtrVector<RenderPass> RenderPassList; |
130 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; | 131 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; |
131 } // namespace cc | 132 } // namespace cc |
132 | 133 |
133 #endif // CC_RENDER_PASS_H_ | 134 #endif // CC_RENDER_PASS_H_ |
OLD | NEW |