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

Side by Side Diff: src/gpu/gl/debug/GrDebugGL.cpp

Issue 1139803003: Remove high ref count tracker from GrFakeRefObj (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | src/gpu/gl/debug/GrFakeRefObj.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/debug/GrFakeRefObj.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698