| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2014 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #include "gl/GrGLInterface.h" | |
| 9 | |
| 10 typedef GrGLFuncPtr (*GrGLGetProc)(void* ctx, const char name[]); | |
| 11 | |
| 12 | |
| 13 /** | |
| 14 * Generic function for creating a GrGLInterface for an either OpenGL or GLES. I
t calls | |
| 15 * get() to get each function address. ctx is a generic ptr passed to and interp
reted by get(). | |
| 16 */ | |
| 17 const GrGLInterface* GrGLAssembleInterface(void* ctx, GrGLGetProc get); | |
| 18 | |
| 19 /** | |
| 20 * Generic function for creating a GrGLInterface for an OpenGL (but not GLES) co
ntext. It calls | |
| 21 * get() to get each function address. ctx is a generic ptr passed to and interp
reted by get(). | |
| 22 */ | |
| 23 const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get); | |
| 24 | |
| 25 /** | |
| 26 * Generic function for creating a GrGLInterface for an OpenGL ES (but not Open
GL) context. It | |
| 27 * calls get() to get each function address. ctx is a generic ptr passed to and
interpreted by | |
| 28 * get(). | |
| 29 */ | |
| 30 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get); | |
| OLD | NEW |