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

Side by Side Diff: third_party/mesa/chromium.patch

Issue 7523033: Eliminate a warning in a failure case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « third_party/mesa/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff -c -r Mesa-7.9/include/GL/gl.h MesaLib/include/GL/gl.h 1 diff -c -r Mesa-7.9/include/GL/gl.h MesaLib/include/GL/gl.h
2 *** Mesa-7.9/include/GL/gl.h Tue Apr 27 14:41:21 2010 2 *** Mesa-7.9/include/GL/gl.h Tue Apr 27 14:41:21 2010
3 --- MesaLib/include/GL/gl.h Thu Oct 14 14:41:53 2010 3 --- MesaLib/include/GL/gl.h Thu Oct 14 14:41:53 2010
4 *************** 4 ***************
5 *** 55,61 **** 5 *** 55,61 ****
6 # if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* ta g specify we're building mesa as a DLL */ 6 # if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* ta g specify we're building mesa as a DLL */
7 # define GLAPI __declspec(dllexport) 7 # define GLAPI __declspec(dllexport)
8 # elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag sp ecifying we're building for DLL runtime support */ 8 # elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag sp ecifying we're building for DLL runtime support */
9 ! # define GLAPI __declspec(dllimport) 9 ! # define GLAPI __declspec(dllimport)
10 # else /* for use with static link lib build of Win32 edition only */ 10 # else /* for use with static link lib build of Win32 edition only */
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 --- 34,42 ---- 1907 --- 34,42 ----
1908 #include "s_context.h" 1908 #include "s_context.h"
1909 #include "s_texcombine.h" 1909 #include "s_texcombine.h"
1910 1910
1911 + #if defined(_MSC_VER) 1911 + #if defined(_MSC_VER)
1912 + #pragma optimize("", off) 1912 + #pragma optimize("", off)
1913 + #endif 1913 + #endif
1914 1914
1915 /** 1915 /**
1916 * Pointer to array of float[4] 1916 * Pointer to array of float[4]
1917 diff -c -r Mesa-7.9/src/mapi/glapi/gen/gl_apitemp.py MesaLib/src/mapi/glapi/gen/ gl_apitemp.py
1918 *** Mesa-7.9/src/mapi/glapi/gen/gl_apitemp.py Mon Aug 15 09:14:29 2011
1919 --- MesaLib/src/mapi/glapi/gen/gl_apitemp.py Thu Aug 11 21:23:47 2011
1920 ***************
1921 *** 79,89 ****
1922 comma = ", "
1923
1924
1925 - if f.return_type != 'void':
1926 - dispatch = "RETURN_DISPATCH"
1927 - else:
1928 - dispatch = "DISPATCH"
1929 -
1930 need_proto = False
1931 if not f.is_static_entry_point(name):
1932 need_proto = True
1933 --- 79,84 ----
1934 ***************
1935 *** 97,108 ****
1936
1937 print '%s %s KEYWORD2 NAME(%s)(%s)' % (keyword, f.return_type, n , f.get_parameter_string(name))
1938 print '{'
1939 ! if p_string == "":
1940 ! print ' %s(%s, (), (F, "gl%s();\\n"));' \
1941 ! % (dispatch, f.name, name)
1942 else:
1943 ! print ' %s(%s, (%s), (F, "gl%s(%s);\\n", %s));' \
1944 ! % (dispatch, f.name, p_string, name, t_string, o _string)
1945 print '}'
1946 print ''
1947 return
1948 --- 92,113 ----
1949
1950 print '%s %s KEYWORD2 NAME(%s)(%s)' % (keyword, f.return_type, n , f.get_parameter_string(name))
1951 print '{'
1952 ! if f.return_type != 'void':
1953 ! dispatch = "RETURN_DISPATCH"
1954 ! if p_string == "":
1955 ! print ' %s(%s, %s, (), (F, "gl%s();\\n"));' \
1956 ! % (dispatch, f.return_type, f.name, name )
1957 ! else:
1958 ! print ' %s(%s, %s, (%s), (F, "gl%s(%s);\\n", % s));' \
1959 ! % (dispatch, f.return_type, f.name, p_st ring, name, t_string, o_string)
1960 else:
1961 ! dispatch = "DISPATCH"
1962 ! if p_string == "":
1963 ! print ' %s(%s, (), (F, "gl%s();\\n"));' \
1964 ! % (dispatch, f.name, name)
1965 ! else:
1966 ! print ' %s(%s, (%s), (F, "gl%s(%s);\\n", %s)); ' \
1967 ! % (dispatch, f.name, p_string, name, t_s tring, o_string)
1968 print '}'
1969 print ''
1970 return
1971 ***************
1972 *** 120,126 ****
1973 * NAME(n) - builds the final function name (usually add "gl" prefix)
1974 * DISPATCH(func, args, msg) - code to do dispatch of named function.
1975 * msg is a printf-style debug message.
1976 ! * RETURN_DISPATCH(func, args, msg) - code to do dispatch with a return valu e
1977 *
1978 * Here is an example which generates the usual OpenGL functions:
1979 * #define KEYWORD1
1980 --- 125,132 ----
1981 * NAME(n) - builds the final function name (usually add "gl" prefix)
1982 * DISPATCH(func, args, msg) - code to do dispatch of named function.
1983 * msg is a printf-style debug message.
1984 ! * RETURN_DISPATCH(type, func, args, msg) - code to do dispatch with a
1985 ! * return value of type.
1986 *
1987 * Here is an example which generates the usual OpenGL functions:
1988 * #define KEYWORD1
1989 diff -c -r Mesa-7.9/src/mapi/glapi/glapi_dispatch.c MesaLib/src/mapi/glapi/glapi _dispatch.c
1990 *** Mesa-7.9/src/mapi/glapi/glapi_dispatch.c Mon Aug 15 09:14:30 2011
1991 --- MesaLib/src/mapi/glapi/glapi_dispatch.c Thu Aug 11 21:25:55 2011
1992 ***************
1993 *** 65,71 ****
1994 fprintf MESSAGE; \
1995 CALL_ ## FUNC(GET_DISPATCH(), ARGS);
1996
1997 ! #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
1998 fprintf MESSAGE; \
1999 return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2000
2001 --- 65,71 ----
2002 fprintf MESSAGE; \
2003 CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2004
2005 ! #define RETURN_DISPATCH(TYPE, FUNC, ARGS, MESSAGE) \
2006 fprintf MESSAGE; \
2007 return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2008
2009 ***************
2010 *** 74,80 ****
2011 #define DISPATCH(FUNC, ARGS, MESSAGE) \
2012 CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2013
2014 ! #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
2015 return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2016
2017 #endif /* logging */
2018 --- 74,80 ----
2019 #define DISPATCH(FUNC, ARGS, MESSAGE) \
2020 CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2021
2022 ! #define RETURN_DISPATCH(TYPE, FUNC, ARGS, MESSAGE) \
2023 return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
2024
2025 #endif /* logging */
2026 diff -c -r Mesa-7.9/src/mapi/glapi/glapi_nop.c MesaLib/src/mapi/glapi/glapi_nop. c
2027 *** Mesa-7.9/src/mapi/glapi/glapi_nop.c Mon Aug 15 09:14:30 2011
2028 --- MesaLib/src/mapi/glapi/glapi_nop.c Thu Aug 11 21:29:46 2011
2029 ***************
2030 *** 86,92 ****
2031 #define KEYWORD2 GLAPIENTRY
2032 #define NAME(func) NoOp##func
2033 #define DISPATCH(func, args, msg) Warn(#func);
2034 ! #define RETURN_DISPATCH(func, args, msg) Warn(#func); return 0
2035
2036
2037 /*
2038 --- 86,92 ----
2039 #define KEYWORD2 GLAPIENTRY
2040 #define NAME(func) NoOp##func
2041 #define DISPATCH(func, args, msg) Warn(#func);
2042 ! #define RETURN_DISPATCH(type, func, args, msg) Warn(#func); return (type)0
2043
2044
2045 /*
2046 ***************
2047 *** 96,102 ****
2048
2049 #else
2050
2051 ! static int
2052 NoOpGeneric(void)
2053 {
2054 #if !defined(_WIN32_WCE)
2055 --- 96,102 ----
2056
2057 #else
2058
2059 ! void
2060 NoOpGeneric(void)
2061 {
2062 #if !defined(_WIN32_WCE)
2063 ***************
2064 *** 104,110 ****
2065 fprintf(stderr, "GL User Error: calling GL function without a rendering context\n");
2066 }
2067 #endif
2068 - return 0;
2069 }
2070
2071 /**
2072 --- 104,109 ----
2073 ***************
2074 *** 113,119 ****
2075 static GLint
2076 NoOpUnused(void)
2077 {
2078 ! return NoOpGeneric();
2079 }
2080
2081 /*
2082 --- 112,119 ----
2083 static GLint
2084 NoOpUnused(void)
2085 {
2086 ! NoOpGeneric();
2087 ! return 0;
2088 }
2089
2090 /*
2091 ***************
2092 *** 127,133 ****
2093 #define KEYWORD2 GLAPIENTRY
2094 #define NAME(func) NoOp##func
2095 #define DISPATCH(func, args, msg) NoOpGeneric();
2096 ! #define RETURN_DISPATCH(func, args, msg) return NoOpGeneric();
2097
2098 /*
2099 * Defines for the table of no-op entry points.
2100 --- 127,133 ----
2101 #define KEYWORD2 GLAPIENTRY
2102 #define NAME(func) NoOp##func
2103 #define DISPATCH(func, args, msg) NoOpGeneric();
2104 ! #define RETURN_DISPATCH(type, func, args, msg) NoOpGeneric(); return (type)0
2105
2106 /*
2107 * Defines for the table of no-op entry points.
OLDNEW
« no previous file with comments | « third_party/mesa/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698