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

Side by Side Diff: include/gpu/gl/GrGLInterface.h

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 unified diff | Download patch
« no previous file with comments | « include/gpu/SkGrPixelRef.h ('k') | include/gpu/gl/SkGLContext.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLInterface_DEFINED 8 #ifndef GrGLInterface_DEFINED
9 #define GrGLInterface_DEFINED 9 #define GrGLInterface_DEFINED
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 public: 114 public:
115 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {} 115 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {}
116 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; } 116 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; }
117 private: 117 private:
118 GLPtr<FNPTR_TYPE>* fBase; 118 GLPtr<FNPTR_TYPE>* fBase;
119 }; 119 };
120 120
121 typedef SkRefCnt INHERITED; 121 typedef SkRefCnt INHERITED;
122 122
123 public: 123 public:
124 SK_DECLARE_INST_COUNT(GrGLInterface) 124
125 125
126 GrGLInterface(); 126 GrGLInterface();
127 127
128 static GrGLInterface* NewClone(const GrGLInterface*); 128 static GrGLInterface* NewClone(const GrGLInterface*);
129 129
130 // Validates that the GrGLInterface supports its advertised standard. This m eans the necessary 130 // Validates that the GrGLInterface supports its advertised standard. This m eans the necessary
131 // function pointers have been initialized for both the GL version and any a dvertised 131 // function pointers have been initialized for both the GL version and any a dvertised
132 // extensions. 132 // extensions.
133 bool validate() const; 133 bool validate() const;
134 134
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 #if GR_GL_PER_GL_FUNC_CALLBACK 498 #if GR_GL_PER_GL_FUNC_CALLBACK
499 GrGLInterfaceCallbackProc fCallback; 499 GrGLInterfaceCallbackProc fCallback;
500 GrGLInterfaceCallbackData fCallbackData; 500 GrGLInterfaceCallbackData fCallbackData;
501 #endif 501 #endif
502 502
503 // This exists for internal testing. 503 // This exists for internal testing.
504 virtual void abandon() const {} 504 virtual void abandon() const {}
505 }; 505 };
506 506
507 #endif 507 #endif
OLDNEW
« no previous file with comments | « include/gpu/SkGrPixelRef.h ('k') | include/gpu/gl/SkGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698