OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
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 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "GrGLDefines.h" | 10 #include "GrGLDefines.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 functions->fBlendColor = noOpGLBlendColor; | 301 functions->fBlendColor = noOpGLBlendColor; |
302 functions->fBlendFunc = noOpGLBlendFunc; | 302 functions->fBlendFunc = noOpGLBlendFunc; |
303 functions->fBufferData = nullGLBufferData; | 303 functions->fBufferData = nullGLBufferData; |
304 functions->fBufferSubData = noOpGLBufferSubData; | 304 functions->fBufferSubData = noOpGLBufferSubData; |
305 functions->fClear = noOpGLClear; | 305 functions->fClear = noOpGLClear; |
306 functions->fClearColor = noOpGLClearColor; | 306 functions->fClearColor = noOpGLClearColor; |
307 functions->fClearStencil = noOpGLClearStencil; | 307 functions->fClearStencil = noOpGLClearStencil; |
308 functions->fColorMask = noOpGLColorMask; | 308 functions->fColorMask = noOpGLColorMask; |
309 functions->fCompileShader = noOpGLCompileShader; | 309 functions->fCompileShader = noOpGLCompileShader; |
310 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; | 310 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; |
| 311 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; |
311 functions->fCopyTexSubImage2D = noOpGLCopyTexSubImage2D; | 312 functions->fCopyTexSubImage2D = noOpGLCopyTexSubImage2D; |
312 functions->fCreateProgram = nullGLCreateProgram; | 313 functions->fCreateProgram = nullGLCreateProgram; |
313 functions->fCreateShader = nullGLCreateShader; | 314 functions->fCreateShader = nullGLCreateShader; |
314 functions->fCullFace = noOpGLCullFace; | 315 functions->fCullFace = noOpGLCullFace; |
315 functions->fDeleteBuffers = nullGLDeleteBuffers; | 316 functions->fDeleteBuffers = nullGLDeleteBuffers; |
316 functions->fDeleteProgram = nullGLDelete; | 317 functions->fDeleteProgram = nullGLDelete; |
317 functions->fDeleteQueries = noOpGLDeleteIds; | 318 functions->fDeleteQueries = noOpGLDeleteIds; |
318 functions->fDeleteShader = nullGLDelete; | 319 functions->fDeleteShader = nullGLDelete; |
319 functions->fDeleteTextures = noOpGLDeleteIds; | 320 functions->fDeleteTextures = noOpGLDeleteIds; |
320 functions->fDeleteVertexArrays = noOpGLDeleteIds; | 321 functions->fDeleteVertexArrays = noOpGLDeleteIds; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 419 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
419 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 420 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
420 functions->fMatrixLoadf = noOpGLMatrixLoadf; | 421 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
421 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 422 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
422 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 423 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
423 | 424 |
424 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 425 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
425 functions->fGetIntegerv); | 426 functions->fGetIntegerv); |
426 return interface; | 427 return interface; |
427 } | 428 } |
OLD | NEW |