blob: 06a74d3a38795a8d78c3b676261d717fdcc556c9 [file] [log] [blame]
reed@google.combf858b72011-01-19 19:04:04 +00001#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
twiz@google.com0f31ca72011-03-18 17:38:11 +000011#define GR_GL_PLATFORM_HEADER <GLES2/gl2.h>
12#define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h>
reed@google.combf858b72011-01-19 19:04:04 +000013
twiz@google.com0f31ca72011-03-18 17:38:11 +000014#define GR_GL_FUNCTION_TYPE
reed@google.combf858b72011-01-19 19:04:04 +000015
16#define GR_GL_PROC_ADDRESS(X) &X
reed@google.com664a8432011-01-25 15:24:55 +000017
18// chrome always assumes BGRA
19#define GR_GL_32BPP_COLOR_FORMAT GR_BGRA
reed@google.combf858b72011-01-19 19:04:04 +000020
bsalomon@google.com3723a482011-02-17 21:47:25 +000021// glGetError() forces a sync with gpu process on chrome
22#define GR_GL_CHECK_ERROR_START 0
23
reed@google.combf858b72011-01-19 19:04:04 +000024#endif