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

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

Issue 345723002: Add functions to support NV_path_rendering in OpenGL ES (Closed) Base URL: https://skia.googlesource.com/skia.git@desktop-es
Patch Set: add the comment Created 6 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
« 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
843 // path parameters 830 // path parameters
844 #define GR_GL_PATH_STROKE_WIDTH 0x9075 831 #define GR_GL_PATH_STROKE_WIDTH 0x9075
845 #define GR_GL_PATH_INITIAL_END_CAP 0x9077 832 #define GR_GL_PATH_INITIAL_END_CAP 0x9077
846 #define GR_GL_PATH_TERMINAL_END_CAP 0x9078 833 #define GR_GL_PATH_TERMINAL_END_CAP 0x9078
847 #define GR_GL_PATH_JOIN_STYLE 0x9079 834 #define GR_GL_PATH_JOIN_STYLE 0x9079
848 #define GR_GL_PATH_MITER_LIMIT 0x907A 835 #define GR_GL_PATH_MITER_LIMIT 0x907A
849 #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C 836 #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C
850 #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D 837 #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D
851 #define GR_GL_PATH_DASH_OFFSET 0x907E 838 #define GR_GL_PATH_DASH_OFFSET 0x907E
852 #define GR_GL_PATH_CLIENT_LENGTH 0x907F 839 #define GR_GL_PATH_CLIENT_LENGTH 0x907F
(...skipping 10 matching lines...) Expand all
863 #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F 850 #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F
864 #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1 851 #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1
865 #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2 852 #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2
866 853
867 // fill modes 854 // fill modes
868 /* GL_INVERT */ 855 /* GL_INVERT */
869 #define GR_GL_COUNT_UP 0x9088 856 #define GR_GL_COUNT_UP 0x9088
870 #define GR_GL_COUNT_DOWN 0x9089 857 #define GR_GL_COUNT_DOWN 0x9089
871 /* GL_PATH_FILL_MODE_NV */ 858 /* GL_PATH_FILL_MODE_NV */
872 859
873 // path color gen
874 /* GL_PRIMARY_COLOR */
875 #define GR_GL_SECONDARY_COLOR 0x852D
876
877 // gen mode 860 // gen mode
878 /* GL_NONE */ 861 /* GL_NONE */
879 /* GL_EYE_LINEAR */ 862 /* GL_EYE_LINEAR */
880 /* GL_OBJECT_LINEAR */ 863 /* GL_OBJECT_LINEAR */
881 #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A 864 #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A
882 865
883 // cover mode 866 // cover mode
884 #define GR_GL_CONVEX_HULL 0x908B 867 #define GR_GL_CONVEX_HULL 0x908B
885 #define GR_GL_BOUNDING_BOX 0x908D 868 #define GR_GL_BOUNDING_BOX 0x908D
886 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C 869 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C
887 /* GL_PATH_FILL_COVER_MODE_NV */ 870 /* GL_PATH_FILL_COVER_MODE_NV */
888 871
889 // transform type 872 // transform type
890 /* GL_NONE */ 873 /* GL_NONE */
891 #define GR_GL_TRANSLATE_X 0x908E 874 #define GR_GL_TRANSLATE_X 0x908E
892 #define GR_GL_TRANSLATE_Y 0x908F 875 #define GR_GL_TRANSLATE_Y 0x908F
893 #define GR_GL_TRANSLATE_2D 0x9090 876 #define GR_GL_TRANSLATE_2D 0x9090
894 #define GR_GL_TRANSLATE_3D 0x9091 877 #define GR_GL_TRANSLATE_3D 0x9091
895 #define GR_GL_AFFINE_2D 0x9092 878 #define GR_GL_AFFINE_2D 0x9092
896 #define GR_GL_AFFINE_3D 0x9094 879 #define GR_GL_AFFINE_3D 0x9094
897 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096 880 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096
898 #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098 881 #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098
899 882
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
905 883
906 // cap/dash values 884 // cap/dash values
907 /* GL_FLAT */ 885 /* GL_FLAT */
908 #define GR_GL_SQUARE 0x90A3 886 #define GR_GL_SQUARE 0x90A3
909 #define GR_GL_ROUND 0x90A4 887 #define GR_GL_ROUND 0x90A4
910 #define GR_GL_TRIANGULAR 0x90A5 888 #define GR_GL_TRIANGULAR 0x90A5
911 889
912 // join values 890 // join values
913 /* GL_NONE */ 891 /* GL_NONE */
914 /* GL_ROUND_NV */ 892 /* GL_ROUND_NV */
915 #define GR_GL_BEVEL 0x90A6 893 #define GR_GL_BEVEL 0x90A6
916 #define GR_GL_MITER_REVERT 0x90A7 894 #define GR_GL_MITER_REVERT 0x90A7
917 #define GR_GL_MITER_TRUNCATE 0x90A8 895 #define GR_GL_MITER_TRUNCATE 0x90A8
918 896
919 // path dash reset values 897 // NV_path_rendering extension to ARB_program_interface_query:
920 #define GR_GL_MOVE_TO_RESETS 0x90B5 898 // .. corresponds to the set of active input variables used by the fragment
921 #define GR_GL_MOVE_TO_CONTINUES 0x90B6 899 // shader stage of <program> (if a fragment stage exists).
922 900 #define GR_GL_FRAGMENT_INPUT 0x936D
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
974 901
975 #endif 902 #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