OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrDebugGL.h" | 9 #include "GrDebugGL.h" |
10 #include "GrTextureObj.h" | 10 #include "GrTextureObj.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 GrAlwaysAssert(!fProgram->getDeleted()); | 198 GrAlwaysAssert(!fProgram->getDeleted()); |
199 fProgram->ref(); | 199 fProgram->ref(); |
200 | 200 |
201 GrAlwaysAssert(!fProgram->getInUse()); | 201 GrAlwaysAssert(!fProgram->getInUse()); |
202 fProgram->setInUse(); | 202 fProgram->setInUse(); |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
206 void GrDebugGL::report() const { | 206 void GrDebugGL::report() const { |
207 for (int i = 0; i < fObjects.count(); ++i) { | 207 for (int i = 0; i < fObjects.count(); ++i) { |
208 GrAlwaysAssert(0 < fObjects[i]->getHighRefCount()); | |
209 if (!fAbandoned) { | 208 if (!fAbandoned) { |
210 GrAlwaysAssert(0 == fObjects[i]->getRefCount()); | 209 GrAlwaysAssert(0 == fObjects[i]->getRefCount()); |
211 GrAlwaysAssert(fObjects[i]->getDeleted()); | 210 GrAlwaysAssert(fObjects[i]->getDeleted()); |
212 } | 211 } |
213 } | 212 } |
214 } | 213 } |
OLD | NEW |