reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 1 | #ifndef GrGLConfig_chrome_DEFINED |
| 2 | #define GrGLConfig_chrome_DEFINED |
| 3 | |
| 4 | #define GR_SUPPORT_GLES2 1 |
| 5 | |
| 6 | // gl2ext.h will define these extensions macros but Chrome doesn't provide |
| 7 | // prototypes. |
| 8 | #define GL_OES_mapbuffer 0 |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 9 | |
twiz@google.com | 0f31ca7 | 2011-03-18 17:38:11 +0000 | [diff] [blame] | 10 | #define GR_GL_PLATFORM_HEADER <GLES2/gl2.h> |
| 11 | #define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h> |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 12 | |
twiz@google.com | 0f31ca7 | 2011-03-18 17:38:11 +0000 | [diff] [blame] | 13 | #define GR_GL_FUNCTION_TYPE |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 14 | |
| 15 | #define GR_GL_PROC_ADDRESS(X) &X |
reed@google.com | 664a843 | 2011-01-25 15:24:55 +0000 | [diff] [blame] | 16 | |
| 17 | // chrome always assumes BGRA |
bsalomon@google.com | 8361a0f | 2011-03-22 14:38:11 +0000 | [diff] [blame^] | 18 | #define GR_GL_32BPP_COLOR_FORMAT GR_GL_BGRA |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 19 | |
bsalomon@google.com | 3723a48 | 2011-02-17 21:47:25 +0000 | [diff] [blame] | 20 | // glGetError() forces a sync with gpu process on chrome |
| 21 | #define GR_GL_CHECK_ERROR_START 0 |
| 22 | |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 23 | #endif |