OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "gl/SkNullGLContext.h" | 9 #include "gl/SkNullGLContext.h" |
10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 functions->fUniform4iv = noOpGLUniform4iv; | 507 functions->fUniform4iv = noOpGLUniform4iv; |
508 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; | 508 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; |
509 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; | 509 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; |
510 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; | 510 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; |
511 functions->fUnmapBuffer = nullGLUnmapBuffer; | 511 functions->fUnmapBuffer = nullGLUnmapBuffer; |
512 functions->fUseProgram = nullGLUseProgram; | 512 functions->fUseProgram = nullGLUseProgram; |
513 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; | 513 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; |
514 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; | 514 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; |
515 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; | 515 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; |
516 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; | 516 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; |
| 517 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor; |
| 518 functions->fVertexAttribIPointer = noOpGLVertexAttribIPointer; |
517 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; | 519 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; |
518 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor; | |
519 functions->fViewport = nullGLViewport; | 520 functions->fViewport = nullGLViewport; |
520 functions->fBindFramebuffer = nullGLBindFramebuffer; | 521 functions->fBindFramebuffer = nullGLBindFramebuffer; |
521 functions->fBindRenderbuffer = nullGLBindRenderbuffer; | 522 functions->fBindRenderbuffer = nullGLBindRenderbuffer; |
522 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; | 523 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; |
523 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; | 524 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; |
524 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; | 525 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; |
525 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; | 526 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; |
526 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; | 527 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; |
527 functions->fGenFramebuffers = noOpGLGenIds; | 528 functions->fGenFramebuffers = noOpGLGenIds; |
528 functions->fGenRenderbuffers = noOpGLGenIds; | 529 functions->fGenRenderbuffers = noOpGLGenIds; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 597 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
597 #endif | 598 #endif |
598 } | 599 } |
599 | 600 |
600 SkNullGLContext::~SkNullGLContext() { | 601 SkNullGLContext::~SkNullGLContext() { |
601 this->teardown(); | 602 this->teardown(); |
602 fState->unref(); | 603 fState->unref(); |
603 } | 604 } |
604 | 605 |
605 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } | 606 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } |
OLD | NEW |