| Index: include/gpu/gl/GrGLFunctions.h
|
| diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h
|
| index beb657d30a1f578fbe69107faf504efe4a0758b4..b6d68c7ff4bd8a6a2833349fe4ffcd12e631822e 100644
|
| --- a/include/gpu/gl/GrGLFunctions.h
|
| +++ b/include/gpu/gl/GrGLFunctions.h
|
| @@ -11,12 +11,29 @@
|
|
|
| #include "GrGLConfig.h"
|
|
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +
|
| /**
|
| - * Declares typedefs for all the GL functions used in GrGLInterface
|
| + * Classifies GL contexts by which standard they implement (currently as Desktop
|
| + * vs. ES).
|
| */
|
| +enum GrGLStandard {
|
| + kNone_GrGLStandard,
|
| + kGL_GrGLStandard,
|
| + kGLES_GrGLStandard,
|
| +};
|
| +
|
| +// Temporary aliases until Chromium can be updated.
|
| +typedef GrGLStandard GrGLBinding;
|
| +static const GrGLStandard kES2_GrGLBinding = kGLES_GrGLStandard;
|
| +static const GrGLStandard kDesktop_GrGLBinding = kGL_GrGLStandard;
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| +/**
|
| + * Declares typedefs for all the GL functions used in GrGLInterface
|
| + */
|
| +
|
| typedef unsigned int GrGLenum;
|
| typedef unsigned char GrGLboolean;
|
| typedef unsigned int GrGLbitfield;
|
|
|