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

Side by Side Diff: src/gpu/gl/GrGLDefines.h

Issue 349983002: Revert of Add functions to support NV_path_rendering in OpenGL ES (Closed) Base URL: https://skia.googlesource.com/skia.git@desktop-es
Patch Set: Created 6 years, 6 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
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 9
10 #ifndef GrGLDefines_DEFINED 10 #ifndef GrGLDefines_DEFINED
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 #define GR_GL_LARGE_CCW_ARC_TO 0x16 820 #define GR_GL_LARGE_CCW_ARC_TO 0x16
821 #define GR_GL_RELATIVE_LARGE_CCW_ARC_TO 0x17 821 #define GR_GL_RELATIVE_LARGE_CCW_ARC_TO 0x17
822 #define GR_GL_LARGE_CW_ARC_TO 0x18 822 #define GR_GL_LARGE_CW_ARC_TO 0x18
823 #define GR_GL_RELATIVE_LARGE_CW_ARC_TO 0x19 823 #define GR_GL_RELATIVE_LARGE_CW_ARC_TO 0x19
824 #define GR_GL_CIRCULAR_CCW_ARC_TO 0xF8 824 #define GR_GL_CIRCULAR_CCW_ARC_TO 0xF8
825 #define GR_GL_CIRCULAR_CW_ARC_TO 0xFA 825 #define GR_GL_CIRCULAR_CW_ARC_TO 0xFA
826 #define GR_GL_CIRCULAR_TANGENT_ARC_TO 0xFC 826 #define GR_GL_CIRCULAR_TANGENT_ARC_TO 0xFC
827 #define GR_GL_ARC_TO 0xFE 827 #define GR_GL_ARC_TO 0xFE
828 #define GR_GL_RELATIVE_ARC_TO 0xFF 828 #define GR_GL_RELATIVE_ARC_TO 0xFF
829 829
830 // path string formats
831 #define GR_GL_PATH_FORMAT_SVG 0x9070
832 #define GR_GL_PATH_FORMAT_PS 0x9071
833
834 // font targets
835 #define GR_GL_STANDARD_FONT_NAME 0x9072
836 #define GR_GL_SYSTEM_FONT_NAME 0x9073
837 #define GR_GL_FILE_NAME 0x9074
838
839 // handle missing glyphs
840 #define GR_GL_SKIP_MISSING_GLYPH 0x90A9
841 #define GR_GL_USE_MISSING_GLYPH 0x90AA
842
830 // path parameters 843 // path parameters
831 #define GR_GL_PATH_STROKE_WIDTH 0x9075 844 #define GR_GL_PATH_STROKE_WIDTH 0x9075
832 #define GR_GL_PATH_INITIAL_END_CAP 0x9077 845 #define GR_GL_PATH_INITIAL_END_CAP 0x9077
833 #define GR_GL_PATH_TERMINAL_END_CAP 0x9078 846 #define GR_GL_PATH_TERMINAL_END_CAP 0x9078
834 #define GR_GL_PATH_JOIN_STYLE 0x9079 847 #define GR_GL_PATH_JOIN_STYLE 0x9079
835 #define GR_GL_PATH_MITER_LIMIT 0x907A 848 #define GR_GL_PATH_MITER_LIMIT 0x907A
836 #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C 849 #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C
837 #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D 850 #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D
838 #define GR_GL_PATH_DASH_OFFSET 0x907E 851 #define GR_GL_PATH_DASH_OFFSET 0x907E
839 #define GR_GL_PATH_CLIENT_LENGTH 0x907F 852 #define GR_GL_PATH_CLIENT_LENGTH 0x907F
(...skipping 10 matching lines...) Expand all
850 #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F 863 #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F
851 #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1 864 #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1
852 #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2 865 #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2
853 866
854 // fill modes 867 // fill modes
855 /* GL_INVERT */ 868 /* GL_INVERT */
856 #define GR_GL_COUNT_UP 0x9088 869 #define GR_GL_COUNT_UP 0x9088
857 #define GR_GL_COUNT_DOWN 0x9089 870 #define GR_GL_COUNT_DOWN 0x9089
858 /* GL_PATH_FILL_MODE_NV */ 871 /* GL_PATH_FILL_MODE_NV */
859 872
873 // path color gen
874 /* GL_PRIMARY_COLOR */
875 #define GR_GL_SECONDARY_COLOR 0x852D
876
860 // gen mode 877 // gen mode
861 /* GL_NONE */ 878 /* GL_NONE */
862 /* GL_EYE_LINEAR */ 879 /* GL_EYE_LINEAR */
863 /* GL_OBJECT_LINEAR */ 880 /* GL_OBJECT_LINEAR */
864 #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A 881 #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A
865 882
866 // cover mode 883 // cover mode
867 #define GR_GL_CONVEX_HULL 0x908B 884 #define GR_GL_CONVEX_HULL 0x908B
868 #define GR_GL_BOUNDING_BOX 0x908D 885 #define GR_GL_BOUNDING_BOX 0x908D
869 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C 886 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C
870 /* GL_PATH_FILL_COVER_MODE_NV */ 887 /* GL_PATH_FILL_COVER_MODE_NV */
871 888
872 // transform type 889 // transform type
873 /* GL_NONE */ 890 /* GL_NONE */
874 #define GR_GL_TRANSLATE_X 0x908E 891 #define GR_GL_TRANSLATE_X 0x908E
875 #define GR_GL_TRANSLATE_Y 0x908F 892 #define GR_GL_TRANSLATE_Y 0x908F
876 #define GR_GL_TRANSLATE_2D 0x9090 893 #define GR_GL_TRANSLATE_2D 0x9090
877 #define GR_GL_TRANSLATE_3D 0x9091 894 #define GR_GL_TRANSLATE_3D 0x9091
878 #define GR_GL_AFFINE_2D 0x9092 895 #define GR_GL_AFFINE_2D 0x9092
879 #define GR_GL_AFFINE_3D 0x9094 896 #define GR_GL_AFFINE_3D 0x9094
880 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096 897 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096
881 #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098 898 #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098
882 899
900 // path string types
901 #define GR_GL_UTF8 0x909A
902 #define GR_GL_UTF16 0x909B
903
904 #define GR_GL_PATH_COMPUTED_LENGTH 0x90A0
883 905
884 // cap/dash values 906 // cap/dash values
885 /* GL_FLAT */ 907 /* GL_FLAT */
886 #define GR_GL_SQUARE 0x90A3 908 #define GR_GL_SQUARE 0x90A3
887 #define GR_GL_ROUND 0x90A4 909 #define GR_GL_ROUND 0x90A4
888 #define GR_GL_TRIANGULAR 0x90A5 910 #define GR_GL_TRIANGULAR 0x90A5
889 911
890 // join values 912 // join values
891 /* GL_NONE */ 913 /* GL_NONE */
892 /* GL_ROUND_NV */ 914 /* GL_ROUND_NV */
893 #define GR_GL_BEVEL 0x90A6 915 #define GR_GL_BEVEL 0x90A6
894 #define GR_GL_MITER_REVERT 0x90A7 916 #define GR_GL_MITER_REVERT 0x90A7
895 #define GR_GL_MITER_TRUNCATE 0x90A8 917 #define GR_GL_MITER_TRUNCATE 0x90A8
896 918
897 // NV_path_rendering extension to ARB_program_interface_query: 919 // path dash reset values
898 // .. corresponds to the set of active input variables used by the fragment 920 #define GR_GL_MOVE_TO_RESETS 0x90B5
899 // shader stage of <program> (if a fragment stage exists). 921 #define GR_GL_MOVE_TO_CONTINUES 0x90B6
900 #define GR_GL_FRAGMENT_INPUT 0x936D 922
923 // font styles
924 /* GL_NONE */
925 #define GR_GL_BOLD_BIT 0x01
926 #define GR_GL_ITALIC_BIT 0x02
927
928 // pnames for glGet
929 #define GR_GL_PATH_ERROR_POSITION 0x90AB
930 #define GR_GL_PATH_FOG_GEN_MODE 0x90AC
931 #define GR_GL_PATH_STENCIL_FUNC 0x90B7
932 #define GR_GL_PATH_STENCIL_REF 0x90B8
933 #define GR_GL_PATH_STENCIL_VALUE_MASK 0x90B9
934 #define GR_GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR 0x90BD
935 #define GR_GL_PATH_STENCIL_DEPTH_OFFSET_UNITS 0x90BE
936 #define GR_GL_PATH_COVER_DEPTH_FUNC 0x90BF
937
938 // per-glyph metrics bits in metric mask query
939 #define GR_GL_GLYPH_WIDTH_BIT 0x01
940 #define GR_GL_GLYPH_HEIGHT_BIT 0x02
941 #define GR_GL_GLYPH_HORIZONTAL_BEARING_X_BIT 0x04
942 #define GR_GL_GLYPH_HORIZONTAL_BEARING_Y_BIT 0x08
943 #define GR_GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT 0x10
944 #define GR_GL_GLYPH_VERTICAL_BEARING_X_BIT 0x20
945 #define GR_GL_GLYPH_VERTICAL_BEARING_Y_BIT 0x40
946 #define GR_GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT 0x80
947 #define GR_GL_GLYPH_HAS_KERNING 0x100
948
949 // per-font face metrics in metric mask query
950 #define GR_GL_FONT_X_MIN_BOUNDS 0x00010000
951 #define GR_GL_FONT_Y_MIN_BOUNDS 0x00020000
952 #define GR_GL_FONT_X_MAX_BOUNDS 0x00040000
953 #define GR_GL_FONT_Y_MAX_BOUNDS 0x00080000
954 #define GR_GL_FONT_UNITS_PER_EM 0x00100000
955 #define GR_GL_FONT_ASCENDER 0x00200000
956 #define GR_GL_FONT_DESCENDER 0x00400000
957 #define GR_GL_FONT_HEIGHT 0x00800000
958 #define GR_GL_FONT_MAX_ADVANCE_WIDTH 0x01000000
959 #define GR_GL_FONT_MAX_ADVANCE_HEIGHT 0x02000000
960 #define GR_GL_FONT_UNDERLINE_POSITION 0x04000000
961 #define GR_GL_FONT_UNDERLINE_THICKNESS 0x08000000
962 #define GR_GL_FONT_HAS_KERNING 0x10000000
963
964 // path list modes (glGetPathSpacing)
965 #define GR_GL_ACCUM_ADJACENT_PAIRS 0x90AD
966 #define GR_GL_ADJACENT_PAIRS 0x90AE
967 #define GR_GL_FIRST_TO_REST 0x90AF
968
969 //path gen modes
970 #define GR_GL_PATH_GEN_MODE 0x90B0
971 #define GR_GL_PATH_GEN_COEFF 0x90B1
972 #define GR_GL_PATH_GEN_COLOR_FORMAT 0x90B2
973 #define GR_GL_PATH_GEN_COMPONENTS 0x90B3
901 974
902 #endif 975 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698