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

Side by Side Diff: gpu/GLES2/gl2extchromium.h

Issue 1409193007: gpu: Add CHROMIUM_schedule_ca_layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 contains Chromium-specific GLES2 extensions declarations. 5 // This file contains Chromium-specific GLES2 extensions declarations.
6 6
7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_ 7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_
8 #define GPU_GLES2_GL2EXTCHROMIUM_H_ 8 #define GPU_GLES2_GL2EXTCHROMIUM_H_
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 #endif 701 #endif
702 #endif /* GL_CHROMIUM_color_buffer_float_rgba */ 702 #endif /* GL_CHROMIUM_color_buffer_float_rgba */
703 703
704 #ifndef GL_CHROMIUM_color_buffer_float_rgb 704 #ifndef GL_CHROMIUM_color_buffer_float_rgb
705 #define GL_CHROMIUM_color_buffer_float_rgb 1 705 #define GL_CHROMIUM_color_buffer_float_rgb 1
706 #ifndef GL_RGB32F 706 #ifndef GL_RGB32F
707 #define GL_RGB32F 0x8815 707 #define GL_RGB32F 0x8815
708 #endif 708 #endif
709 #endif /* GL_CHROMIUM_color_buffer_float_rgb */ 709 #endif /* GL_CHROMIUM_color_buffer_float_rgb */
710 710
711 /* GL_CHROMIUM_schedule_overlay_plane */
712 #ifndef GL_CHROMIUM_schedule_overlay_plane
713 #define GL_CHROMIUM_schedule_overlay_plane 1
714
715 #ifndef GL_OVERLAY_TRANSFORM_NONE_CHROMIUM
716 #define GL_OVERLAY_TRANSFORM_NONE_CHROMIUM 0x9245
717 #endif
718
719 #ifndef GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM
720 #define GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM 0x9246
721 #endif
722
723 #ifndef GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM
724 #define GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM 0x9247
725 #endif
726
727 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM
728 #define GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM 0x9248
729 #endif
730
731 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM
732 #define GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM 0x9249
733 #endif
734
735 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM
736 #define GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM 0x924A
737 #endif
738
739 /* GL_CHROMIUM_subscribe_uniform */ 711 /* GL_CHROMIUM_subscribe_uniform */
740 #ifndef GL_CHROMIUM_subscribe_uniform 712 #ifndef GL_CHROMIUM_subscribe_uniform
741 #define GL_CHROMIUM_subscribe_uniform 1 713 #define GL_CHROMIUM_subscribe_uniform 1
742 714
743 #ifndef GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM 715 #ifndef GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM
744 #define GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM 0x924B 716 #define GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM 0x924B
745 #endif 717 #endif
746 718
747 #ifndef GL_MOUSE_POSITION_CHROMIUM 719 #ifndef GL_MOUSE_POSITION_CHROMIUM
748 #define GL_MOUSE_POSITION_CHROMIUM 0x924C 720 #define GL_MOUSE_POSITION_CHROMIUM 0x924C
749 #endif 721 #endif
750 722
751 #ifdef GL_GLEXT_PROTOTYPES 723 #ifdef GL_GLEXT_PROTOTYPES
752 GL_APICALL void GL_APIENTRY 724 GL_APICALL void GL_APIENTRY
753 glGenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers); 725 glGenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers);
754 GL_APICALL void GL_APIENTRY 726 GL_APICALL void GL_APIENTRY
755 glDeleteValuebuffersCHROMIUM(GLsizei n, const GLuint* valuebuffers); 727 glDeleteValuebuffersCHROMIUM(GLsizei n, const GLuint* valuebuffers);
756 GL_APICALL GLboolean GL_APIENTRY glIsValuebufferCHROMIUM(GLuint valuebuffer); 728 GL_APICALL GLboolean GL_APIENTRY glIsValuebufferCHROMIUM(GLuint valuebuffer);
757 GL_APICALL void GL_APIENTRY 729 GL_APICALL void GL_APIENTRY
758 glBindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer); 730 glBindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer);
759 GL_APICALL void GL_APIENTRY 731 GL_APICALL void GL_APIENTRY
760 glSubscribeValueCHROMIUM(GLenum target, GLenum subscription); 732 glSubscribeValueCHROMIUM(GLenum target, GLenum subscription);
761 GL_APICALL void GL_APIENTRY glPopulateSubscribedValuesCHROMIUM(GLenum target); 733 GL_APICALL void GL_APIENTRY glPopulateSubscribedValuesCHROMIUM(GLenum target);
762 GL_APICALL void GL_APIENTRY glUniformValuebufferCHROMIUM(GLint location, 734 GL_APICALL void GL_APIENTRY glUniformValuebufferCHROMIUM(GLint location,
763 GLenum target, 735 GLenum target,
764 GLenum subscription); 736 GLenum subscription);
765 #endif 737 #endif
766 #endif /* GL_CHROMIUM_subscribe_uniform */ 738 #endif /* GL_CHROMIUM_subscribe_uniform */
767 739
740 /* GL_CHROMIUM_schedule_overlay_plane */
741 #ifndef GL_CHROMIUM_schedule_overlay_plane
742 #define GL_CHROMIUM_schedule_overlay_plane 1
743
744 #ifndef GL_OVERLAY_TRANSFORM_NONE_CHROMIUM
745 #define GL_OVERLAY_TRANSFORM_NONE_CHROMIUM 0x9245
746 #endif
747
748 #ifndef GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM
749 #define GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM 0x9246
750 #endif
751
752 #ifndef GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM
753 #define GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM 0x9247
754 #endif
755
756 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM
757 #define GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM 0x9248
758 #endif
759
760 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM
761 #define GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM 0x9249
762 #endif
763
764 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM
765 #define GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM 0x924A
766 #endif
767
768 #ifdef GL_GLEXT_PROTOTYPES 768 #ifdef GL_GLEXT_PROTOTYPES
769 GL_APICALL void GL_APIENTRY 769 GL_APICALL void GL_APIENTRY
770 glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, 770 glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
771 GLenum plane_transform, 771 GLenum plane_transform,
772 GLuint overlay_texture_id, 772 GLuint overlay_texture_id,
773 GLint bounds_x, 773 GLint bounds_x,
774 GLint bounds_y, 774 GLint bounds_y,
775 GLint bounds_width, 775 GLint bounds_width,
776 GLint bounds_height, 776 GLint bounds_height,
777 GLfloat uv_x, 777 GLfloat uv_x,
778 GLfloat uv_y, 778 GLfloat uv_y,
779 GLfloat uv_width, 779 GLfloat uv_width,
780 GLfloat uv_height); 780 GLfloat uv_height);
781 #endif 781 #endif
782 typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)( 782 typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)(
783 GLint plane_z_order, 783 GLint plane_z_order,
784 GLenum plane_transform, 784 GLenum plane_transform,
785 GLuint overlay_texture_id, 785 GLuint overlay_texture_id,
786 GLint bounds_x, 786 GLint bounds_x,
787 GLint bounds_y, 787 GLint bounds_y,
788 GLint bounds_width, 788 GLint bounds_width,
789 GLint bounds_height, 789 GLint bounds_height,
790 GLfloat uv_x, 790 GLfloat uv_x,
791 GLfloat uv_y, 791 GLfloat uv_y,
792 GLfloat uv_width, 792 GLfloat uv_width,
793 GLfloat uv_height); 793 GLfloat uv_height);
794 #endif /* GL_CHROMIUM_schedule_overlay_plane */ 794 #endif /* GL_CHROMIUM_schedule_overlay_plane */
795 795
796 #ifndef GL_CHROMIUM_schedule_ca_layer
797 #define GL_CHROMIUM_schedule_ca_layer 1
798 #ifdef GL_GLEXT_PROTOTYPES
799 GL_APICALL void GL_APIENTRY
800 glScheduleCALayerCHROMIUM(GLuint contents_texture_id,
801 const GLfloat* contents_rect,
802 GLfloat opacity,
803 GLuint background_color,
804 const GLfloat* bounds_size,
805 const GLfloat* transform);
806 #endif
807 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERCHROMIUMPROC)(
808 GLuint contents_texture_id,
809 const GLfloat* contents_rect,
810 GLfloat opacity,
811 GLuint background_color,
812 const GLfloat* bounds_size,
813 const GLfloat* transform);
814 #endif /* GL_CHROMIUM_schedule_ca_layer */
815
796 /* GL_CHROMIUM_sync_query */ 816 /* GL_CHROMIUM_sync_query */
797 #ifndef GL_CHROMIUM_sync_query 817 #ifndef GL_CHROMIUM_sync_query
798 #define GL_CHROMIUM_sync_query 1 818 #define GL_CHROMIUM_sync_query 1
799 819
800 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM 820 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM
801 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 821 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7
802 #endif 822 #endif
803 #endif /* GL_CHROMIUM_sync_query */ 823 #endif /* GL_CHROMIUM_sync_query */
804 824
805 #ifndef GL_CHROMIUM_path_rendering 825 #ifndef GL_CHROMIUM_path_rendering
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 #define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_CHROMIUM 0x909C 1161 #define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_CHROMIUM 0x909C
1142 #endif 1162 #endif
1143 1163
1144 #endif /* GL_CHROMIUM_path_rendering */ 1164 #endif /* GL_CHROMIUM_path_rendering */
1145 1165
1146 #ifdef __cplusplus 1166 #ifdef __cplusplus
1147 } 1167 }
1148 #endif 1168 #endif
1149 1169
1150 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1170 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698