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

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: Fix Android 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
« no previous file with comments | « include/gpu/gl/GrGLExtensions.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aliases until Chromium can be updated.
27 typedef GrGLStandard GrGLBinding;
28 static const GrGLStandard kES2_GrGLBinding = kGLES_GrGLStandard;
29 static const GrGLStandard kDesktop_GrGLBinding = kGL_GrGLStandard;
30
31 ///////////////////////////////////////////////////////////////////////////////
32
14 /** 33 /**
15 * Declares typedefs for all the GL functions used in GrGLInterface 34 * Declares typedefs for all the GL functions used in GrGLInterface
16 */ 35 */
17 36
18 ///////////////////////////////////////////////////////////////////////////////
19
20 typedef unsigned int GrGLenum; 37 typedef unsigned int GrGLenum;
21 typedef unsigned char GrGLboolean; 38 typedef unsigned char GrGLboolean;
22 typedef unsigned int GrGLbitfield; 39 typedef unsigned int GrGLbitfield;
23 typedef signed char GrGLbyte; 40 typedef signed char GrGLbyte;
24 typedef char GrGLchar; 41 typedef char GrGLchar;
25 typedef short GrGLshort; 42 typedef short GrGLshort;
26 typedef int GrGLint; 43 typedef int GrGLint;
27 typedef int GrGLsizei; 44 typedef int GrGLsizei;
28 typedef int64_t GrGLint64; 45 typedef int64_t GrGLint64;
29 typedef unsigned char GrGLubyte; 46 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); 257 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); 258 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); 259 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); 260 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); 261 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); 262 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); 263 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" 264 } // extern "C"
248 265
249 #endif 266 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLExtensions.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698