| 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 #include "gl/GrGLAssembleInterface.h" | 8 #include "gl/GrGLAssembleInterface.h" |
| 9 #include "gl/GrGLExtensions.h" | 9 #include "gl/GrGLExtensions.h" |
| 10 #include "gl/GrGLUtil.h" | 10 #include "gl/GrGLUtil.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 functions->fBlendColor = glBlendColor; | 37 functions->fBlendColor = glBlendColor; |
| 38 functions->fBlendFunc = glBlendFunc; | 38 functions->fBlendFunc = glBlendFunc; |
| 39 functions->fBufferData = glBufferData; | 39 functions->fBufferData = glBufferData; |
| 40 functions->fBufferSubData = glBufferSubData; | 40 functions->fBufferSubData = glBufferSubData; |
| 41 functions->fClear = glClear; | 41 functions->fClear = glClear; |
| 42 functions->fClearColor = glClearColor; | 42 functions->fClearColor = glClearColor; |
| 43 functions->fClearStencil = glClearStencil; | 43 functions->fClearStencil = glClearStencil; |
| 44 functions->fColorMask = glColorMask; | 44 functions->fColorMask = glColorMask; |
| 45 functions->fCompileShader = glCompileShader; | 45 functions->fCompileShader = glCompileShader; |
| 46 functions->fCompressedTexImage2D = glCompressedTexImage2D; | 46 functions->fCompressedTexImage2D = glCompressedTexImage2D; |
| 47 functions->fCompressedTexSubImage2D = glCompressedTexSubImage2D; |
| 47 functions->fCopyTexSubImage2D = glCopyTexSubImage2D; | 48 functions->fCopyTexSubImage2D = glCopyTexSubImage2D; |
| 48 functions->fCreateProgram = glCreateProgram; | 49 functions->fCreateProgram = glCreateProgram; |
| 49 functions->fCreateShader = glCreateShader; | 50 functions->fCreateShader = glCreateShader; |
| 50 functions->fCullFace = glCullFace; | 51 functions->fCullFace = glCullFace; |
| 51 functions->fDeleteBuffers = glDeleteBuffers; | 52 functions->fDeleteBuffers = glDeleteBuffers; |
| 52 functions->fDeleteProgram = glDeleteProgram; | 53 functions->fDeleteProgram = glDeleteProgram; |
| 53 functions->fDeleteShader = glDeleteShader; | 54 functions->fDeleteShader = glDeleteShader; |
| 54 functions->fDeleteTextures = glDeleteTextures; | 55 functions->fDeleteTextures = glDeleteTextures; |
| 55 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; | 56 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; |
| 56 functions->fDepthMask = glDepthMask; | 57 functions->fDepthMask = glDepthMask; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 interface->fExtensions.swap(&extensions); | 267 interface->fExtensions.swap(&extensions); |
| 267 } | 268 } |
| 268 | 269 |
| 269 return interface; | 270 return interface; |
| 270 } else if (kGL_GrGLStandard == standard) { | 271 } else if (kGL_GrGLStandard == standard) { |
| 271 return create_desktop_interface(); | 272 return create_desktop_interface(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 return NULL; | 275 return NULL; |
| 275 } | 276 } |
| OLD | NEW |