diff options
author | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 05:15:07 +0000 |
---|---|---|
committer | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 05:15:07 +0000 |
commit | 7522541294ad54bc38cf2871f5b23de399dd198d (patch) | |
tree | 585da21c1e21ccbf2705a5c07964a97959df2167 /third_party | |
parent | 3189013eebc55ea5493186b29f2cee2bc7c0dafc (diff) | |
download | chromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.zip chromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.tar.gz chromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.tar.bz2 |
This change makes gles2_c_lib work as a component. It introduces a gles2_c_lib_export.h file, and ensures that all of the GL shim symbols are exported properly.
This also fixes a couple of prototype issues in glTexStorage2DEXT and glEnableFeatureCHROMIUM along the way.
R=gman@chromium.org
TEST=waterfall, specifically platform/chromium/compositing/accelerated-drawing tests don't crash
Review URL: https://chromiumcodereview.appspot.com/8956051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/khronos/GLES2/gl2.h | 2 | ||||
-rw-r--r-- | third_party/khronos/GLES2/gl2ext.h | 2 | ||||
-rw-r--r-- | third_party/khronos/GLES2/gl2platform.h | 14 |
3 files changed, 13 insertions, 5 deletions
diff --git a/third_party/khronos/GLES2/gl2.h b/third_party/khronos/GLES2/gl2.h index 39aa414..34d06ac 100644 --- a/third_party/khronos/GLES2/gl2.h +++ b/third_party/khronos/GLES2/gl2.h @@ -486,8 +486,6 @@ typedef khronos_ssize_t GLsizeiptr; /*------------------------------------------------------------------------- * GL core functions. *-----------------------------------------------------------------------*/ -#undef GL_APICALL -#define GL_APICALL #undef GL_APIENTRY #define GL_APIENTRY diff --git a/third_party/khronos/GLES2/gl2ext.h b/third_party/khronos/GLES2/gl2ext.h index ad13aa3..60b8566 100644 --- a/third_party/khronos/GLES2/gl2ext.h +++ b/third_party/khronos/GLES2/gl2ext.h @@ -1398,7 +1398,7 @@ typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOCHROMIUM) (); #ifdef GL_GLEXT_PROTOTYPES #define glEnableFeatureCHROMIUM GLES2_GET_FUN(EnableFeatureCHROMIUM) #if !defined(GLES2_USE_CPP_BINDINGS) -GL_APICALL void GL_APIENTRY glEnableFeatureCHROMIUM (const GLchar *feature); +GL_APICALL GLboolean GL_APIENTRY glEnableFeatureCHROMIUM (const GLchar *feature); #endif #else typedef void (GL_APIENTRYP PFNGLENABLEFEATURECHROMIUM) (const GLchar *feature); diff --git a/third_party/khronos/GLES2/gl2platform.h b/third_party/khronos/GLES2/gl2platform.h index c9fa3c4..f1c8520 100644 --- a/third_party/khronos/GLES2/gl2platform.h +++ b/third_party/khronos/GLES2/gl2platform.h @@ -19,8 +19,18 @@ #include <KHR/khrplatform.h> -#ifndef GL_APICALL -#define GL_APICALL KHRONOS_APICALL +#if defined(COMPONENT_BUILD) +#if defined(WIN32) +#if defined(GLES2_C_LIB_IMPLEMENTATION) +#define GL_APICALL __declspec(dllexport) +#else +#define GL_APICALL __declspec(dllimport) +#endif /* defined(GLES2_C_LIB_IMPLEMENTATION) */ +#else /* defined(WIN32) */ +#define GL_APICALL __attribute__((visibility("default"))) +#endif +#else +# define GL_APICALL #endif #ifndef GL_APIENTRY |