#ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED

#define GR_SUPPORT_GLES2    1

// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer                      0

#define GR_GL_PLATFORM_HEADER       <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT   <GLES2/gl2ext.h>

#define GR_GL_FUNCTION_TYPE

#define GR_GL_PROC_ADDRESS(X)       &X

// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT    GR_GL_BGRA

// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START     0

#endif

#ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED

#define GR_SUPPORT_GLES2    1

// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer                      0

#define GR_GL_PLATFORM_HEADER       <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT   <GLES2/gl2ext.h>

#define GR_GL_FUNCTION_TYPE

#define GR_GL_PROC_ADDRESS(X)       &X

// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT    GR_BGRA

// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START     0

#endif

--- 
+++ 
@@ -15,7 +15,7 @@
 #define GR_GL_PROC_ADDRESS(X)       &X
 
 // chrome always assumes BGRA
-#define GR_GL_32BPP_COLOR_FORMAT    GR_BGRA
+#define GR_GL_32BPP_COLOR_FORMAT    GR_GL_BGRA
 
 // glGetError() forces a sync with gpu process on chrome
 #define GR_GL_CHECK_ERROR_START     0
Fix macro in Chrome's GL config file

Review URL: http://codereview.appspot.com/4308041/


git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@980 2bbb7eff-a529-9590-31e7-b0007b416f81
