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 // 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 GLsizei height, | 104 GLsizei height, |
105 GLenum internalformat); | 105 GLenum internalformat); |
106 typedef void ( | 106 typedef void ( |
107 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC)(GLuint image_id); | 107 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC)(GLuint image_id); |
108 #endif /* GL_CHROMIUM_image */ | 108 #endif /* GL_CHROMIUM_image */ |
109 | 109 |
110 /* GL_CHROMIUM_gpu_memory_buffer_image */ | 110 /* GL_CHROMIUM_gpu_memory_buffer_image */ |
111 #ifndef GL_CHROMIUM_gpu_memory_buffer_image | 111 #ifndef GL_CHROMIUM_gpu_memory_buffer_image |
112 #define GL_CHROMIUM_gpu_memory_buffer_image 1 | 112 #define GL_CHROMIUM_gpu_memory_buffer_image 1 |
113 | 113 |
| 114 #ifndef GL_BGR |
| 115 #define GL_BGR 0x80E0 |
| 116 #endif |
| 117 |
114 #ifndef GL_READ_WRITE_CHROMIUM | 118 #ifndef GL_READ_WRITE_CHROMIUM |
115 #define GL_READ_WRITE_CHROMIUM 0x78F2 | 119 #define GL_READ_WRITE_CHROMIUM 0x78F2 |
116 #endif | 120 #endif |
117 | 121 |
118 #ifndef GL_RGB_YUV_420_CHROMIUM | 122 #ifndef GL_RGB_YUV_420_CHROMIUM |
119 #define GL_RGB_YUV_420_CHROMIUM 0x78FA | 123 #define GL_RGB_YUV_420_CHROMIUM 0x78FA |
120 #endif | 124 #endif |
121 | 125 |
122 #ifndef GL_RGB_YCBCR_422_CHROMIUM | 126 #ifndef GL_RGB_YCBCR_422_CHROMIUM |
123 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB | 127 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 #endif | 772 #endif |
769 | 773 |
770 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM | 774 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM |
771 #define GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM 0x924A | 775 #define GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM 0x924A |
772 #endif | 776 #endif |
773 | 777 |
774 #ifdef GL_GLEXT_PROTOTYPES | 778 #ifdef GL_GLEXT_PROTOTYPES |
775 GL_APICALL void GL_APIENTRY | 779 GL_APICALL void GL_APIENTRY |
776 glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, | 780 glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, |
777 GLenum plane_transform, | 781 GLenum plane_transform, |
| 782 GLuint storage_format, |
778 GLuint overlay_texture_id, | 783 GLuint overlay_texture_id, |
779 GLint bounds_x, | 784 GLint bounds_x, |
780 GLint bounds_y, | 785 GLint bounds_y, |
781 GLint bounds_width, | 786 GLint bounds_width, |
782 GLint bounds_height, | 787 GLint bounds_height, |
783 GLfloat uv_x, | 788 GLfloat uv_x, |
784 GLfloat uv_y, | 789 GLfloat uv_y, |
785 GLfloat uv_width, | 790 GLfloat uv_width, |
786 GLfloat uv_height); | 791 GLfloat uv_height, |
| 792 GLboolean handle_scaling); |
787 #endif | 793 #endif |
788 typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)( | 794 typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)( |
789 GLint plane_z_order, | 795 GLint plane_z_order, |
790 GLenum plane_transform, | 796 GLenum plane_transform, |
| 797 GLuint optimal_storage_format, |
791 GLuint overlay_texture_id, | 798 GLuint overlay_texture_id, |
792 GLint bounds_x, | 799 GLint bounds_x, |
793 GLint bounds_y, | 800 GLint bounds_y, |
794 GLint bounds_width, | 801 GLint bounds_width, |
795 GLint bounds_height, | 802 GLint bounds_height, |
796 GLfloat uv_x, | 803 GLfloat uv_x, |
797 GLfloat uv_y, | 804 GLfloat uv_y, |
798 GLfloat uv_width, | 805 GLfloat uv_width, |
799 GLfloat uv_height); | 806 GLfloat uv_height, |
| 807 GLboolean scale_buffer); |
800 #endif /* GL_CHROMIUM_schedule_overlay_plane */ | 808 #endif /* GL_CHROMIUM_schedule_overlay_plane */ |
801 | 809 |
802 #ifndef GL_CHROMIUM_schedule_ca_layer | 810 #ifndef GL_CHROMIUM_schedule_ca_layer |
803 #define GL_CHROMIUM_schedule_ca_layer 1 | 811 #define GL_CHROMIUM_schedule_ca_layer 1 |
804 #ifdef GL_GLEXT_PROTOTYPES | 812 #ifdef GL_GLEXT_PROTOTYPES |
805 GL_APICALL void GL_APIENTRY | 813 GL_APICALL void GL_APIENTRY |
806 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, | 814 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, |
807 const GLfloat* contents_rect, | 815 const GLfloat* contents_rect, |
808 GLfloat opacity, | 816 GLfloat opacity, |
809 GLuint background_color, | 817 GLuint background_color, |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 #define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA | 1216 #define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA |
1209 #define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB | 1217 #define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB |
1210 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC | 1218 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC |
1211 #endif /* GL_EXT_blend_func_extended */ | 1219 #endif /* GL_EXT_blend_func_extended */ |
1212 | 1220 |
1213 #ifdef __cplusplus | 1221 #ifdef __cplusplus |
1214 } | 1222 } |
1215 #endif | 1223 #endif |
1216 | 1224 |
1217 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ | 1225 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ |
OLD | NEW |