OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #include "ui/gl/gl_bindings_skia_in_process.h" | 6 #include "ui/gl/gl_bindings_skia_in_process.h" |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 } | 548 } |
549 | 549 |
550 GLboolean StubGLUnmapBuffer(GLenum target) { | 550 GLboolean StubGLUnmapBuffer(GLenum target) { |
551 return glUnmapBuffer(target); | 551 return glUnmapBuffer(target); |
552 } | 552 } |
553 | 553 |
554 GLvoid StubGLUseProgram(GLuint program) { | 554 GLvoid StubGLUseProgram(GLuint program) { |
555 glUseProgram(program); | 555 glUseProgram(program); |
556 } | 556 } |
557 | 557 |
| 558 GLvoid StubGLVertexAttrib1f(GLuint indx, const GLfloat value) { |
| 559 glVertexAttrib1f(indx, value); |
| 560 } |
| 561 |
| 562 GLvoid StubGLVertexAttrib2fv(GLuint indx, const GLfloat* values) { |
| 563 glVertexAttrib2fv(indx, values); |
| 564 } |
| 565 |
| 566 GLvoid StubGLVertexAttrib3fv(GLuint indx, const GLfloat* values) { |
| 567 glVertexAttrib3fv(indx, values); |
| 568 } |
| 569 |
558 GLvoid StubGLVertexAttrib4fv(GLuint indx, const GLfloat* values) { | 570 GLvoid StubGLVertexAttrib4fv(GLuint indx, const GLfloat* values) { |
559 glVertexAttrib4fv(indx, values); | 571 glVertexAttrib4fv(indx, values); |
560 } | 572 } |
561 | 573 |
562 GLvoid StubGLVertexAttribPointer(GLuint indx, GLint size, GLenum type, | 574 GLvoid StubGLVertexAttribPointer(GLuint indx, GLint size, GLenum type, |
563 GLboolean normalized, GLsizei stride, | 575 GLboolean normalized, GLsizei stride, |
564 const void* ptr) { | 576 const void* ptr) { |
565 glVertexAttribPointer(indx, size, type, normalized, stride, ptr); | 577 glVertexAttribPointer(indx, size, type, normalized, stride, ptr); |
566 } | 578 } |
567 | 579 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 functions->fUniform3fv = StubGLUniform3fv; | 713 functions->fUniform3fv = StubGLUniform3fv; |
702 functions->fUniform3iv = StubGLUniform3iv; | 714 functions->fUniform3iv = StubGLUniform3iv; |
703 functions->fUniform4f = StubGLUniform4f; | 715 functions->fUniform4f = StubGLUniform4f; |
704 functions->fUniform4i = StubGLUniform4i; | 716 functions->fUniform4i = StubGLUniform4i; |
705 functions->fUniform4fv = StubGLUniform4fv; | 717 functions->fUniform4fv = StubGLUniform4fv; |
706 functions->fUniform4iv = StubGLUniform4iv; | 718 functions->fUniform4iv = StubGLUniform4iv; |
707 functions->fUniformMatrix2fv = StubGLUniformMatrix2fv; | 719 functions->fUniformMatrix2fv = StubGLUniformMatrix2fv; |
708 functions->fUniformMatrix3fv = StubGLUniformMatrix3fv; | 720 functions->fUniformMatrix3fv = StubGLUniformMatrix3fv; |
709 functions->fUniformMatrix4fv = StubGLUniformMatrix4fv; | 721 functions->fUniformMatrix4fv = StubGLUniformMatrix4fv; |
710 functions->fUseProgram = StubGLUseProgram; | 722 functions->fUseProgram = StubGLUseProgram; |
| 723 functions->fVertexAttrib1f = StubGLVertexAttrib1f; |
| 724 functions->fVertexAttrib2fv = StubGLVertexAttrib2fv; |
| 725 functions->fVertexAttrib3fv = StubGLVertexAttrib3fv; |
711 functions->fVertexAttrib4fv = StubGLVertexAttrib4fv; | 726 functions->fVertexAttrib4fv = StubGLVertexAttrib4fv; |
712 functions->fVertexAttribPointer = StubGLVertexAttribPointer; | 727 functions->fVertexAttribPointer = StubGLVertexAttribPointer; |
713 functions->fViewport = StubGLViewport; | 728 functions->fViewport = StubGLViewport; |
714 functions->fBindFramebuffer = StubGLBindFramebuffer; | 729 functions->fBindFramebuffer = StubGLBindFramebuffer; |
715 functions->fBindRenderbuffer = StubGLBindRenderbuffer; | 730 functions->fBindRenderbuffer = StubGLBindRenderbuffer; |
716 functions->fCheckFramebufferStatus = StubGLCheckFramebufferStatus; | 731 functions->fCheckFramebufferStatus = StubGLCheckFramebufferStatus; |
717 functions->fDeleteFramebuffers = StubGLDeleteFramebuffers; | 732 functions->fDeleteFramebuffers = StubGLDeleteFramebuffers; |
718 functions->fDeleteRenderbuffers = StubGLDeleteRenderbuffers; | 733 functions->fDeleteRenderbuffers = StubGLDeleteRenderbuffers; |
719 functions->fFramebufferRenderbuffer = StubGLFramebufferRenderbuffer; | 734 functions->fFramebufferRenderbuffer = StubGLFramebufferRenderbuffer; |
720 functions->fFramebufferTexture2D = StubGLFramebufferTexture2D; | 735 functions->fFramebufferTexture2D = StubGLFramebufferTexture2D; |
(...skipping 10 matching lines...) Expand all Loading... |
731 functions->fBlitFramebuffer = StubGLBlitFramebuffer; | 746 functions->fBlitFramebuffer = StubGLBlitFramebuffer; |
732 functions->fMapBuffer = StubGLMapBuffer; | 747 functions->fMapBuffer = StubGLMapBuffer; |
733 functions->fUnmapBuffer = StubGLUnmapBuffer; | 748 functions->fUnmapBuffer = StubGLUnmapBuffer; |
734 functions->fBindFragDataLocationIndexed = | 749 functions->fBindFragDataLocationIndexed = |
735 StubGLBindFragDataLocationIndexed; | 750 StubGLBindFragDataLocationIndexed; |
736 | 751 |
737 return interface; | 752 return interface; |
738 } | 753 } |
739 | 754 |
740 } // namespace gfx | 755 } // namespace gfx |
OLD | NEW |