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