OLD | NEW |
1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc | 1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc |
2 | 2 |
3 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
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 #include "gl/GrGLInterface.h" | 7 #include "gl/GrGLInterface.h" |
8 | 8 |
9 #ifndef GL_GLEXT_PROTOTYPES | 9 #ifndef GL_GLEXT_PROTOTYPES |
10 #define GL_GLEXT_PROTOTYPES | 10 #define GL_GLEXT_PROTOTYPES |
(...skipping 19 matching lines...) Expand all Loading... |
30 interface->fBlendColor = glBlendColor; | 30 interface->fBlendColor = glBlendColor; |
31 interface->fBlendFunc = glBlendFunc; | 31 interface->fBlendFunc = glBlendFunc; |
32 interface->fBufferData = glBufferData; | 32 interface->fBufferData = glBufferData; |
33 interface->fBufferSubData = glBufferSubData; | 33 interface->fBufferSubData = glBufferSubData; |
34 interface->fClear = glClear; | 34 interface->fClear = glClear; |
35 interface->fClearColor = glClearColor; | 35 interface->fClearColor = glClearColor; |
36 interface->fClearStencil = glClearStencil; | 36 interface->fClearStencil = glClearStencil; |
37 interface->fColorMask = glColorMask; | 37 interface->fColorMask = glColorMask; |
38 interface->fCompileShader = glCompileShader; | 38 interface->fCompileShader = glCompileShader; |
39 interface->fCompressedTexImage2D = glCompressedTexImage2D; | 39 interface->fCompressedTexImage2D = glCompressedTexImage2D; |
| 40 interface->fCopyTexSubImage2D = glCopyTexSubImage2D; |
40 interface->fCreateProgram = glCreateProgram; | 41 interface->fCreateProgram = glCreateProgram; |
41 interface->fCreateShader = glCreateShader; | 42 interface->fCreateShader = glCreateShader; |
42 interface->fCullFace = glCullFace; | 43 interface->fCullFace = glCullFace; |
43 interface->fDeleteBuffers = glDeleteBuffers; | 44 interface->fDeleteBuffers = glDeleteBuffers; |
44 interface->fDeleteProgram = glDeleteProgram; | 45 interface->fDeleteProgram = glDeleteProgram; |
45 interface->fDeleteShader = glDeleteShader; | 46 interface->fDeleteShader = glDeleteShader; |
46 interface->fDeleteTextures = glDeleteTextures; | 47 interface->fDeleteTextures = glDeleteTextures; |
47 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; | 48 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; |
48 interface->fDepthMask = glDepthMask; | 49 interface->fDepthMask = glDepthMask; |
49 interface->fDisable = glDisable; | 50 interface->fDisable = glDisable; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 interface->fMapBuffer = glMapBufferOES; | 138 interface->fMapBuffer = glMapBufferOES; |
138 interface->fUnmapBuffer = glUnmapBufferOES; | 139 interface->fUnmapBuffer = glUnmapBufferOES; |
139 #else | 140 #else |
140 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); | 141 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); |
141 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); | 142 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); |
142 #endif | 143 #endif |
143 } | 144 } |
144 glInterface.get()->ref(); | 145 glInterface.get()->ref(); |
145 return glInterface.get(); | 146 return glInterface.get(); |
146 } | 147 } |
OLD | NEW |