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

Unified Diff: src/gpu/gl/debug/GrFakeRefObj.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/debug/GrDebugGL.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/debug/GrFakeRefObj.h
diff --git a/src/gpu/gl/debug/GrFakeRefObj.h b/src/gpu/gl/debug/GrFakeRefObj.h
index 84ac499c7587b8271e1bdbdf492db2bc9df3e63e..27e27ce3cefa9ac0be90db6be9b91250df711669 100644
--- a/src/gpu/gl/debug/GrFakeRefObj.h
+++ b/src/gpu/gl/debug/GrFakeRefObj.h
@@ -22,7 +22,6 @@ class GrFakeRefObj : SkNoncopyable {
public:
GrFakeRefObj()
: fRef(0)
- , fHighRefCount(0)
, fMarkedForDeletion(false)
, fDeleted(false) {
@@ -35,9 +34,6 @@ public:
void ref() {
fRef++;
- if (fHighRefCount < fRef) {
- fHighRefCount = fRef;
- }
}
void unref() {
fRef--;
@@ -51,7 +47,6 @@ public:
}
}
int getRefCount() const { return fRef; }
- int getHighRefCount() const { return fHighRefCount; }
GrGLuint getID() const { return fID; }
@@ -69,7 +64,6 @@ public:
protected:
private:
int fRef; // ref count
- int fHighRefCount; // high water mark of the ref count
GrGLuint fID; // globally unique ID
bool fMarkedForDeletion;
// The deleted flag is only set when OpenGL thinks the object is deleted
« no previous file with comments | « src/gpu/gl/debug/GrDebugGL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698