| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |