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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/dcheck.h" |
10 #include "CCPriorityCalculator.h" | 11 #include "CCPriorityCalculator.h" |
11 #include "CCResourceProvider.h" | 12 #include "CCResourceProvider.h" |
12 #include "CCTexture.h" | 13 #include "CCTexture.h" |
13 #include "GraphicsContext3D.h" | 14 #include "GraphicsContext3D.h" |
14 #include "IntRect.h" | 15 #include "IntRect.h" |
15 #include "IntSize.h" | 16 #include "IntSize.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 | 19 |
19 class CCPrioritizedTextureManager; | 20 class CCPrioritizedTextureManager; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 private: | 105 private: |
105 friend class CCPrioritizedTexture; | 106 friend class CCPrioritizedTexture; |
106 CCPrioritizedTexture* m_owner; | 107 CCPrioritizedTexture* m_owner; |
107 int m_priorityAtLastPriorityUpdate; | 108 int m_priorityAtLastPriorityUpdate; |
108 bool m_wasAbovePriorityCutoffAtLastPriorityUpdate; | 109 bool m_wasAbovePriorityCutoffAtLastPriorityUpdate; |
109 | 110 |
110 // Set if this is currently-drawing impl tree. | 111 // Set if this is currently-drawing impl tree. |
111 bool m_inDrawingImplTree; | 112 bool m_inDrawingImplTree; |
112 | 113 |
113 bool m_resourceHasBeenDeleted; | 114 bool m_resourceHasBeenDeleted; |
114 #ifndef NDEBUG | 115 #if CC_DCHECK_ENABLED() |
115 CCResourceProvider* m_resourceProvider; | 116 CCResourceProvider* m_resourceProvider; |
116 #endif | 117 #endif |
117 | 118 |
118 DISALLOW_COPY_AND_ASSIGN(Backing); | 119 DISALLOW_COPY_AND_ASSIGN(Backing); |
119 }; | 120 }; |
120 | 121 |
121 CCPrioritizedTexture(CCPrioritizedTextureManager*, IntSize, GC3Denum format)
; | 122 CCPrioritizedTexture(CCPrioritizedTextureManager*, IntSize, GC3Denum format)
; |
122 | 123 |
123 bool isAbovePriorityCutoff() { return m_isAbovePriorityCutoff; } | 124 bool isAbovePriorityCutoff() { return m_isAbovePriorityCutoff; } |
124 void setAbovePriorityCutoff(bool isAbovePriorityCutoff) { m_isAbovePriorityC
utoff = isAbovePriorityCutoff; } | 125 void setAbovePriorityCutoff(bool isAbovePriorityCutoff) { m_isAbovePriorityC
utoff = isAbovePriorityCutoff; } |
(...skipping 13 matching lines...) Expand all Loading... |
138 | 139 |
139 Backing* m_backing; | 140 Backing* m_backing; |
140 CCPrioritizedTextureManager* m_manager; | 141 CCPrioritizedTextureManager* m_manager; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture); | 143 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace cc | 146 } // namespace cc |
146 | 147 |
147 #endif | 148 #endif |
OLD | NEW |