Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_opengles.cc

Issue 9601020: Add OpenGL occlusion query support to pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to trunk Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // 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
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, 638 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
639 filter); 639 filter);
640 } 640 }
641 void RenderbufferStorageMultisampleEXT( 641 void RenderbufferStorageMultisampleEXT(
642 PP_Resource context, GLenum target, GLsizei samples, GLenum internalformat, 642 PP_Resource context, GLenum target, GLsizei samples, GLenum internalformat,
643 GLsizei width, GLsizei height) { 643 GLsizei width, GLsizei height) {
644 PluginGraphics3D::implFromResource( 644 PluginGraphics3D::implFromResource(
645 context)->RenderbufferStorageMultisampleEXT( 645 context)->RenderbufferStorageMultisampleEXT(
646 target, samples, internalformat, width, height); 646 target, samples, internalformat, width, height);
647 } 647 }
648 void GenQueriesEXT(PP_Resource context, GLsizei n, GLuint* queries) {
649 PluginGraphics3D::implFromResource(context)->GenQueriesEXT(n, queries);
650 }
651 void DeleteQueriesEXT(PP_Resource context, GLsizei n, const GLuint* queries) {
652 PluginGraphics3D::implFromResource(context)->DeleteQueriesEXT(n, queries);
653 }
654 GLboolean IsQueryEXT(PP_Resource context, GLuint id) {
655 return PluginGraphics3D::implFromResource(context)->IsQueryEXT(id);
656 }
657 void BeginQueryEXT(PP_Resource context, GLenum target, GLuint id) {
658 PluginGraphics3D::implFromResource(context)->BeginQueryEXT(target, id);
659 }
660 void EndQueryEXT(PP_Resource context, GLenum target) {
661 PluginGraphics3D::implFromResource(context)->EndQueryEXT(target);
662 }
663 void GetQueryivEXT(
664 PP_Resource context, GLenum target, GLenum pname, GLint* params) {
665 PluginGraphics3D::implFromResource(
666 context)->GetQueryivEXT(target, pname, params);
667 }
668 void GetQueryObjectuivEXT(
669 PP_Resource context, GLuint id, GLenum pname, GLuint* params) {
670 PluginGraphics3D::implFromResource(
671 context)->GetQueryObjectuivEXT(id, pname, params);
672 }
648 GLboolean EnableFeatureCHROMIUM(PP_Resource context, const char* feature) { 673 GLboolean EnableFeatureCHROMIUM(PP_Resource context, const char* feature) {
649 return PluginGraphics3D::implFromResource( 674 return PluginGraphics3D::implFromResource(
650 context)->EnableFeatureCHROMIUM(feature); 675 context)->EnableFeatureCHROMIUM(feature);
651 } 676 }
652 void* MapBufferSubDataCHROMIUM( 677 void* MapBufferSubDataCHROMIUM(
653 PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size, 678 PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size,
654 GLenum access) { 679 GLenum access) {
655 return PluginGraphics3D::implFromResource( 680 return PluginGraphics3D::implFromResource(
656 context)->MapBufferSubDataCHROMIUM(target, offset, size, access); 681 context)->MapBufferSubDataCHROMIUM(target, offset, size, access);
657 } 682 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 &VertexAttrib2fv, 856 &VertexAttrib2fv,
832 &VertexAttrib3f, 857 &VertexAttrib3f,
833 &VertexAttrib3fv, 858 &VertexAttrib3fv,
834 &VertexAttrib4f, 859 &VertexAttrib4f,
835 &VertexAttrib4fv, 860 &VertexAttrib4fv,
836 &VertexAttribPointer, 861 &VertexAttribPointer,
837 &Viewport 862 &Viewport
838 }; 863 };
839 return &ppb_opengles; 864 return &ppb_opengles;
840 } 865 }
841 const PPB_OpenGLES2InstancedArrays_Dev* 866 const PPB_OpenGLES2InstancedArrays_Dev* PluginGraphics3D::GetOpenGLESInstancedAr raysInterface() { // NOLINT
dmichael (off chromium) 2012/03/16 22:15:53 same comment as before about >80 chars.
842 PluginGraphics3D::GetOpenGLESInstancedArraysInterface() {
843 const static struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles = { 867 const static struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles = {
844 &DrawArraysInstancedANGLE, 868 &DrawArraysInstancedANGLE,
845 &DrawElementsInstancedANGLE, 869 &DrawElementsInstancedANGLE,
846 &VertexAttribDivisorANGLE 870 &VertexAttribDivisorANGLE
847 }; 871 };
848 return &ppb_opengles; 872 return &ppb_opengles;
849 } 873 }
850 const PPB_OpenGLES2FramebufferBlit_Dev* 874 const PPB_OpenGLES2FramebufferBlit_Dev* PluginGraphics3D::GetOpenGLESFramebuffer BlitInterface() { // NOLINT
851 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface() {
852 const static struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles = { 875 const static struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles = {
853 &BlitFramebufferEXT 876 &BlitFramebufferEXT
854 }; 877 };
855 return &ppb_opengles; 878 return &ppb_opengles;
856 } 879 }
857 const PPB_OpenGLES2FramebufferMultisample_Dev* 880 const PPB_OpenGLES2FramebufferMultisample_Dev* PluginGraphics3D::GetOpenGLESFram ebufferMultisampleInterface() { // NOLINT
858 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface() {
859 const static struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles = { 881 const static struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles = {
860 &RenderbufferStorageMultisampleEXT 882 &RenderbufferStorageMultisampleEXT
861 }; 883 };
862 return &ppb_opengles; 884 return &ppb_opengles;
863 } 885 }
864 const PPB_OpenGLES2ChromiumEnableFeature_Dev* 886 const PPB_OpenGLES2ChromiumEnableFeature_Dev* PluginGraphics3D::GetOpenGLESChrom iumEnableFeatureInterface() { // NOLINT
865 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface() {
866 const static struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles = { 887 const static struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles = {
867 &EnableFeatureCHROMIUM 888 &EnableFeatureCHROMIUM
868 }; 889 };
869 return &ppb_opengles; 890 return &ppb_opengles;
870 } 891 }
871 const PPB_OpenGLES2ChromiumMapSub_Dev* 892 const PPB_OpenGLES2ChromiumMapSub_Dev* PluginGraphics3D::GetOpenGLESChromiumMapS ubInterface() { // NOLINT
872 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface() {
873 const static struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles = { 893 const static struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles = {
874 &MapBufferSubDataCHROMIUM, 894 &MapBufferSubDataCHROMIUM,
875 &UnmapBufferSubDataCHROMIUM, 895 &UnmapBufferSubDataCHROMIUM,
876 &MapTexSubImage2DCHROMIUM, 896 &MapTexSubImage2DCHROMIUM,
877 &UnmapTexSubImage2DCHROMIUM 897 &UnmapTexSubImage2DCHROMIUM
878 }; 898 };
879 return &ppb_opengles; 899 return &ppb_opengles;
880 } 900 }
901 const PPB_OpenGLES2Query_Dev* PluginGraphics3D::GetOpenGLESQueryInterface() {
902 const static struct PPB_OpenGLES2Query_Dev ppb_opengles = {
903 &GenQueriesEXT,
904 &DeleteQueriesEXT,
905 &IsQueryEXT,
906 &BeginQueryEXT,
907 &EndQueryEXT,
908 &GetQueryivEXT,
909 &GetQueryObjectuivEXT
910 };
911 return &ppb_opengles;
912 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698