| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 inline backToFrontIterator backToFrontEnd() { return rend(); } | 33 inline backToFrontIterator backToFrontEnd() { return rend(); } |
| 34 inline constBackToFrontIterator backToFrontBegin() const { return rbegin();
} | 34 inline constBackToFrontIterator backToFrontBegin() const { return rbegin();
} |
| 35 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } | 35 inline constBackToFrontIterator backToFrontEnd() const { return rend(); } |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 typedef Vector<OwnPtr<CCSharedQuadState> > CCSharedQuadStateList; | 38 typedef Vector<OwnPtr<CCSharedQuadState> > CCSharedQuadStateList; |
| 39 | 39 |
| 40 class CCRenderPass { | 40 class CCRenderPass { |
| 41 WTF_MAKE_NONCOPYABLE(CCRenderPass); | 41 WTF_MAKE_NONCOPYABLE(CCRenderPass); |
| 42 public: | 42 public: |
| 43 ~CCRenderPass(); |
| 44 |
| 43 struct Id { | 45 struct Id { |
| 44 int layerId; | 46 int layerId; |
| 45 int index; | 47 int index; |
| 46 | 48 |
| 47 Id(int layerId, int index) | 49 Id(int layerId, int index) |
| 48 : layerId(layerId) | 50 : layerId(layerId) |
| 49 , index(index) | 51 , index(index) |
| 50 { | 52 { |
| 51 } | 53 } |
| 52 | 54 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 typedef IntHash<cc::CCRenderPass::Id> Hash; | 125 typedef IntHash<cc::CCRenderPass::Id> Hash; |
| 124 }; | 126 }; |
| 125 } // namespace WTF | 127 } // namespace WTF |
| 126 | 128 |
| 127 namespace cc { | 129 namespace cc { |
| 128 typedef Vector<CCRenderPass*> CCRenderPassList; | 130 typedef Vector<CCRenderPass*> CCRenderPassList; |
| 129 typedef HashMap<CCRenderPass::Id, OwnPtr<CCRenderPass> > CCRenderPassIdHashMap; | 131 typedef HashMap<CCRenderPass::Id, OwnPtr<CCRenderPass> > CCRenderPassIdHashMap; |
| 130 } // namespace cc | 132 } // namespace cc |
| 131 | 133 |
| 132 #endif | 134 #endif |
| OLD | NEW |