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 CCPrioritizedTexture_h | 5 #ifndef CCPrioritizedTexture_h |
6 #define CCPrioritizedTexture_h | 6 #define CCPrioritizedTexture_h |
7 | 7 |
8 #include "CCPriorityCalculator.h" | 8 #include "CCPriorityCalculator.h" |
9 #include "CCResourceProvider.h" | 9 #include "CCResourceProvider.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 | 14 |
15 namespace WebCore { | 15 namespace cc { |
16 | 16 |
17 class CCPrioritizedTextureManager; | 17 class CCPrioritizedTextureManager; |
18 | 18 |
19 class CCPrioritizedTexture { | 19 class CCPrioritizedTexture { |
20 WTF_MAKE_NONCOPYABLE(CCPrioritizedTexture); | 20 WTF_MAKE_NONCOPYABLE(CCPrioritizedTexture); |
21 public: | 21 public: |
22 static PassOwnPtr<CCPrioritizedTexture> create(CCPrioritizedTextureManager*
manager, IntSize size, GC3Denum format) | 22 static PassOwnPtr<CCPrioritizedTexture> create(CCPrioritizedTextureManager*
manager, IntSize size, GC3Denum format) |
23 { | 23 { |
24 return adoptPtr(new CCPrioritizedTexture(manager, size, format)); | 24 return adoptPtr(new CCPrioritizedTexture(manager, size, format)); |
25 } | 25 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 size_t m_bytes; | 109 size_t m_bytes; |
110 | 110 |
111 size_t m_priority; | 111 size_t m_priority; |
112 bool m_isAbovePriorityCutoff; | 112 bool m_isAbovePriorityCutoff; |
113 bool m_isSelfManaged; | 113 bool m_isSelfManaged; |
114 | 114 |
115 Backing* m_backing; | 115 Backing* m_backing; |
116 CCPrioritizedTextureManager* m_manager; | 116 CCPrioritizedTextureManager* m_manager; |
117 }; | 117 }; |
118 | 118 |
119 } // WebCore | 119 } // namespace cc |
120 | 120 |
121 #endif | 121 #endif |
OLD | NEW |