| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 functions->fGetQueryiv = noOpGLGetQueryiv; | 320 functions->fGetQueryiv = noOpGLGetQueryiv; |
| 321 functions->fGetProgramInfoLog = noOpGLGetInfoLog; | 321 functions->fGetProgramInfoLog = noOpGLGetInfoLog; |
| 322 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; | 322 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; |
| 323 functions->fGetShaderInfoLog = noOpGLGetInfoLog; | 323 functions->fGetShaderInfoLog = noOpGLGetInfoLog; |
| 324 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; | 324 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; |
| 325 functions->fGetString = noOpGLGetString; | 325 functions->fGetString = noOpGLGetString; |
| 326 functions->fGetStringi = noOpGLGetStringi; | 326 functions->fGetStringi = noOpGLGetStringi; |
| 327 functions->fGetTexLevelParameteriv = noOpGLGetTexLevelParameteriv; | 327 functions->fGetTexLevelParameteriv = noOpGLGetTexLevelParameteriv; |
| 328 functions->fGetUniformLocation = noOpGLGetUniformLocation; | 328 functions->fGetUniformLocation = noOpGLGetUniformLocation; |
| 329 functions->fInsertEventMarker = noOpGLInsertEventMarker; | 329 functions->fInsertEventMarker = noOpGLInsertEventMarker; |
| 330 functions->fLoadIdentity = noOpGLLoadIdentity; | |
| 331 functions->fLoadMatrixf = noOpGLLoadMatrixf; | |
| 332 functions->fLineWidth = noOpGLLineWidth; | 330 functions->fLineWidth = noOpGLLineWidth; |
| 333 functions->fLinkProgram = noOpGLLinkProgram; | 331 functions->fLinkProgram = noOpGLLinkProgram; |
| 334 functions->fMatrixMode = noOpGLMatrixMode; | |
| 335 functions->fPixelStorei = nullGLPixelStorei; | 332 functions->fPixelStorei = nullGLPixelStorei; |
| 336 functions->fPopGroupMarker = noOpGLPopGroupMarker; | 333 functions->fPopGroupMarker = noOpGLPopGroupMarker; |
| 337 functions->fPushGroupMarker = noOpGLPushGroupMarker; | 334 functions->fPushGroupMarker = noOpGLPushGroupMarker; |
| 338 functions->fQueryCounter = noOpGLQueryCounter; | 335 functions->fQueryCounter = noOpGLQueryCounter; |
| 339 functions->fReadBuffer = noOpGLReadBuffer; | 336 functions->fReadBuffer = noOpGLReadBuffer; |
| 340 functions->fReadPixels = nullGLReadPixels; | 337 functions->fReadPixels = nullGLReadPixels; |
| 341 functions->fScissor = noOpGLScissor; | 338 functions->fScissor = noOpGLScissor; |
| 342 functions->fShaderSource = noOpGLShaderSource; | 339 functions->fShaderSource = noOpGLShaderSource; |
| 343 functions->fStencilFunc = noOpGLStencilFunc; | 340 functions->fStencilFunc = noOpGLStencilFunc; |
| 344 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; | 341 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; | 381 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; |
| 385 functions->fGenFramebuffers = noOpGLGenIds; | 382 functions->fGenFramebuffers = noOpGLGenIds; |
| 386 functions->fGenRenderbuffers = noOpGLGenIds; | 383 functions->fGenRenderbuffers = noOpGLGenIds; |
| 387 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; | 384 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; |
| 388 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; | 385 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; |
| 389 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; | 386 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; |
| 390 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; | 387 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; |
| 391 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 388 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
| 392 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 389 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
| 393 functions->fMapBuffer = nullGLMapBuffer; | 390 functions->fMapBuffer = nullGLMapBuffer; |
| 391 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
| 392 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
| 394 functions->fUnmapBuffer = nullGLUnmapBuffer; | 393 functions->fUnmapBuffer = nullGLUnmapBuffer; |
| 395 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 394 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
| 396 | 395 |
| 397 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 396 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
| 398 functions->fGetIntegerv); | 397 functions->fGetIntegerv); |
| 399 return interface; | 398 return interface; |
| 400 } | 399 } |
| OLD | NEW |