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 "CCPrioritizedTexture.h" | 8 #include "CCPrioritizedTexture.h" |
9 #include "CCPriorityCalculator.h" | 9 #include "CCPriorityCalculator.h" |
10 #include "CCTexture.h" | 10 #include "CCTexture.h" |
11 #include "GraphicsContext3D.h" | 11 #include "GraphicsContext3D.h" |
12 #include "IntRect.h" | 12 #include "IntRect.h" |
13 #include "IntSize.h" | 13 #include "IntSize.h" |
14 #include <wtf/HashSet.h> | 14 #include <wtf/HashSet.h> |
15 #include <wtf/ListHashSet.h> | 15 #include <wtf/ListHashSet.h> |
16 #include <wtf/Vector.h> | 16 #include <wtf/Vector.h> |
17 | 17 |
18 namespace WebCore { | 18 namespace cc { |
19 | 19 |
20 class CCPrioritizedTexture; | 20 class CCPrioritizedTexture; |
21 class CCPriorityCalculator; | 21 class CCPriorityCalculator; |
22 | 22 |
23 class CCPrioritizedTextureManager { | 23 class CCPrioritizedTextureManager { |
24 WTF_MAKE_NONCOPYABLE(CCPrioritizedTextureManager); | 24 WTF_MAKE_NONCOPYABLE(CCPrioritizedTextureManager); |
25 public: | 25 public: |
26 static PassOwnPtr<CCPrioritizedTextureManager> create(size_t maxMemoryLimitB
ytes, int maxTextureSize, int pool) | 26 static PassOwnPtr<CCPrioritizedTextureManager> create(size_t maxMemoryLimitB
ytes, int maxTextureSize, int pool) |
27 { | 27 { |
28 return adoptPtr(new CCPrioritizedTextureManager(maxMemoryLimitBytes, max
TextureSize, pool)); | 28 return adoptPtr(new CCPrioritizedTextureManager(maxMemoryLimitBytes, max
TextureSize, pool)); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 typedef Vector<CCPrioritizedTexture*> TextureVector; | 108 typedef Vector<CCPrioritizedTexture*> TextureVector; |
109 typedef Vector<CCPrioritizedTexture::Backing*> BackingVector; | 109 typedef Vector<CCPrioritizedTexture::Backing*> BackingVector; |
110 | 110 |
111 TextureSet m_textures; | 111 TextureSet m_textures; |
112 BackingSet m_backings; | 112 BackingSet m_backings; |
113 | 113 |
114 TextureVector m_tempTextureVector; | 114 TextureVector m_tempTextureVector; |
115 BackingVector m_tempBackingVector; | 115 BackingVector m_tempBackingVector; |
116 }; | 116 }; |
117 | 117 |
118 } // WebCore | 118 } // cc |
119 | 119 |
120 #endif | 120 #endif |
OLD | NEW |