| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 public: | 121 public: |
| 122 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {} | 122 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {} |
| 123 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; } | 123 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; } |
| 124 private: | 124 private: |
| 125 GLPtr<FNPTR_TYPE>* fBase; | 125 GLPtr<FNPTR_TYPE>* fBase; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 typedef SkRefCnt INHERITED; | 128 typedef SkRefCnt INHERITED; |
| 129 | 129 |
| 130 public: | 130 public: |
| 131 | |
| 132 | |
| 133 GrGLInterface(); | 131 GrGLInterface(); |
| 134 | 132 |
| 135 static GrGLInterface* NewClone(const GrGLInterface*); | 133 static GrGLInterface* NewClone(const GrGLInterface*); |
| 136 | 134 |
| 137 // Validates that the GrGLInterface supports its advertised standard. This m
eans the necessary | 135 // Validates that the GrGLInterface supports its advertised standard. This m
eans the necessary |
| 138 // function pointers have been initialized for both the GL version and any a
dvertised | 136 // function pointers have been initialized for both the GL version and any a
dvertised |
| 139 // extensions. | 137 // extensions. |
| 140 bool validate() const; | 138 bool validate() const; |
| 141 | 139 |
| 142 // Indicates the type of GL implementation | 140 // Indicates the type of GL implementation |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 GLPtr<GrGLNamedFramebufferParameteriProc> fNamedFramebufferParameteri; | 492 GLPtr<GrGLNamedFramebufferParameteriProc> fNamedFramebufferParameteri; |
| 495 | 493 |
| 496 /* KHR_debug */ | 494 /* KHR_debug */ |
| 497 GLPtr<GrGLDebugMessageControlProc> fDebugMessageControl; | 495 GLPtr<GrGLDebugMessageControlProc> fDebugMessageControl; |
| 498 GLPtr<GrGLDebugMessageInsertProc> fDebugMessageInsert; | 496 GLPtr<GrGLDebugMessageInsertProc> fDebugMessageInsert; |
| 499 GLPtr<GrGLDebugMessageCallbackProc> fDebugMessageCallback; | 497 GLPtr<GrGLDebugMessageCallbackProc> fDebugMessageCallback; |
| 500 GLPtr<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; | 498 GLPtr<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; |
| 501 GLPtr<GrGLPushDebugGroupProc> fPushDebugGroup; | 499 GLPtr<GrGLPushDebugGroupProc> fPushDebugGroup; |
| 502 GLPtr<GrGLPopDebugGroupProc> fPopDebugGroup; | 500 GLPtr<GrGLPopDebugGroupProc> fPopDebugGroup; |
| 503 GLPtr<GrGLObjectLabelProc> fObjectLabel; | 501 GLPtr<GrGLObjectLabelProc> fObjectLabel; |
| 502 |
| 503 /* EGL functions */ |
| 504 GLPtr<GrEGLCreateImageProc> fCreateImage; |
| 505 GLPtr<GrEGLDestroyImageProc> fDestroyImage; |
| 504 } fFunctions; | 506 } fFunctions; |
| 505 | 507 |
| 506 // Per-GL func callback | 508 // Per-GL func callback |
| 507 #if GR_GL_PER_GL_FUNC_CALLBACK | 509 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 508 GrGLInterfaceCallbackProc fCallback; | 510 GrGLInterfaceCallbackProc fCallback; |
| 509 GrGLInterfaceCallbackData fCallbackData; | 511 GrGLInterfaceCallbackData fCallbackData; |
| 510 #endif | 512 #endif |
| 511 | 513 |
| 512 // This exists for internal testing. | 514 // This exists for internal testing. |
| 513 virtual void abandon() const {} | 515 virtual void abandon() const {} |
| 514 }; | 516 }; |
| 515 | 517 |
| 516 #endif | 518 #endif |
| OLD | NEW |