OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CCPrioritizedTextureManager_h | 5 #ifndef CCPrioritizedTextureManager_h |
6 #define CCPrioritizedTextureManager_h | 6 #define CCPrioritizedTextureManager_h |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "CCPrioritizedTexture.h" | |
12 #include "CCPriorityCalculator.h" | |
13 #include "IntRect.h" | 11 #include "IntRect.h" |
14 #include "IntSize.h" | 12 #include "IntSize.h" |
15 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
16 #include "base/hash_tables.h" | 14 #include "base/hash_tables.h" |
17 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "cc/prioritized_texture.h" |
| 17 #include "cc/priority_calculator.h" |
18 #include "cc/texture.h" | 18 #include "cc/texture.h" |
19 #include "third_party/khronos/GLES2/gl2.h" | 19 #include "third_party/khronos/GLES2/gl2.h" |
20 | 20 |
21 #if defined(COMPILER_GCC) | 21 #if defined(COMPILER_GCC) |
22 namespace BASE_HASH_NAMESPACE { | 22 namespace BASE_HASH_NAMESPACE { |
23 template<> | 23 template<> |
24 struct hash<cc::CCPrioritizedTexture*> { | 24 struct hash<cc::CCPrioritizedTexture*> { |
25 size_t operator()(cc::CCPrioritizedTexture* ptr) const { | 25 size_t operator()(cc::CCPrioritizedTexture* ptr) const { |
26 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 26 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
27 } | 27 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 BackingList m_evictedBackings; | 163 BackingList m_evictedBackings; |
164 | 164 |
165 TextureVector m_tempTextureVector; | 165 TextureVector m_tempTextureVector; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTextureManager); | 167 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTextureManager); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace cc | 170 } // namespace cc |
171 | 171 |
172 #endif | 172 #endif |
OLD | NEW |