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 |
| 9 | #define GL_IMG_multisampled_render_to_texture 0 |
| 10 | |
| 11 | #include <GLES2/gl2.h> |
| 12 | #include <GLES2/gl2ext.h> |
| 13 | |
| 14 | #define GR_GL_FUNC |
| 15 | |
| 16 | #define GR_GL_PROC_ADDRESS(X) &X |
reed@google.com | 664a843 | 2011-01-25 15:24:55 +0000 | [diff] [blame] | 17 | |
| 18 | // chrome always assumes BGRA |
| 19 | #define GR_GL_32BPP_COLOR_FORMAT GR_BGRA |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 20 | |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 21 | #endif |