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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 GrGLInterface::Functions* functions = &interface->fFunctions; | 350 GrGLInterface::Functions* functions = &interface->fFunctions; |
351 functions->fActiveTexture = nullGLActiveTexture; | 351 functions->fActiveTexture = nullGLActiveTexture; |
352 functions->fAttachShader = nullGLAttachShader; | 352 functions->fAttachShader = nullGLAttachShader; |
353 functions->fBeginQuery = nullGLBeginQuery; | 353 functions->fBeginQuery = nullGLBeginQuery; |
354 functions->fBindAttribLocation = nullGLBindAttribLocation; | 354 functions->fBindAttribLocation = nullGLBindAttribLocation; |
355 functions->fBindBuffer = nullGLBindBuffer; | 355 functions->fBindBuffer = nullGLBindBuffer; |
356 functions->fBindFragDataLocation = noOpGLBindFragDataLocation; | 356 functions->fBindFragDataLocation = noOpGLBindFragDataLocation; |
357 functions->fBindTexture = nullGLBindTexture; | 357 functions->fBindTexture = nullGLBindTexture; |
358 functions->fBindVertexArray = nullGLBindVertexArray; | 358 functions->fBindVertexArray = nullGLBindVertexArray; |
359 functions->fBlendColor = noOpGLBlendColor; | 359 functions->fBlendColor = noOpGLBlendColor; |
| 360 functions->fBlendEquation = noOpGLBlendEquation; |
360 functions->fBlendFunc = noOpGLBlendFunc; | 361 functions->fBlendFunc = noOpGLBlendFunc; |
361 functions->fBufferData = nullGLBufferData; | 362 functions->fBufferData = nullGLBufferData; |
362 functions->fBufferSubData = noOpGLBufferSubData; | 363 functions->fBufferSubData = noOpGLBufferSubData; |
363 functions->fClear = noOpGLClear; | 364 functions->fClear = noOpGLClear; |
364 functions->fClearColor = noOpGLClearColor; | 365 functions->fClearColor = noOpGLClearColor; |
365 functions->fClearStencil = noOpGLClearStencil; | 366 functions->fClearStencil = noOpGLClearStencil; |
366 functions->fColorMask = noOpGLColorMask; | 367 functions->fColorMask = noOpGLColorMask; |
367 functions->fCompileShader = noOpGLCompileShader; | 368 functions->fCompileShader = noOpGLCompileShader; |
368 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; | 369 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; |
369 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; | 370 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 481 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
481 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 482 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
482 functions->fMatrixLoadf = noOpGLMatrixLoadf; | 483 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
483 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 484 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
484 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 485 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
485 | 486 |
486 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 487 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
487 functions->fGetIntegerv); | 488 functions->fGetIntegerv); |
488 return interface; | 489 return interface; |
489 } | 490 } |
OLD | NEW |