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/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 interface->fBlendColor = glBlendColor; | 26 interface->fBlendColor = glBlendColor; |
27 interface->fBlendFunc = glBlendFunc; | 27 interface->fBlendFunc = glBlendFunc; |
28 interface->fBufferData = (GrGLBufferDataProc)glBufferData; | 28 interface->fBufferData = (GrGLBufferDataProc)glBufferData; |
29 interface->fBufferSubData = (GrGLBufferSubDataProc)glBufferSubData; | 29 interface->fBufferSubData = (GrGLBufferSubDataProc)glBufferSubData; |
30 interface->fClear = glClear; | 30 interface->fClear = glClear; |
31 interface->fClearColor = glClearColor; | 31 interface->fClearColor = glClearColor; |
32 interface->fClearStencil = glClearStencil; | 32 interface->fClearStencil = glClearStencil; |
33 interface->fColorMask = glColorMask; | 33 interface->fColorMask = glColorMask; |
34 interface->fCompileShader = glCompileShader; | 34 interface->fCompileShader = glCompileShader; |
35 interface->fCompressedTexImage2D = glCompressedTexImage2D; | 35 interface->fCompressedTexImage2D = glCompressedTexImage2D; |
| 36 interface->fCopyTexSubImage2D = glCopyTexSubImage2D; |
36 interface->fCreateProgram = glCreateProgram; | 37 interface->fCreateProgram = glCreateProgram; |
37 interface->fCreateShader = glCreateShader; | 38 interface->fCreateShader = glCreateShader; |
38 interface->fCullFace = glCullFace; | 39 interface->fCullFace = glCullFace; |
39 interface->fDeleteBuffers = glDeleteBuffers; | 40 interface->fDeleteBuffers = glDeleteBuffers; |
40 interface->fDeleteProgram = glDeleteProgram; | 41 interface->fDeleteProgram = glDeleteProgram; |
41 interface->fDeleteShader = glDeleteShader; | 42 interface->fDeleteShader = glDeleteShader; |
42 interface->fDeleteTextures = glDeleteTextures; | 43 interface->fDeleteTextures = glDeleteTextures; |
43 interface->fDepthMask = glDepthMask; | 44 interface->fDepthMask = glDepthMask; |
44 interface->fDisable = glDisable; | 45 interface->fDisable = glDisable; |
45 interface->fDisableVertexAttribArray = glDisableVertexAttribArray; | 46 interface->fDisableVertexAttribArray = glDisableVertexAttribArray; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 interface->fBindVertexArray = glBindVertexArrayOES; | 139 interface->fBindVertexArray = glBindVertexArrayOES; |
139 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; | 140 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; |
140 interface->fGenVertexArrays = glGenVertexArraysOES; | 141 interface->fGenVertexArrays = glGenVertexArraysOES; |
141 #endif | 142 #endif |
142 | 143 |
143 interface->fBindingsExported = kES2_GrGLBinding; | 144 interface->fBindingsExported = kES2_GrGLBinding; |
144 } | 145 } |
145 glInterface.get()->ref(); | 146 glInterface.get()->ref(); |
146 return glInterface.get(); | 147 return glInterface.get(); |
147 } | 148 } |
OLD | NEW |