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 CCRenderPass_h | 5 #ifndef CCRenderPass_h |
6 #define CCRenderPass_h | 6 #define CCRenderPass_h |
7 | 7 |
8 #include "FloatRect.h" | 8 #include "FloatRect.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "cc/cc_export.h" |
10 #include "cc/draw_quad.h" | 11 #include "cc/draw_quad.h" |
11 #include "cc/hash_pair.h" | 12 #include "cc/hash_pair.h" |
12 #include "cc/scoped_ptr_hash_map.h" | 13 #include "cc/scoped_ptr_hash_map.h" |
13 #include "cc/scoped_ptr_vector.h" | 14 #include "cc/scoped_ptr_vector.h" |
14 #include "cc/shared_quad_state.h" | 15 #include "cc/shared_quad_state.h" |
15 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
16 #include "ui/gfx/rect_f.h" | 17 #include "ui/gfx/rect_f.h" |
17 #include <public/WebFilterOperations.h> | 18 #include <public/WebFilterOperations.h> |
18 #include <public/WebTransformationMatrix.h> | 19 #include <public/WebTransformationMatrix.h> |
19 #include <vector> | 20 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
38 typedef const_reverse_iterator constBackToFrontIterator; | 39 typedef const_reverse_iterator constBackToFrontIterator; |
39 | 40 |
40 inline backToFrontIterator backToFrontBegin() { return rbegin(); } | 41 inline backToFrontIterator backToFrontBegin() { return rbegin(); } |
41 inline backToFrontIterator backToFrontEnd() { return rend(); } | 42 inline backToFrontIterator backToFrontEnd() { return rend(); } |
42 inline constBackToFrontIterator backToFrontBegin() const { return rbegin();
} | 43 inline constBackToFrontIterator backToFrontBegin() const { return rbegin();
} |
43 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } | 44 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } |
44 }; | 45 }; |
45 | 46 |
46 typedef ScopedPtrVector<SharedQuadState> SharedQuadStateList; | 47 typedef ScopedPtrVector<SharedQuadState> SharedQuadStateList; |
47 | 48 |
48 class RenderPass { | 49 class CC_EXPORT RenderPass { |
49 public: | 50 public: |
50 ~RenderPass(); | 51 ~RenderPass(); |
51 | 52 |
52 struct Id { | 53 struct Id { |
53 int layerId; | 54 int layerId; |
54 int index; | 55 int index; |
55 | 56 |
56 Id(int layerId, int index) | 57 Id(int layerId, int index) |
57 : layerId(layerId) | 58 : layerId(layerId) |
58 , index(index) | 59 , index(index) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 #error define a hash function for your compiler | 139 #error define a hash function for your compiler |
139 #endif // COMPILER | 140 #endif // COMPILER |
140 } | 141 } |
141 | 142 |
142 namespace cc { | 143 namespace cc { |
143 typedef std::vector<RenderPass*> RenderPassList; | 144 typedef std::vector<RenderPass*> RenderPassList; |
144 typedef ScopedPtrHashMap<RenderPass::Id, RenderPass> RenderPassIdHashMap; | 145 typedef ScopedPtrHashMap<RenderPass::Id, RenderPass> RenderPassIdHashMap; |
145 } // namespace cc | 146 } // namespace cc |
146 | 147 |
147 #endif | 148 #endif |
OLD | NEW |