OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 GR_GL_GET_PROC(BufferData); | 61 GR_GL_GET_PROC(BufferData); |
62 GR_GL_GET_PROC(BufferSubData); | 62 GR_GL_GET_PROC(BufferSubData); |
63 interface->fClear = glClear; | 63 interface->fClear = glClear; |
64 interface->fClearColor = glClearColor; | 64 interface->fClearColor = glClearColor; |
65 interface->fClearStencil = glClearStencil; | 65 interface->fClearStencil = glClearStencil; |
66 interface->fColorMask = glColorMask; | 66 interface->fColorMask = glColorMask; |
67 GR_GL_GET_PROC(CompileShader); | 67 GR_GL_GET_PROC(CompileShader); |
68 interface->fCompressedTexImage2D = glCompressedTexImage2D; | 68 interface->fCompressedTexImage2D = glCompressedTexImage2D; |
| 69 interface->fCopyTexSubImage2D = glCopyTexSubImage2D; |
69 GR_GL_GET_PROC(CreateProgram); | 70 GR_GL_GET_PROC(CreateProgram); |
70 GR_GL_GET_PROC(CreateShader); | 71 GR_GL_GET_PROC(CreateShader); |
71 interface->fCullFace = glCullFace; | 72 interface->fCullFace = glCullFace; |
72 GR_GL_GET_PROC(DeleteBuffers); | 73 GR_GL_GET_PROC(DeleteBuffers); |
73 GR_GL_GET_PROC(DeleteProgram); | 74 GR_GL_GET_PROC(DeleteProgram); |
74 GR_GL_GET_PROC(DeleteQueries); | 75 GR_GL_GET_PROC(DeleteQueries); |
75 GR_GL_GET_PROC(DeleteShader); | 76 GR_GL_GET_PROC(DeleteShader); |
76 interface->fDeleteTextures = glDeleteTextures; | 77 interface->fDeleteTextures = glDeleteTextures; |
77 interface->fDepthMask = glDepthMask; | 78 interface->fDepthMask = glDepthMask; |
78 interface->fDisable = glDisable; | 79 interface->fDisable = glDisable; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 delete interface; | 213 delete interface; |
213 return NULL; | 214 return NULL; |
214 } | 215 } |
215 interface->fBindingsExported = kDesktop_GrGLBinding; | 216 interface->fBindingsExported = kDesktop_GrGLBinding; |
216 | 217 |
217 return interface; | 218 return interface; |
218 } else { | 219 } else { |
219 return NULL; | 220 return NULL; |
220 } | 221 } |
221 } | 222 } |
OLD | NEW |