OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.h" | 9 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.h" |
10 | 10 |
11 #include "gpu/command_buffer/client/gles2_implementation.h" | 11 #include "gpu/command_buffer/client/gles2_implementation.h" |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 void VertexAttribPointer( | 622 void VertexAttribPointer( |
623 PP_Resource context, GLuint indx, GLint size, GLenum type, | 623 PP_Resource context, GLuint indx, GLint size, GLenum type, |
624 GLboolean normalized, GLsizei stride, const void* ptr) { | 624 GLboolean normalized, GLsizei stride, const void* ptr) { |
625 PluginGraphics3D::implFromResource( | 625 PluginGraphics3D::implFromResource( |
626 context)->VertexAttribPointer(indx, size, type, normalized, stride, ptr); | 626 context)->VertexAttribPointer(indx, size, type, normalized, stride, ptr); |
627 } | 627 } |
628 void Viewport( | 628 void Viewport( |
629 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height) { | 629 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height) { |
630 PluginGraphics3D::implFromResource(context)->Viewport(x, y, width, height); | 630 PluginGraphics3D::implFromResource(context)->Viewport(x, y, width, height); |
631 } | 631 } |
632 void BlitFramebufferEXT( | |
633 PP_Resource context, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, | |
634 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, | |
635 GLenum filter) { | |
636 PluginGraphics3D::implFromResource( | |
637 context)->BlitFramebufferEXT( | |
638 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, | |
639 filter); | |
640 } | |
641 void RenderbufferStorageMultisampleEXT( | |
642 PP_Resource context, GLenum target, GLsizei samples, GLenum internalformat, | |
643 GLsizei width, GLsizei height) { | |
644 PluginGraphics3D::implFromResource( | |
645 context)->RenderbufferStorageMultisampleEXT( | |
646 target, samples, internalformat, width, height); | |
647 } | |
648 GLboolean EnableFeatureCHROMIUM(PP_Resource context, const char* feature) { | |
649 return PluginGraphics3D::implFromResource( | |
650 context)->EnableFeatureCHROMIUM(feature); | |
651 } | |
652 void* MapBufferSubDataCHROMIUM( | |
653 PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size, | |
654 GLenum access) { | |
655 return PluginGraphics3D::implFromResource( | |
656 context)->MapBufferSubDataCHROMIUM(target, offset, size, access); | |
657 } | |
658 void UnmapBufferSubDataCHROMIUM(PP_Resource context, const void* mem) { | |
659 PluginGraphics3D::implFromResource(context)->UnmapBufferSubDataCHROMIUM(mem); | |
660 } | |
661 void* MapTexSubImage2DCHROMIUM( | |
662 PP_Resource context, GLenum target, GLint level, GLint xoffset, | |
663 GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, | |
664 GLenum access) { | |
665 return PluginGraphics3D::implFromResource( | |
666 context)->MapTexSubImage2DCHROMIUM( | |
667 target, level, xoffset, yoffset, width, height, format, type, | |
668 access); | |
669 } | |
670 void UnmapTexSubImage2DCHROMIUM(PP_Resource context, const void* mem) { | |
671 PluginGraphics3D::implFromResource(context)->UnmapTexSubImage2DCHROMIUM(mem); | |
672 } | |
673 void DrawArraysInstancedANGLE( | |
674 PP_Resource context, GLenum mode, GLint first, GLsizei count, | |
675 GLsizei primcount) { | |
676 PluginGraphics3D::implFromResource( | |
677 context)->DrawArraysInstancedANGLE(mode, first, count, primcount); | |
678 } | |
679 void DrawElementsInstancedANGLE( | |
680 PP_Resource context, GLenum mode, GLsizei count, GLenum type, | |
681 const void* indices, GLsizei primcount) { | |
682 PluginGraphics3D::implFromResource( | |
683 context)->DrawElementsInstancedANGLE( | |
684 mode, count, type, indices, primcount); | |
685 } | |
686 void VertexAttribDivisorANGLE( | |
687 PP_Resource context, GLuint index, GLuint divisor) { | |
688 PluginGraphics3D::implFromResource( | |
689 context)->VertexAttribDivisorANGLE(index, divisor); | |
690 } | |
691 | 632 |
692 } // namespace | 633 } // namespace |
693 | 634 |
694 const PPB_OpenGLES2* PluginGraphics3D::GetOpenGLESInterface() { | 635 const PPB_OpenGLES2* PluginGraphics3D::GetOpenGLESInterface() { |
695 const static struct PPB_OpenGLES2 ppb_opengles = { | 636 const static struct PPB_OpenGLES2 ppb_opengles = { |
696 &ActiveTexture, | 637 &ActiveTexture, |
697 &AttachShader, | 638 &AttachShader, |
698 &BindAttribLocation, | 639 &BindAttribLocation, |
699 &BindBuffer, | 640 &BindBuffer, |
700 &BindFramebuffer, | 641 &BindFramebuffer, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 &VertexAttrib2fv, | 772 &VertexAttrib2fv, |
832 &VertexAttrib3f, | 773 &VertexAttrib3f, |
833 &VertexAttrib3fv, | 774 &VertexAttrib3fv, |
834 &VertexAttrib4f, | 775 &VertexAttrib4f, |
835 &VertexAttrib4fv, | 776 &VertexAttrib4fv, |
836 &VertexAttribPointer, | 777 &VertexAttribPointer, |
837 &Viewport | 778 &Viewport |
838 }; | 779 }; |
839 return &ppb_opengles; | 780 return &ppb_opengles; |
840 } | 781 } |
841 const PPB_OpenGLES2InstancedArrays_Dev* | |
842 PluginGraphics3D::GetOpenGLESInstancedArraysInterface() { | |
843 const static struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles = { | |
844 &DrawArraysInstancedANGLE, | |
845 &DrawElementsInstancedANGLE, | |
846 &VertexAttribDivisorANGLE | |
847 }; | |
848 return &ppb_opengles; | |
849 } | |
850 const PPB_OpenGLES2FramebufferBlit_Dev* | |
851 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface() { | |
852 const static struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles = { | |
853 &BlitFramebufferEXT | |
854 }; | |
855 return &ppb_opengles; | |
856 } | |
857 const PPB_OpenGLES2FramebufferMultisample_Dev* | |
858 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface() { | |
859 const static struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles = { | |
860 &RenderbufferStorageMultisampleEXT | |
861 }; | |
862 return &ppb_opengles; | |
863 } | |
864 const PPB_OpenGLES2ChromiumEnableFeature_Dev* | |
865 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface() { | |
866 const static struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles = { | |
867 &EnableFeatureCHROMIUM | |
868 }; | |
869 return &ppb_opengles; | |
870 } | |
871 const PPB_OpenGLES2ChromiumMapSub_Dev* | |
872 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface() { | |
873 const static struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles = { | |
874 &MapBufferSubDataCHROMIUM, | |
875 &UnmapBufferSubDataCHROMIUM, | |
876 &MapTexSubImage2DCHROMIUM, | |
877 &UnmapTexSubImage2DCHROMIUM | |
878 }; | |
879 return &ppb_opengles; | |
880 } | |
OLD | NEW |