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

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

Issue 140823003: Move GrGLExtensions from GrGLContextInfo to GrGLInterface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload again, rietveld diff failed. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrGLFunctions_DEFINED 9 #ifndef GrGLFunctions_DEFINED
10 #define GrGLFunctions_DEFINED 10 #define GrGLFunctions_DEFINED
11 11
12 #include "GrGLConfig.h" 12 #include "GrGLConfig.h"
13 13
14 ////////////////////////////////////////////////////////////////////////////////
15
16 /**
17 * Classifies GL contexts by which standard they implement (currently as Desktop
18 * vs. ES).
19 */
20 enum GrGLStandard {
21 kNone_GrGLStandard,
22 kGL_GrGLStandard,
23 kGLES_GrGLStandard,
24 };
25
26 // Temporary alias until Chromium can be updated.
27 static const GrGLStandard kES2_GrGLBinding = kGLES_GrGLStandard;
28
29 ///////////////////////////////////////////////////////////////////////////////
30
14 /** 31 /**
15 * Declares typedefs for all the GL functions used in GrGLInterface 32 * Declares typedefs for all the GL functions used in GrGLInterface
16 */ 33 */
17 34
18 ///////////////////////////////////////////////////////////////////////////////
19
20 typedef unsigned int GrGLenum; 35 typedef unsigned int GrGLenum;
21 typedef unsigned char GrGLboolean; 36 typedef unsigned char GrGLboolean;
22 typedef unsigned int GrGLbitfield; 37 typedef unsigned int GrGLbitfield;
23 typedef signed char GrGLbyte; 38 typedef signed char GrGLbyte;
24 typedef char GrGLchar; 39 typedef char GrGLchar;
25 typedef short GrGLshort; 40 typedef short GrGLshort;
26 typedef int GrGLint; 41 typedef int GrGLint;
27 typedef int GrGLsizei; 42 typedef int GrGLsizei;
28 typedef int64_t GrGLint64; 43 typedef int64_t GrGLint64;
29 typedef unsigned char GrGLubyte; 44 typedef unsigned char GrGLubyte;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenfvProc)(GrGLenum c olor, GrGLenum pname, GrGLfloat *value); 255 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenfvProc)(GrGLenum c olor, GrGLenum pname, GrGLfloat *value);
241 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenivProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLint *value); 256 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenivProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLint *value);
242 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenfvProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLfloat *value); 257 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenfvProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLfloat *value);
243 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInFillPathProc)(GrGLuin t path, GrGLuint mask, GrGLfloat x, GrGLfloat y); 258 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInFillPathProc)(GrGLuin t path, GrGLuint mask, GrGLfloat x, GrGLfloat y);
244 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInStrokePathProc)(GrGLu int path, GrGLfloat x, GrGLfloat y); 259 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInStrokePathProc)(GrGLu int path, GrGLfloat x, GrGLfloat y);
245 typedef GrGLfloat (GR_GL_FUNCTION_TYPE* GrGLGetPathLengthProc)(GrGLuint path , GrGLsizei startSegment, GrGLsizei numSegments); 260 typedef GrGLfloat (GR_GL_FUNCTION_TYPE* GrGLGetPathLengthProc)(GrGLuint path , GrGLsizei startSegment, GrGLsizei numSegments);
246 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLPointAlongPathProc)(GrGLuint p ath, GrGLsizei startSegment, GrGLsizei numSegments, GrGLfloat distance, GrGLfloa t *x, GrGLfloat *y, GrGLfloat *tangentX, GrGLfloat *tangentY); 261 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLPointAlongPathProc)(GrGLuint p ath, GrGLsizei startSegment, GrGLsizei numSegments, GrGLfloat distance, GrGLfloa t *x, GrGLfloat *y, GrGLfloat *tangentX, GrGLfloat *tangentY);
247 } // extern "C" 262 } // extern "C"
248 263
249 #endif 264 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698