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

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

Issue 349983002: Revert of Add functions to support NV_path_rendering in OpenGL ES (Closed) Base URL: https://skia.googlesource.com/skia.git@desktop-es
Patch Set: Created 6 years, 6 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 | « no previous file | 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
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferSubDataProc)(const GrG Lvoid* mem); 207 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferSubDataProc)(const GrG Lvoid* mem);
208 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapTexSubImage2DProc)(const GrG Lvoid* mem); 208 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapTexSubImage2DProc)(const GrG Lvoid* mem);
209 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUseProgramProc)(GrGLuint program) ; 209 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUseProgramProc)(GrGLuint program) ;
210 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib4fvProc)(GrGLuint ind x, const GrGLfloat* values); 210 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib4fvProc)(GrGLuint ind x, const GrGLfloat* values);
211 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribPointerProc)(GrGLuint indx, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, co nst GrGLvoid* ptr); 211 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribPointerProc)(GrGLuint indx, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, co nst GrGLvoid* ptr);
212 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLViewportProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height); 212 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLViewportProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
213 213
214 // Experimental: Functions for GL_NV_path_rendering. These will be 214 // Experimental: Functions for GL_NV_path_rendering. These will be
215 // alphabetized with the above functions once this is fully supported 215 // alphabetized with the above functions once this is fully supported
216 // (and functions we are unlikely to use will possibly be omitted). 216 // (and functions we are unlikely to use will possibly be omitted).
217 // EXT_direct_state_access
218 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadfProc)(GrGLenum matrixM ode, const GrGLfloat* m); 217 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadfProc)(GrGLenum matrixM ode, const GrGLfloat* m);
219 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadIdentityProc)(GrGLenum) ; 218 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadIdentityProc)(GrGLenum) ;
220 // ARB_program_interface_query
221 typedef GrGLint (GR_GL_FUNCTION_TYPE* GrGLGetProgramResourceLocationProc)(Gr GLuint program, GrGLenum programInterface, const GrGLchar *name);
222 // NV_path_rendering
223 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCommandsProc)(GrGLuint path, GrGLsizei numCommands, const GrGLubyte *commands, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords); 219 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCommandsProc)(GrGLuint path, GrGLsizei numCommands, const GrGLubyte *commands, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
224 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCoordsProc)(GrGLuint path, Gr GLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords); 220 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCoordsProc)(GrGLuint path, Gr GLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
221 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathSubCommandsProc)(GrGLuint pat h, GrGLsizei commandStart, GrGLsizei commandsToDelete, GrGLsizei numCommands, co nst GrGLubyte *commands, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
225 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathSubCoordsProc)(GrGLuint path, GrGLsizei coordStart, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid * coords); 222 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathSubCoordsProc)(GrGLuint path, GrGLsizei coordStart, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid * coords);
226 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStringProc)(GrGLuint path, Gr GLenum format, GrGLsizei length, const GrGLvoid *pathString); 223 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStringProc)(GrGLuint path, Gr GLenum format, GrGLsizei length, const GrGLvoid *pathString);
227 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphsProc)(GrGLuint firstPat hName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, Gr GLsizei numGlyphs, GrGLenum type, const GrGLvoid *charcodes, GrGLenum handleMiss ingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale); 224 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphsProc)(GrGLuint firstPat hName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, Gr GLsizei numGlyphs, GrGLenum type, const GrGLvoid *charcodes, GrGLenum handleMiss ingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
228 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphRangeProc)(GrGLuint firs tPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle , GrGLuint firstGlyph, GrGLsizei numGlyphs, GrGLenum handleMissingGlyphs, GrGLui nt pathParameterTemplate, GrGLfloat emScale); 225 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphRangeProc)(GrGLuint firs tPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle , GrGLuint firstGlyph, GrGLsizei numGlyphs, GrGLenum handleMissingGlyphs, GrGLui nt pathParameterTemplate, GrGLfloat emScale);
229 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLWeightPathsProc)(GrGLuint resultP ath, GrGLsizei numPaths, const GrGLuint paths[], const GrGLfloat weights[]); 226 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLWeightPathsProc)(GrGLuint resultP ath, GrGLsizei numPaths, const GrGLuint paths[], const GrGLfloat weights[]);
230 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyPathProc)(GrGLuint resultPath , GrGLuint srcPath); 227 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyPathProc)(GrGLuint resultPath , GrGLuint srcPath);
231 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInterpolatePathsProc)(GrGLuint re sultPath, GrGLuint pathA, GrGLuint pathB, GrGLfloat weight); 228 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInterpolatePathsProc)(GrGLuint re sultPath, GrGLuint pathA, GrGLuint pathB, GrGLfloat weight);
232 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTransformPathProc)(GrGLuint resul tPath, GrGLuint srcPath, GrGLenum transformType, const GrGLfloat *transformValue s); 229 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTransformPathProc)(GrGLuint resul tPath, GrGLuint srcPath, GrGLenum transformType, const GrGLfloat *transformValue s);
230 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterivProc)(GrGLuint pat h, GrGLenum pname, const GrGLint *value);
233 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameteriProc)(GrGLuint path , GrGLenum pname, GrGLint value); 231 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameteriProc)(GrGLuint path , GrGLenum pname, GrGLint value);
232 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterfvProc)(GrGLuint pat h, GrGLenum pname, const GrGLfloat *value);
234 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterfProc)(GrGLuint path , GrGLenum pname, GrGLfloat value); 233 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterfProc)(GrGLuint path , GrGLenum pname, GrGLfloat value);
234 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathDashArrayProc)(GrGLuint path, GrGLsizei dashCount, const GrGLfloat *dashArray);
235 typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLGenPathsProc)(GrGLsizei range); 235 typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLGenPathsProc)(GrGLsizei range);
236 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeletePathsProc)(GrGLuint path, G rGLsizei range); 236 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeletePathsProc)(GrGLuint path, G rGLsizei range);
237 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPathProc)(GrGLuint path);
237 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStencilFuncProc)(GrGLenum fun c, GrGLint ref, GrGLuint mask); 238 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStencilFuncProc)(GrGLenum fun c, GrGLint ref, GrGLuint mask);
239 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStencilDepthOffsetProc)(GrGLf loat factor, GrGLfloat units);
238 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathProc)(GrGLuint pat h, GrGLenum fillMode, GrGLuint mask); 240 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathProc)(GrGLuint pat h, GrGLenum fillMode, GrGLuint mask);
239 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathProc)(GrGLuint p ath, GrGLint reference, GrGLuint mask); 241 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathProc)(GrGLuint p ath, GrGLint reference, GrGLuint mask);
240 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathInstancedProc)(GrG Lsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase , GrGLenum fillMode, GrGLuint mask, GrGLenum transformType, const GrGLfloat *tra nsformValues); 242 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathInstancedProc)(GrG Lsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase , GrGLenum fillMode, GrGLuint mask, GrGLenum transformType, const GrGLfloat *tra nsformValues);
241 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathInstancedProc)(G rGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBa se, GrGLint reference, GrGLuint mask, GrGLenum transformType, const GrGLfloat *t ransformValues); 243 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathInstancedProc)(G rGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBa se, GrGLint reference, GrGLuint mask, GrGLenum transformType, const GrGLfloat *t ransformValues);
244 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCoverDepthFuncProc)(GrGLenum zfunc);
245 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathColorGenProc)(GrGLenum color, GrGLenum genMode, GrGLenum colorFormat, const GrGLfloat *coeffs);
242 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathTexGenProc)(GrGLenum texCoord Set, GrGLenum genMode, GrGLint components, const GrGLfloat *coeffs); 246 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathTexGenProc)(GrGLenum texCoord Set, GrGLenum genMode, GrGLint components, const GrGLfloat *coeffs);
247 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathFogGenProc)(GrGLenum genMode) ;
243 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathProc)(GrGLuint path, GrGLenum coverMode); 248 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathProc)(GrGLuint path, GrGLenum coverMode);
244 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathProc)(GrGLuint nam e, GrGLenum coverMode); 249 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathProc)(GrGLuint nam e, GrGLenum coverMode);
245 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathInstancedProc)(GrGLs izei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues); 250 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathInstancedProc)(GrGLs izei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
246 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathInstancedProc)(GrG Lsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase , GrGLenum coverMode, GrGLenum transformType, const GrGLfloat* transformValues); 251 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathInstancedProc)(GrG Lsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase , GrGLenum coverMode, GrGLenum transformType, const GrGLfloat* transformValues);
252 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathParameterivProc)(GrGLuint name, GrGLenum param, GrGLint *value);
253 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathParameterfvProc)(GrGLuint name, GrGLenum param, GrGLfloat *value);
254 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathCommandsProc)(GrGLuint nam e, GrGLubyte *commands);
255 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathCoordsProc)(GrGLuint name, GrGLfloat *coords);
256 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathDashArrayProc)(GrGLuint na me, GrGLfloat *dashArray);
257 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathMetricsProc)(GrGLbitfield metricQueryMask, GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *path s, GrGLuint pathBase, GrGLsizei stride, GrGLfloat *metrics);
258 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathMetricRangeProc)(GrGLbitfi eld metricQueryMask, GrGLuint fistPathName, GrGLsizei numPaths, GrGLsizei stride , GrGLfloat *metrics);
259 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathSpacingProc)(GrGLenum path ListMode, GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGL uint pathBase, GrGLfloat advanceScale, GrGLfloat kerningScale, GrGLenum transfor mType, GrGLfloat *returnedSpacing);
260 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenivProc)(GrGLenum c olor, GrGLenum pname, GrGLint *value);
261 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenfvProc)(GrGLenum c olor, GrGLenum pname, GrGLfloat *value);
262 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenivProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLint *value);
263 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenfvProc)(GrGLenum tex CoordSet, GrGLenum pname, GrGLfloat *value);
264 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInFillPathProc)(GrGLuin t path, GrGLuint mask, GrGLfloat x, GrGLfloat y);
265 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInStrokePathProc)(GrGLu int path, GrGLfloat x, GrGLfloat y);
266 typedef GrGLfloat (GR_GL_FUNCTION_TYPE* GrGLGetPathLengthProc)(GrGLuint path , GrGLsizei startSegment, GrGLsizei numSegments);
267 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 268
248 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramPathFragmentInputGenProc)( GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components,const G rGLfloat *coeffs);
249 } // extern "C" 269 } // extern "C"
250 270
251 #endif 271 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698