diff options
author | 2014-01-17 15:05:38 +0000 | |
---|---|---|
committer | 2014-01-17 15:05:38 +0000 | |
commit | 90313cc36a6f43a3e9d3818aca536cd6631c222b (patch) | |
tree | cf5fcfa5f8cce0ea9cec2128dea770d42ec12551 /include/gpu/gl/GrGLFunctions.h | |
parent | bd00629708c282d8fb9c2ada498c7f12ab8d03d6 (diff) |
Move GrGLExtensions from GrGLContextInfo to GrGLInterface
BUG=skia:2042
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/140823003
git-svn-id: http://skia.googlecode.com/svn/trunk@13118 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/gl/GrGLFunctions.h')
-rw-r--r-- | include/gpu/gl/GrGLFunctions.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h index beb657d30a..b6d68c7ff4 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; |