diff options
author | 2015-10-19 09:03:23 -0700 | |
---|---|---|
committer | 2015-10-19 09:03:23 -0700 | |
commit | 2fc11d39d187f932aeeb8f6220089326df75e9a1 (patch) | |
tree | 870aea0ab7cadbf0eda12228b833465ad61068cb /include/gpu/gl/GrGLFunctions.h | |
parent | 9f8904d2fdde2fac2d2be4af7b19de9e5ad3fc3c (diff) |
Move definitions of GrGL basic types (e.g. GrGLenum) to their own header.
Review URL: https://codereview.chromium.org/1410333003
Diffstat (limited to 'include/gpu/gl/GrGLFunctions.h')
-rw-r--r-- | include/gpu/gl/GrGLFunctions.h | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h index b96a4e50a5..5fbbc2f261 100644 --- a/include/gpu/gl/GrGLFunctions.h +++ b/include/gpu/gl/GrGLFunctions.h @@ -9,61 +9,10 @@ #ifndef GrGLFunctions_DEFINED #define GrGLFunctions_DEFINED -#include "GrGLConfig.h" - +#include "GrGLTypes.h" extern "C" { -//////////////////////////////////////////////////////////////////////////////// - -/** - * Classifies GL contexts by which standard they implement (currently as Desktop - * vs. ES). - */ -enum GrGLStandard { - kNone_GrGLStandard, - kGL_GrGLStandard, - kGLES_GrGLStandard, -}; -static const int kGrGLStandardCnt = 3; - -/////////////////////////////////////////////////////////////////////////////// - -/** - * Declares typedefs for all the GL functions used in GrGLInterface - */ - -typedef unsigned int GrGLenum; -typedef unsigned char GrGLboolean; -typedef unsigned int GrGLbitfield; -typedef signed char GrGLbyte; -typedef char GrGLchar; -typedef short GrGLshort; -typedef int GrGLint; -typedef int GrGLsizei; -typedef int64_t GrGLint64; -typedef unsigned char GrGLubyte; -typedef unsigned short GrGLushort; -typedef unsigned int GrGLuint; -typedef uint64_t GrGLuint64; -typedef float GrGLfloat; -typedef float GrGLclampf; -typedef double GrGLdouble; -typedef double GrGLclampd; -typedef void GrGLvoid; -#ifndef SK_IGNORE_64BIT_OPENGL_CHANGES -#ifdef _WIN64 -typedef signed long long int GrGLintptr; -typedef signed long long int GrGLsizeiptr; -#else -typedef signed long int GrGLintptr; -typedef signed long int GrGLsizeiptr; -#endif -#else -typedef signed long int GrGLintptr; -typedef signed long int GrGLsizeiptr; -#endif - typedef void (GR_GL_FUNCTION_TYPE* GRGLDEBUGPROC)(GrGLenum source, GrGLenum type, GrGLuint id, |