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_QUADS_RENDER_PASS_H_ | 5 #ifndef CC_QUADS_RENDER_PASS_H_ |
6 #define CC_QUADS_RENDER_PASS_H_ | 6 #define CC_QUADS_RENDER_PASS_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(RenderPass); | 130 DISALLOW_COPY_AND_ASSIGN(RenderPass); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace cc | 133 } // namespace cc |
134 | 134 |
135 namespace BASE_HASH_NAMESPACE { | 135 namespace BASE_HASH_NAMESPACE { |
136 template <> | 136 template <> |
137 struct hash<cc::RenderPassId> { | 137 struct hash<cc::RenderPassId> { |
138 size_t operator()(cc::RenderPassId key) const { | 138 size_t operator()(cc::RenderPassId key) const { |
139 return base::HashPair(key.layer_id, static_cast<int>(key.index)); | 139 return base::HashPair(key.layer_id, key.index); |
140 } | 140 } |
141 }; | 141 }; |
142 } // namespace BASE_HASH_NAMESPACE | 142 } // namespace BASE_HASH_NAMESPACE |
143 | 143 |
144 namespace cc { | 144 namespace cc { |
145 typedef ScopedPtrVector<RenderPass> RenderPassList; | 145 typedef ScopedPtrVector<RenderPass> RenderPassList; |
146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; | 146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; |
147 } // namespace cc | 147 } // namespace cc |
148 | 148 |
149 #endif // CC_QUADS_RENDER_PASS_H_ | 149 #endif // CC_QUADS_RENDER_PASS_H_ |
OLD | NEW |