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

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

Issue 2163493002: Break glScheduleCALayerCHROMIUM into smaller functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_cleanup_calayeroverlay
Patch Set: Rebase. Created 4 years, 5 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
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 #ifndef GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 762 #ifndef GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM
763 #define GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 0x4 763 #define GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 0x4
764 #endif 764 #endif
765 765
766 #ifndef GL_CA_LAYER_EDGE_TOP_CHROMIUM 766 #ifndef GL_CA_LAYER_EDGE_TOP_CHROMIUM
767 #define GL_CA_LAYER_EDGE_TOP_CHROMIUM 0x8 767 #define GL_CA_LAYER_EDGE_TOP_CHROMIUM 0x8
768 #endif 768 #endif
769 769
770 #ifdef GL_GLEXT_PROTOTYPES 770 #ifdef GL_GLEXT_PROTOTYPES
771 GL_APICALL void GL_APIENTRY 771 GL_APICALL void GL_APIENTRY
772 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity,
773 GLboolean is_clipped,
774 const GLfloat* clip_rect,
775 GLint sorting_context_id,
776 const GLfloat* transform);
777 GL_APICALL void GL_APIENTRY glUnscheduleCALayerSharedStateCHROMIUM();
778 GL_APICALL void GL_APIENTRY
772 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, 779 glScheduleCALayerCHROMIUM(GLuint contents_texture_id,
773 const GLfloat* contents_rect, 780 const GLfloat* contents_rect,
774 GLfloat opacity,
775 GLuint background_color, 781 GLuint background_color,
776 GLuint edge_aa_mask, 782 GLuint edge_aa_mask,
777 const GLfloat* bounds_rect, 783 const GLfloat* bounds_rect,
778 GLboolean is_clipped,
779 const GLfloat* clip_rect,
780 GLint sorting_context_id,
781 const GLfloat* transform,
782 GLuint filter); 784 GLuint filter);
783 GL_APICALL void GL_APIENTRY 785 GL_APICALL void GL_APIENTRY
784 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, const GLuint* textures); 786 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, const GLuint* textures);
785 #endif 787 #endif
788 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERSHAREDSTATECHROMIUMPROC)(
789 GLfloat opacity,
790 GLboolean is_clipped,
791 const GLfloat* clip_rect,
792 GLint sorting_context_id,
793 const GLfloat* transform);
794 typedef void(GL_APIENTRYP PFNGLUNSCHEDULECALAYERSHAREDSTATECHROMIUMPROC)();
786 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERCHROMIUMPROC)( 795 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERCHROMIUMPROC)(
787 GLuint contents_texture_id, 796 GLuint contents_texture_id,
788 const GLfloat* contents_rect, 797 const GLfloat* contents_rect,
789 GLfloat opacity,
790 GLuint background_color, 798 GLuint background_color,
791 GLuint edge_aa_mask, 799 GLuint edge_aa_mask,
792 const GLfloat* bounds_rect, 800 const GLfloat* bounds_rect,
793 GLboolean is_clipped,
794 const GLfloat* clip_rect,
795 GLint sorting_context_id,
796 const GLfloat* transform,
797 GLuint filter); 801 GLuint filter);
798 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERINUSEQUERYCHROMIUMPROC)( 802 typedef void(GL_APIENTRYP PFNGLSCHEDULECALAYERINUSEQUERYCHROMIUMPROC)(
799 GLsizei count, 803 GLsizei count,
800 const GLuint* textures); 804 const GLuint* textures);
801 #endif /* GL_CHROMIUM_schedule_ca_layer */ 805 #endif /* GL_CHROMIUM_schedule_ca_layer */
802 806
803 /* GL_CHROMIUM_sync_query */ 807 /* GL_CHROMIUM_sync_query */
804 #ifndef GL_CHROMIUM_sync_query 808 #ifndef GL_CHROMIUM_sync_query
805 #define GL_CHROMIUM_sync_query 1 809 #define GL_CHROMIUM_sync_query 1
806 810
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components); 1203 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components);
1200 #endif 1204 #endif
1201 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332 1205 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332
1202 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */ 1206 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */
1203 1207
1204 #ifdef __cplusplus 1208 #ifdef __cplusplus
1205 } 1209 }
1206 #endif 1210 #endif
1207 1211
1208 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1212 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698