Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: include/gpu/gl/GrGLTypes.h

Issue 1410333003: Move definitions of GrGL basic types (e.g. GrGLenum) to their own header. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/gl/GrGLFunctions.h ('k') | src/gpu/gl/GrGLBufferImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2015 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef GrGLTypes_DEFINED
10 #define GrGLTypes_DEFINED
11
12 #include "GrGLConfig.h"
13
14 /**
15 * Classifies GL contexts by which standard they implement (currently as OpenGL vs. OpenGL ES).
16 */
17 enum GrGLStandard {
18 kNone_GrGLStandard,
19 kGL_GrGLStandard,
20 kGLES_GrGLStandard,
21 };
22 static const int kGrGLStandardCnt = 3;
23
24 ///////////////////////////////////////////////////////////////////////////////
25
26 /**
27 * Declares typedefs for all the GL functions used in GrGLInterface
28 */
29
30 typedef unsigned int GrGLenum;
31 typedef unsigned char GrGLboolean;
32 typedef unsigned int GrGLbitfield;
33 typedef signed char GrGLbyte;
34 typedef char GrGLchar;
35 typedef short GrGLshort;
36 typedef int GrGLint;
37 typedef int GrGLsizei;
38 typedef int64_t GrGLint64;
39 typedef unsigned char GrGLubyte;
40 typedef unsigned short GrGLushort;
41 typedef unsigned int GrGLuint;
42 typedef uint64_t GrGLuint64;
43 typedef float GrGLfloat;
44 typedef float GrGLclampf;
45 typedef double GrGLdouble;
46 typedef double GrGLclampd;
47 typedef void GrGLvoid;
48 #ifndef SK_IGNORE_64BIT_OPENGL_CHANGES
49 #ifdef _WIN64
50 typedef signed long long int GrGLintptr;
51 typedef signed long long int GrGLsizeiptr;
52 #else
53 typedef signed long int GrGLintptr;
54 typedef signed long int GrGLsizeiptr;
55 #endif
56 #else
57 typedef signed long int GrGLintptr;
58 typedef signed long int GrGLsizeiptr;
59 #endif
60
61 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLFunctions.h ('k') | src/gpu/gl/GrGLBufferImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698