Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: cc/prioritized_texture.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove-rebased-asserts Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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()
slavi 2012/10/16 20:31:46 Keep this as #ifndef NDEBUG?
danakj 2012/10/16 20:36:18 No, we want debug checks on the trybots..
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698