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

Side by Side Diff: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp

Issue 21808003: Add nv_path_rendering entry points to Unix GLInterface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | 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 2011 Google Inc. 3 * Copyright 2011 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 9
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 GR_GL_GET_PROC_SUFFIX(RenderbufferStorageMultisample, EXT); 207 GR_GL_GET_PROC_SUFFIX(RenderbufferStorageMultisample, EXT);
208 } 208 }
209 if (extensions.has("GL_EXT_framebuffer_blit")) { 209 if (extensions.has("GL_EXT_framebuffer_blit")) {
210 GR_GL_GET_PROC_SUFFIX(BlitFramebuffer, EXT); 210 GR_GL_GET_PROC_SUFFIX(BlitFramebuffer, EXT);
211 } 211 }
212 } else { 212 } else {
213 // we must have FBOs 213 // we must have FBOs
214 delete interface; 214 delete interface;
215 return NULL; 215 return NULL;
216 } 216 }
217
218 GR_GL_GET_PROC(LoadIdentity);
219 GR_GL_GET_PROC(LoadMatrixf);
220 GR_GL_GET_PROC(MatrixMode);
221
222 if (extensions.has("GL_NV_path_rendering")) {
223 GR_GL_GET_PROC_SUFFIX(PathCommands, NV);
224 GR_GL_GET_PROC_SUFFIX(PathCoords, NV);
225 GR_GL_GET_PROC_SUFFIX(PathSubCommands, NV);
226 GR_GL_GET_PROC_SUFFIX(PathSubCoords, NV);
227 GR_GL_GET_PROC_SUFFIX(PathString, NV);
228 GR_GL_GET_PROC_SUFFIX(PathGlyphs, NV);
229 GR_GL_GET_PROC_SUFFIX(PathGlyphRange, NV);
230 GR_GL_GET_PROC_SUFFIX(WeightPaths, NV);
231 GR_GL_GET_PROC_SUFFIX(CopyPath, NV);
232 GR_GL_GET_PROC_SUFFIX(InterpolatePaths, NV);
233 GR_GL_GET_PROC_SUFFIX(TransformPath, NV);
234 GR_GL_GET_PROC_SUFFIX(PathParameteriv, NV);
235 GR_GL_GET_PROC_SUFFIX(PathParameteri, NV);
236 GR_GL_GET_PROC_SUFFIX(PathParameterfv, NV);
237 GR_GL_GET_PROC_SUFFIX(PathParameterf, NV);
238 GR_GL_GET_PROC_SUFFIX(PathDashArray, NV);
239 GR_GL_GET_PROC_SUFFIX(GenPaths, NV);
240 GR_GL_GET_PROC_SUFFIX(DeletePaths, NV);
241 GR_GL_GET_PROC_SUFFIX(IsPath, NV);
242 GR_GL_GET_PROC_SUFFIX(PathStencilFunc, NV);
243 GR_GL_GET_PROC_SUFFIX(PathStencilDepthOffset, NV);
244 GR_GL_GET_PROC_SUFFIX(StencilFillPath, NV);
245 GR_GL_GET_PROC_SUFFIX(StencilStrokePath, NV);
246 GR_GL_GET_PROC_SUFFIX(StencilFillPathInstanced, NV);
247 GR_GL_GET_PROC_SUFFIX(StencilStrokePathInstanced, NV);
248 GR_GL_GET_PROC_SUFFIX(PathCoverDepthFunc, NV);
249 GR_GL_GET_PROC_SUFFIX(PathColorGen, NV);
250 GR_GL_GET_PROC_SUFFIX(PathTexGen, NV);
251 GR_GL_GET_PROC_SUFFIX(PathFogGen, NV);
252 GR_GL_GET_PROC_SUFFIX(CoverFillPath, NV);
253 GR_GL_GET_PROC_SUFFIX(CoverStrokePath, NV);
254 GR_GL_GET_PROC_SUFFIX(CoverFillPathInstanced, NV);
255 GR_GL_GET_PROC_SUFFIX(CoverStrokePathInstanced, NV);
256 GR_GL_GET_PROC_SUFFIX(GetPathParameteriv, NV);
257 GR_GL_GET_PROC_SUFFIX(GetPathParameterfv, NV);
258 GR_GL_GET_PROC_SUFFIX(GetPathCommands, NV);
259 GR_GL_GET_PROC_SUFFIX(GetPathCoords, NV);
260 GR_GL_GET_PROC_SUFFIX(GetPathDashArray, NV);
261 GR_GL_GET_PROC_SUFFIX(GetPathMetrics, NV);
262 GR_GL_GET_PROC_SUFFIX(GetPathMetricRange, NV);
263 GR_GL_GET_PROC_SUFFIX(GetPathSpacing, NV);
264 GR_GL_GET_PROC_SUFFIX(GetPathColorGeniv, NV);
265 GR_GL_GET_PROC_SUFFIX(GetPathColorGenfv, NV);
266 GR_GL_GET_PROC_SUFFIX(GetPathTexGeniv, NV);
267 GR_GL_GET_PROC_SUFFIX(GetPathTexGenfv, NV);
268 GR_GL_GET_PROC_SUFFIX(IsPointInFillPath, NV);
269 GR_GL_GET_PROC_SUFFIX(IsPointInStrokePath, NV);
270 GR_GL_GET_PROC_SUFFIX(GetPathLength, NV);
271 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV);
272 }
273
217 interface->fBindingsExported = kDesktop_GrGLBinding; 274 interface->fBindingsExported = kDesktop_GrGLBinding;
218 275
219 return interface; 276 return interface;
220 } else { 277 } else {
221 return NULL; 278 return NULL;
222 } 279 }
223 } 280 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698