| 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 CC_PRIORITIZED_RESOURCE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_PRIORITIZED_RESOURCE_MANAGER_H_ |
| 6 #define CC_PRIORITIZED_RESOURCE_MANAGER_H_ | 6 #define CC_RESOURCES_PRIORITIZED_RESOURCE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "cc/base/cc_export.h" | 15 #include "cc/base/cc_export.h" |
| 16 #include "cc/prioritized_resource.h" | 16 #include "cc/resources/prioritized_resource.h" |
| 17 #include "cc/priority_calculator.h" | 17 #include "cc/resources/priority_calculator.h" |
| 18 #include "cc/resource.h" | 18 #include "cc/resources/resource.h" |
| 19 #include "cc/trees/proxy.h" | 19 #include "cc/trees/proxy.h" |
| 20 #include "third_party/khronos/GLES2/gl2.h" | 20 #include "third_party/khronos/GLES2/gl2.h" |
| 21 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 22 | 22 |
| 23 #if defined(COMPILER_GCC) | 23 #if defined(COMPILER_GCC) |
| 24 namespace BASE_HASH_NAMESPACE { | 24 namespace BASE_HASH_NAMESPACE { |
| 25 template<> | 25 template<> |
| 26 struct hash<cc::PrioritizedResource*> { | 26 struct hash<cc::PrioritizedResource*> { |
| 27 size_t operator()(cc::PrioritizedResource* ptr) const { | 27 size_t operator()(cc::PrioritizedResource* ptr) const { |
| 28 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 28 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 // Statistics copied at the time of pushTexturePrioritiesToBackings. | 209 // Statistics copied at the time of pushTexturePrioritiesToBackings. |
| 210 size_t m_memoryVisibleLastPushedBytes; | 210 size_t m_memoryVisibleLastPushedBytes; |
| 211 size_t m_memoryVisibleAndNearbyLastPushedBytes; | 211 size_t m_memoryVisibleAndNearbyLastPushedBytes; |
| 212 | 212 |
| 213 DISALLOW_COPY_AND_ASSIGN(PrioritizedResourceManager); | 213 DISALLOW_COPY_AND_ASSIGN(PrioritizedResourceManager); |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } // namespace cc | 216 } // namespace cc |
| 217 | 217 |
| 218 #endif // CC_PRIORITIZED_RESOURCE_MANAGER_H_ | 218 #endif // CC_RESOURCES_PRIORITIZED_RESOURCE_MANAGER_H_ |
| OLD | NEW |