| 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 "CCDrawQuad.h" | 8 #include "CCDrawQuad.h" |
| 9 #include "CCOcclusionTracker.h" | 9 #include "CCOcclusionTracker.h" |
| 10 #include "CCSharedQuadState.h" | 10 #include "CCSharedQuadState.h" |
| 11 #include "FloatRect.h" | 11 #include "FloatRect.h" |
| 12 #include "SkColor.h" | 12 #include "SkColor.h" |
| 13 #include "cc/hash_pair.h" | 13 #include "cc/hash_pair.h" |
| 14 #include "cc/scoped_ptr_hash_map.h" | 14 #include "cc/scoped_ptr_hash_map.h" |
| 15 #include "cc/scoped_ptr_vector.h" | 15 #include "cc/scoped_ptr_vector.h" |
| 16 #include <public/WebFilterOperations.h> | 16 #include <public/WebFilterOperations.h> |
| 17 #include <public/WebTransformationMatrix.h> | 17 #include <public/WebTransformationMatrix.h> |
| 18 #include <wtf/Vector.h> | 18 #include <vector> |
| 19 | 19 |
| 20 namespace cc { | 20 namespace cc { |
| 21 | 21 |
| 22 class CCLayerImpl; | 22 class CCLayerImpl; |
| 23 class CCRenderSurface; | 23 class CCRenderSurface; |
| 24 | 24 |
| 25 struct CCAppendQuadsData; | 25 struct CCAppendQuadsData; |
| 26 | 26 |
| 27 // A list of CCDrawQuad objects, sorted internally in front-to-back order. | 27 // A list of CCDrawQuad objects, sorted internally in front-to-back order. |
| 28 class CCQuadList : public ScopedPtrVector<CCDrawQuad> { | 28 class CCQuadList : public ScopedPtrVector<CCDrawQuad> { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 size_t operator()(cc::CCRenderPass::Id key) const { | 121 size_t operator()(cc::CCRenderPass::Id key) const { |
| 122 return hash<std::pair<int, int> >()(std::pair<int, int>(key.layerId, key
.index)); | 122 return hash<std::pair<int, int> >()(std::pair<int, int>(key.layerId, key
.index)); |
| 123 } | 123 } |
| 124 }; | 124 }; |
| 125 #else | 125 #else |
| 126 #error define a hash function for your compiler | 126 #error define a hash function for your compiler |
| 127 #endif // COMPILER | 127 #endif // COMPILER |
| 128 } | 128 } |
| 129 | 129 |
| 130 namespace cc { | 130 namespace cc { |
| 131 typedef Vector<CCRenderPass*> CCRenderPassList; | 131 typedef std::vector<CCRenderPass*> CCRenderPassList; |
| 132 typedef ScopedPtrHashMap<CCRenderPass::Id, CCRenderPass> CCRenderPassIdHashMap; | 132 typedef ScopedPtrHashMap<CCRenderPass::Id, CCRenderPass> CCRenderPassIdHashMap; |
| 133 } // namespace cc | 133 } // namespace cc |
| 134 | 134 |
| 135 #endif | 135 #endif |
| OLD | NEW |