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

Unified Diff: src/gpu/gl/SkNullGLContext.cpp

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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/GrGLProgram.h ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/SkNullGLContext.cpp
diff --git a/src/gpu/gl/SkNullGLContext.cpp b/src/gpu/gl/SkNullGLContext.cpp
index 1d67578cae1e369dee3fc375068446e004e4cdd7..c59fb98ad255f69d5b0c282de23b65ce95d7d93d 100644
--- a/src/gpu/gl/SkNullGLContext.cpp
+++ b/src/gpu/gl/SkNullGLContext.cpp
@@ -19,7 +19,7 @@ static SkNullGLContext::ContextState* current_context();
class BufferObj {
public:
- SK_DECLARE_INST_COUNT(BufferObj);
+
BufferObj(GrGLuint id) : fID(id), fDataPtr(NULL), fSize(0), fMapped(false) {}
~BufferObj() { SkDELETE_ARRAY(fDataPtr); }
@@ -51,7 +51,7 @@ private:
// This class maintains a sparsely populated array of buffer pointers.
class BufferManager {
public:
- SK_DECLARE_INST_COUNT(BufferManager);
+
BufferManager() : fFreeListHead(kFreeListEnd) {}
@@ -117,7 +117,7 @@ private:
*/
class SkNullGLContext::ContextState : public SkRefCnt {
public:
- SK_DECLARE_INST_COUNT(ContextState);
+
BufferManager fBufferManager;
GrGLuint fCurrArrayBuffer;
« no previous file with comments | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698